wait(2)
spin()
function spin()
for initial = 1, 50 do
local xAxis = game.Workspace.Fan
local rotation = CFrame.Angles(math.rad(10),0,0)
xAxis.Cframe = rotation
end
end
Code above, I'm not quite sure why it's not operating. I'm fairly new to LUA and would like to find out how to manually step through each line so I can debug future scripts myself. Loop body does not work by itself, not with loop, and not with function call. I just want to make a fan spin, hence I'm just changing the rotational CFrame by 10 degrees. Perhaps I need to call the script somehow?
EDIT: I've just began researching events. I don't necessarily want it to be "triggered" though, I just want it to be running consistently. Perhaps this is not my problem, the search continues.

1 comment
If you want it to go constantly just use a "while true do" loop.