--[[
Next generation VIP w/instructions
iTruss
]]
vip = {"iTruss", "Telamon"} --Add your names here. Please leave my name there. ;)
function checkForVIP(name)
for i = 1,#vip do
if (string.upper(name) == string.upper(vip[i])) then return true end --Gathers the VIP's information!
end
return false
end
function onTouched(hit)
local h = hit.Parent:findFirstChild("Humanoid") --Did a person touch the door, or a brick?
if (h ~= nil) then
if (checkForVIP(human.Parent.Name)) then --Are they VIP?
print("VIP")
else h.PlatformStand = true --If they're not VIP...
wait(1.5) --Make them...
h.PlatformStand = false --Trip!
end
end
end
script.Parent.Touched:connect(onTouched)
--[[
Thanks for using my script! This is in no way associated with the original VIP script.
iTruss
]] |