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?

5 comments

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

0

Is this in a loop?

0

yes

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.

0

what would the solution be?