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
