Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I make script which detecting closed door on hinge?

Hi, I made a hinge door and scipt which anchore door when I click on it. How can I make this closing script works only when door is closed.

this is this script which anchoring doors

script.Parent.ClickDetector.MouseClick:Connect (function(plr)
        script.parent.parent.Door.Anchored=true
end)

1 answer

There is a property on HingeContraint, CurrentAngle. Maybe that is what you are looking for.

2 comments

0

No, I'm not looking for that but thank you.

0

oh okay :)

This discussion is preserved as it was. New answers, comments, and votes are closed.