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)

1 comment
The problem is line 8. Here's a link that may help you, http://wiki.roblox.com/index.php?title=Table