Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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?

2 comments

0

You can use the ROBLOX animator.

0

look up cframe interpolation

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.