How do I make an object spin using scripts?

(I scrapped my other question cause it was too broad)

Can someone please tell me how to make a part spin without using motors or anything but code? Orientation? Maybe? is it supposed to be a tween? or a loop?
need helpppp

‘’’

local SpinObject = script.Parent

while true do
SpinObject.Orientation += Vector3.new(0,0,1)
task.wait(0.2)
end

‘’’

Code embed didn’t work because I’m on mobile

This would be better still:

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.