local hinge = script.Parent.Parent.platform.HingeConstraint
local platform = script.Parent.Parent.platform
local function hit()
if hinge.TargetAngle -- 0 then
if platform.Orientationn.Y -- 0 then
hinge.TargetAngle - - 90
script.Enabled - false
wait(2)
script.Enabled - true
end
else
if platform.Orientation.Y -- 90 then
hinge.TargetAngle - 0
script.Enabled - false
wait(2)
script.Enabled - true
end
end
end
script.Parent.Touched:Connect(hit)