Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Shirt Vip Help WANTED NOT A T-SHIRT VIP DOOR SHIRT?

Asked by 10 years ago

hello im trying to make a shirt vip but im confused on how i can make it ive tryed many times but it just doesnt seem to work i want to make a vip door for a shirt this is the script can you tell me if somethings wrong with it or how i can fix it SCRIPT HERE

print ("VIP Shirt Door Script Loaded")

permission = { "SirKitten2000" }

texture = "http://web.roblox.com/Minion-item?id=152994601"

function checkOkToLetIn(name) for i = 1,#permission do

    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
Door.Transparency = 0.7 Door.CanCollide = false wait(4)
Door.CanCollide = true Door.Transparency = 0

        print("Human touched door") 

    elseif (checkOkToLetIn(human.Parent.Name)) then 
        print("Human passed test") 
        Door.Transparency = 0.7
        Door.CanCollide = false 
        wait(4) 
        Door.CanCollide = true 
        Door.Transparency = 0 
    else human.Health = 0 
    end 
end 

end

script.Parent.Touched:connect(onTouched)

Answer this question