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

How do I animate an object that is being constantly moved?

Asked by 6 years ago

I am currently trying to create a framework for an FPS game. I have made a functioning gun with a model that is being constantly CFramed to the camera at an offset. The only problem with my current gun is that it lacks animations. I would like to create smooth, scriptable animations with methods similar to Phantom Forces. I have done some digging in an older version of the game and found that the models being attached to the camera were attached together using Motor6D welds, but I have no idea how they were animated. Does anyone know of any methods on how to do this or links to wiki pages so I can learn how to do this? (Sorry if the wording is weird or if the question seems vague and uninformative.)

0
they used the roblox animate plugin. that's somewhere to start from my knowledge, you do need to have a "Torso", "Humanoid", and "HumanoidRootPart" to animate with the plugin. if i was doing it, i would experiment by putting all of that in the gun model, play an animation when you click, and see what happens. reply and tell me if it worked or not. wookey12 174 — 6y
0
I'll definitely try this out, but do you know of any way to script smooth animations that would fit into my situation? Whoami102 21 — 6y
0
I've done some more research and I might be able to use springs and Hooke's Law to animate this. Whoami102 21 — 6y
0
I think I'll just use the animation plugin. Thank you for your help! Whoami102 21 — 6y

Answer this question