Every time I try to test out the door that opens when clicked, it moves up on the top of the building. All parts are anchored, and I have no idea what I'm doing wrong.
local open = false;
script.Name = "Clickable Door Script"; -- On the assumption that this is that script
script.Parent.ClickDetector.MouseClick:connect(function()
if not open then -- Checks if closed
script.Parent.Rotation = Vector3.new(0, 110, 0);
open = true;
else -- If open
script.Parent.Rotation = Vector3.new(0, 0, 0);
open = false;
end
end)

1 comment
I edited the question and put the script in