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

(SOLVED)VIP door help?

Asked by 10 years ago
local Door = script.Parent --Declares the part as a door
function onTouch(Brick) --Sets the start of function and when triggered it gives "Brick" the object was hit
    local Player = Brick.Parent:findFirstChild("Humanoid") --Finds Humanoid in brick
    if(Player ~= nil) then --Sees if it's an actual Player
        if Player.Parent.Torso.roblox.Texture == "http://www.roblox.com/asset/
version=1&id=1028594" then --VIP shirt link
            Door.CanCollide = false --Door is no longer solid
            Door.Transaprency = 0 --problem on this part,Should make the door invisible
            Door.BrickColor = BrickColor.new(math.random(), math.random(), math.random()) --Makes the door change color
        else Player.Health = 0 --Kills the player if they don't have VIP
        end
    end
end
Door.Touched:connect(onTouch)

I mispelled Transparency :p

1 answer

Log in to vote
0
Answered by 10 years ago

Just go into toolbox and go to game stuff. then click on the VIP door re size it, take a couple more re size them make em transparent if ya want, make em a different color if you want some designs, add some decals for some designs, then go into explorer click VIP door, open it, open the script, click on "GamePassID" open properties, go to value, change it to your t-shirt, or shirts id number and welah. you have your vip door.

Ad

Answer this question