while true do
Part.RotVelocity = Vector3.new(0,5,0)
wait()
end
This script gives its parent an endless spinning effect however it only works when its anchored. Is it possible to give an anchored part the same effect?
while true do
Part.RotVelocity = Vector3.new(0,5,0)
wait()
end
This script gives its parent an endless spinning effect however it only works when its anchored. Is it possible to give an anchored part the same effect?
Velocity, a property of BaseParts, makes Parts act as a conveyor belt, moving things at the speed along the axis specified in the Velocity's Vector3 value.
Similarly, the RotVelocity governs how fast something that is touching the part rotates.
From the sounds of it, you have a part that is unanchored and connected to another part, and taking advantage of RotVelocity to make it spin.
The following script is pointless because once the property of RotVelocity is set, it does not need to be continually set to the proper value.
while true do
Part.RotVelocity = Vector3.new(0,5,0) --It's setting the property to the same thing repeatedly. It isn't changing the RotVelocity
wait()
end
I believe you are looking for a way to rotate a part. Try the following script instead:
while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.1,0)
wait(0.02)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.