I been scripting for HOURS trying to script a door. Basically when you click it, the door will open. If clicked again it will close. The issue is that I get no errors but the script does literally nothing. Any help will be appreciated.
Notes:
- Door is anchored
- Door is a union with parts like doorknobs inside
- Door is placed where a negate part did cutting
- CFramed was replaced with Position but did not work (I did not use Position.new though)
- Vector3 is not an option.
function Universe()
if script.Parent.Value.Value == false then
script.Parent.Parent.Parent.MainDoor.CFrame = CFrame.new(-57.517, 4.067, 94.678)
else
script.Parent.Parent.Parent.MainDoor.CFrame = CFrame.new(-60.198, 4.067, 97.353)
script.Parent.Value.Value = false
end
script.Parent.ClickDetector.MouseClick:Connect(Universe)
end
--true = open
--false = closed

5 comments
can you like actually make these variables something that people can understand instead of script.Parent.Parent.Parent
Is it a local script or a normal script, and is experimental mode/filteringenabled on?
unanchor door and weld all
@Vulkarin People seem to understand just fine....
@AlphaGamer150 It is a regular script and filteringenabled is on. Filtering enabled does not seem to matter though because in studio I get the same result.