local hinge = script.Parent.Frame.Hinge
local door = script.Parent.Door
local handle1 = script.Parent.Handle1
local handle2 = script.Parent.Handle2
local targetAngle = -90
local open = false
local function DoorFunction ()
if open == false then
hinge.TargetAngle = 0
open = true
print("open")
end
if open == true then
hinge.TargetAngle = targetAngle
open = false
print("close")
end
end
handle1.ClickDetector.MouseClick:connect(DoorFunction)
handle2.ClickDetector.MouseClick:connect(DoorFunction)
i want to make the door opens when the handle is clicked and closes when the handle is clicked again
PLS help!

2 comments
:(
Thx for the help! Now i can make a lot of things using this. : )