I'm trying to make a clickable door, and I've made it so it's rotated open with this script:
game.Workspace.Door.Script.Name = "Clickable Door Script"
script.Parent.ClickDetector.MouseClick:connect(function()
game.Workspace.Door.Rotation = Vector3.new(0,3,0)
end)
I want to make it able to close if you click it again.

7 comments
Thank you!
Wait, it's still not working?
Is the script inside of the part?
I edited it. It wouldn't work if there was more than one door before.
There isn't. I'm only working on one
And, yes, the script is inside of the part.
Thank you! :)