Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm Trying to specify how much a part/model has rotated?

Asked by 7 years ago
if part.Rotation.x >= 180 then --trying to specify how much it rotated
        flips = flips + 1
        print(flips)
    end 

Nothing gets printed when the bottle rotates past 180 degrees, can anyone possibly see why?

1
I think you should actually setup a different variable, and then add to that variable how much it is rotated using the part.Rotation value buoyantair 123 — 7y
0
Is this in a loop? RubenKan 3615 — 7y
0
yes RenderingPixel -5 — 7y
0
part.Rotation.x might be read only, or I might be getting it confused with CFrame.x. If it's read only, I don't think you'll be able to compare it in that if statement. SilentAim 36 — 7y
0
what would the solution be? RenderingPixel -5 — 7y

Answer this question