A little help needed with a animation script

i have came across this devforum post before talking about classic roblox animations:

now the op has already posted a way to actually implement this for server side to view the animations, but i don’t have any idea how would i be implementing this. so i have came to the devforum to ask for a little help. how would i use the remoteevent to update the maxvelocity and desiredangle of the animations, and most importantly where do i put them?

What exactly are you trying to achieve? Do you want to update the Motor6D properties when playing custom animations or regular walk animations? Do you want to get detailed instructions on how to implement this?
This is not implemented on the server side, but simply simulated. I pass the specified Motor6D properties to all clients and already from there I assign the received values ​​to the properties of this Motor6D with the same name… It’s somewhat similar to rotating the player’s head so that others can see it.

yeah i kinda need a little bit more specific ways on how would i implement this so that it could be simulated for the other clients, since you were the op, can i ask how did you do it?

Typically RemoteEvents are located in ReplicatedStorage so that the server and client can see it and interact with it.
At the end of the code there is a loop that makes everything happen. After the “move” function you should call the FireServer method and specify the DesiredAngle and MaxVelocity in its arguments for each Motor6D in the Character.
Then create a server script for example in ServerScriptService and get the transmitted information using the OnServerEvent event of this RemoteEvent. I also recommend checking if this Motor6D belongs to the player character who transmitted the information, in order to avoid exploiting. Then you need to pass the Motor6D itself as an instance.
When everything that I said earlier is done, use the FireAllClients method from this script, the arguments of which are: Motor6D and its 2 properties.
Next, you can create a local script, for example in ReplicatedFirst, which will receive information from the server via the OnClientEvent event. Check which Character the received Motor6D belongs to. If it is yours, then stop the code. And then simply enter the obtained property values ​​into the properties of the same name for this RemoteEvent.

I hope this will help you. Maybe in the future I will make another topic about this system, where I will tell in more detail…

thank you for a little bit more explanation! its probably a little easier to work with it. but ignore this request if you want me to learn how to do it myself, could you possibly give me a little… code example?

Just take this template and figure out how it works. It’s not as hard as it seems.
Classic Animations.rbxl

1 Like

thank you! sorry for the inconvenience as i’m still quite a newbie programmer in luau. but this helps a lot!

1 Like

Always happy to help. good luck with your projects!

1 Like

thank you! i can list you as a small contributor too! (if i can contact you some way since i have some files i need to implement for credits too)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.