You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
A door, where when you interact with a proximityprompt it will go from opened to closed, or closed to open. -
What is the issue? Include screenshots / videos if possible!
The thing will just rotate by 90 degrees when I interact.
Video of the buggy door:
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
None
Script:
prompt.Triggered:Connect(function()
if object.PrimaryPart.CFrame == object.DoorHingeClosed then
object:SetPrimaryPartCFrame(object.DoorHingeOpened.CFrame)
else
object:SetPrimaryPartCFrame(object.DoorHingeClosed.CFrame)
end
end)