Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to make a part spin infinetly with tween service?

Asked by
Dec_ade 47
4 years ago

Is it possible to make a part spin infinetly with tween service?

0
try using math.huge in the time parameter SerpentineKing 3885 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

I know this isn't TweenService, but you have to use CFrame.fromEulerAnglesXYZ().

while wait() do
    script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, 00.1, 0)
end

If you want it to rotate on all axises, do this:

while wait() do
    script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, 00.1, 0)
end

It's useful for things like a nuclear core.

Ad

Answer this question