Wednesday, October 23, 2013

Roblox Script Of The week :

How do you make a working VIP door ??

Here is how you do it , step by step :


1- Insert a normal part ( This is going to be your door).

2- Customize your door to your liking ( Colors - Transperency - Reflectance etc...) . 

3- Inside this door , Insert a Script.

4-Open up the script and delete everything inside. ( Usually this is what it says : print 'Hello world!' ).

5- Put in this script , ( DO NOT COPY WHAT IS IN RED)


VIP = { "" } --Put in the names of your default V.I.P's
texture = "" -- Put in the link of the V.I.P item you need to have to be V.I.P---------
Dont touch anything in else below this line 
--------------------------------------------------------------------------------------------------------
function check(name)
for i = 1,#VIP do

if (string.upper(name) == string.upper(VIP[i])) then return true end
end
return false
end

local Door = script.Parent

function onTouched(hit)
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil ) then
if human.Parent.Torso.roblox.Texture == texture then
Door.CanCollide = false
wait(4)
Door.CanCollide = true

elseif (check(human.Parent.Name)) then
Door.CanCollide = false
wait(4)
Door.CanCollide = true


end
end
end

script.Parent.Touched:connect(onTouched)

Remember , delete everything in red when you put this into the script.



Thank you guys , This was this week's script of the week . Stay tune for more !!

No comments:

Post a Comment