Sure do a recording, i’d be helpful
The script is just basically printing the degrees but here’s the output.
Take a look at MinDragAngle and MaxDragAngle, choose whichever you need and compare to it (>=)
Already done it, the maximum angle is 75.
Then how come are you going up to 89?
No idea; possibly cause i’m printing out the primary parts degrees?
Are you sure the lever is rotating from the Y axis and not from the Z or X axis? This could be why the angle stays constant at around 90 degrees.
Oh, could be it, look for the actual Angle property in DragDetector, and use it instead
No idea; first time using dragdetectors.
Do you know where that is? Since I checked the properites of the dragdetector there isn’t one for the “CurrentAngle.”
This is a start, printing out the Orientation, :toOrientation() and we now get a consistent print of
89.00000133828577 (x155) - Server - Script:8
print the last orientation when you reach the drag end or start, and see if its the same each time. if it is, then that’s the value you are looking for and then you can compare the dragDetectors orientation pitch to the value 89.00000133828577
Do you mean the ‘DragEnd’ function?
nono, just print the pitch when dragging, drag to the end / start, check the output for the last pitch
Ill try something out tm, rn i need to sleep.
we already figured that wasn’t the problem, it was her using the wrong property as current angle
Replace this with this:
local pitchInDegrees = math.deg(pitch)
if math.round(pitchInDegrees) == 90 then
print("Successfully dragged!")
end
if math.abs(pitchInDegrees - 90) > 0.001 then
end