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

How do you create an animation in code?

Asked by 10 years ago

I've always wondered how to do this. I know you can do it slowly or with for loops, but I need to know how to do it better, if possible. Any help?

2 answers

Log in to vote
0
Answered by 10 years ago

You could make a for loop for an animation. For loops would work because they count up, hence their values. If you wanted to rotate, lets say, a part in the workspace called Lol you would do this (with a for loop to give it anim affect.)

for i = 1, 60 do
Workspace.Lol.CFrame = CFrame.Angles(i*3, 0, 0)
wait(0.06)
end
Ad
Log in to vote
0
Answered by 10 years ago

This website may help you,

http://wiki.roblox.com/index.php?title=Animations

Answer this question