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

Door not opening?

Asked by
Valiux 27
8 years ago

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)
0
The problem is line 8. Here's a link that may help you, http://wiki.roblox.com/index.php?title=Table User#11440 120 — 8y

1 answer

Log in to vote
-1
Answered by 8 years ago

Also the "if" statement should be "ended". Basically add an "end" at line 15.

0
True, but the way he used the if statement is all wrong. User#11440 120 — 8y
Ad

Answer this question