|
print ("VIP T-Shirt Door Script Loaded")
-- list of account names allowed to go through the door without the shirt. Add as many people as you want.
permission = { "AboveAwesome", "piemaster08","dizzyo" }
-- TextureId of the VIP shirt.
texture = "http://www.roblox.com/VIP-for-G-R-F-P-item?id=3559569"
function checkOkToLetIn(name)
for i = 1,#permission do
-- convert strings to all upper case, otherwise we will let in <------- You don't have to worry about that stuff --AboveAwesome--
-- "Username" but not "username" or "uSERNAME"
if (string.upper(name) == string.upper(permission[i])) then return true end
end
return false
end
local Door = script.Parent
function onTouched(hit)
print("Door Hit")
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil ) then
if human.Parent.Torso.roblox.Texture == texture then --the shirt
Door.Transparency = 0.7
Door.CanCollide = false
wait(4) -- this is how long the door is open
Door.CanCollide = true
Door.Transparency = 0
-- a human has touched this door!
print("Human touched door")
-- test the human's name against the permission list
elseif (checkOkToLetIn(human.Parent.Name)) then
print("Human passed test")
Door.Transparency = 0.7
Door.CanCollide = false
wait(4) -- this is how long the door is open
Door.CanCollide = true
Door.Transparency = 0
else human.Health = 0 -- delete this line of you want a non-killing VIP door
end
end
end
script.Parent.Touched:connect(onTouched)
It works as a V.I.P door but if you are wearing the shirt you still die when you try to go to |
|
|
when you try to go through the door i mean |
|
domos666Join Date: 2009-07-18 Post Count: 123 |
This is straighty from the WIKI and it works. Just make sure you put the right tshirt ID in. and it has to be a tshirt, not a shirt |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
*Facedesk* Learn how to script, then script your own vip door and then, if you had a problem with it, come to the forum. |
|
|
i do script this is a script i used a while ago |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
Changing the names in the table does not count as scripting. |
|
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
@SMM
Check the 'ID' he added in the variable 'Tshirt'. |
|
|
"texture = "http://www.roblox.com/VIP-for-G-R-F-P-item?id=3559569""
--
repeat
headdesk()
until Intelligence.Parent == OP
>_<
LEARN. TO. SCRIPT.
EVEN IF YOU NEVER LEARNED THAT, COPYING FROM THE WIKI MAKES YOU A FAIL. |
|
domos666Join Date: 2009-07-18 Post Count: 123 |
you have the wrong ID. The ID your using is that of a WWII battleground admin shirt :P |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
> Post.Script[3] Trying to index global 'Intelligence' (A nil value).
> Line 3 stuck end. |
|
|
|
play solo then open explorer and open your character a copy the shirt id from your shirt. |
|
|
OMG IS ANYONE LISTENING! I KNOW HOW TO SCRIPT! THIS WAS USED A LONG TIME AGO! |
|