I was wanting to change the player module’s animations and use my own. I have been looking for methods to do so, and I have been able to do it by copying the player’s animator script in play mode and placing it in starter player. (Using this method)
My issue is that the player animator script I assume gets updated often, and I worry that replacing the entire script with one that won’t update as Roblox does will break my game over time. How can I edit the player’s animations in a way that will age as Roblox does?
Well you dont have to worry about it, and they dont get updated often, as you may think. If you check inside a player character while in game you can see they have an animate script and a health script. By forking them (which means copying them off the player and pasting the copy into the character, with or without your modifications, in starter character scripts, or starter player scripts for the player module) they will completely replace the old ones, as long as they have their exact name.
in the case of a major update to those scripts, they wont change their entire structure, and you will be able to work with the new one, because i dont think theyre gonna rewrite a completely functional system
True; they most likely won’t update or rewrite an already good system. However, in the case of a new feature or system being added in the future, it would require me going in and replacing the script. I am worried that in that case, my project will break.
Ah, I found the solution. I feel pretty dense; changing this animation ID to the one I want changes the animation, which would allow me to only edit the animations and leave the script to update as Roblox does:
To answer your question, my thought process was that using a script that can’t update as Roblox does would inevitably cause issues as new features were added.
Say they added flying as an outrageous example; the animate script would be updated on Roblox’s end to handle that new animation or state, but my script would use the old version before they added the flying. Thus, flying would be broken.
I feel like editing the animate script wouldn’t affect the flying itself, it would simply break the animations that come with flying. But I do see what you’re saying, flying would most likely still work. It would just look odd