#Spin adjustment
1 messages · Page 1 of 1 (latest)
change wait() to wait(NUMBER)
so if you wanted it to spin every 1 second it'd be this
script.Parent:SetPrimaryPartCFrame(script.Parent.Center.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, 0))
wait(1)
end
Thanks, how would i make it spin fast?
you're already putting a wait() which already makes it pretty fast
putting a wait() without its only parameter (the number to wait for) makes it wait a really slow amount
i already told you, just change the parameter to your number
wait(0.1) or whatever number you want
So as you're new I'll skip the other parts about loops without break conditions and such,
I won't however skip the fact that you're using wait instead of task.wait, task.wait runs 60/s (instead of 30/s) so it's more accurate, and it's also more performance friendly. Wait is only left in luau for backwards comparability.
Also, you can type
while wait() do
end
--or
while task.wait() do
end
--instead of
while true do
wait()
end
--or
while true do
task.wait()
end
Anyways, to increase rotation either decrease delay or increase how much it rotates between itts