I have basically a ceiling fan type object, and this is a simple question so ill get to the point.
I want it to rotate like a normal ceiling fan but its not rotating nor does it error.
So basically it doesnt do anything.
Heres the code
local Fan = script.Parent
local SpinNoMore = false
local Rotation = 0
repeat
for i = 0, 360, 1 do
Fan.Orientation = Vector3.new(0, Rotation, 0)
Rotation = Rotation + 1
end
until SpinNoMore == true
P.S - I tried using body angular force, but the problem with that is a player can touch the fan and knock it out of place. I dont know how id lock it in the position because when I anchor it, it doesnt spin anymore.
Thank you for your time and Merry Christmas!

1 comment
You dont need to have a Rotation variable, just use i