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

How to change a player's animation live in a server script?

I am making an FE avatar editor. Right now I want to change player R15 animations for other animation packs Roblox released. As of right now, I couldn't get my script working. Could anyone script it for me? Thanks in advanced.

Script I tried using:

local NewClimbAnim = script.ClimbAnim:Clone()
animationScript.climb.ClimbAnim:Destroy()
script.NewClimbAnim.Parent = animationScript.climb

I have also tried cloning the player's animation script then adding the modfiied changes then deleting the player's animation and putting the changed one in the player.

2 comments

0

Please give us the script.

0

Alright.

1 answer

✓ Accepted answer
local NewClimbAnim = script.ClimbAnim:Clone()
animationScript.climb.ClimbAnim:Destroy()
NewClimbAnim.Parent = animationScript.climb

I got this code working in Studio. You were setting the wrong animation's parent to the animation script.

1 comment

0

I know it is not possible to upload a animation ID and put it in the thing. As Roblox has a issue where it changes ID of animations.

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