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

What is the best way to animate bricks/guns/weapons?

Asked by 9 years ago

I am making an FPS and every time I animate, it looks un-smooth. I use for loops and waits. Is there a better way to make it smoother?

0
You can use the ROBLOX animator. woodengop 1134 — 9y
0
look up cframe interpolation LevelKap 114 — 9y

1 answer

Log in to vote
0
Answered by
funzrey 58
9 years ago

Try using CFrame or something, There's a wiki article on it, Make a script like this or so (animating a part to make it stay in the top middle of your map)

PartSpin = game.Workspace.Part --so we wont have to say game.Workspace.Part all the time

--While loop to keep it running
while true do
PartSpin.CFrame = CFrame.new(0, 50, 0)  * CFrame.Angles(0, math.pi, 0) --Look up on the wiki article below for more
wait(0.5) --to prevent crashing
end

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

Ad

Answer this question