So I'm trying to make an admin only door, and it's not working? The problem is the Door won't open when I click it. Here's the Script:
local Admins = {"Player", "Player1", "The_Voids"} function onClicked(playerWhoClicked) if Admins[player.Name].MouseClick:connect then script.Parent.CanCollide = false script.Parent.Transparency = 0.5 wait(5) script.Parent.CanCollide = true script.Parent.Transparency = 0 end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Also the "if" statement should be "ended". Basically add an "end" at line 15.