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?
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?
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
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
Is this in a loop?
yes
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.
what would the solution be?