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

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

Asked by
iRexBot 147
6 years ago
Edited 6 years ago

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.

0
Please give us the script. xAtom_ik 574 — 6y
0
Alright. iRexBot 147 — 6y

1 answer

Log in to vote
0
Answered by
xAtom_ik 574 Moderation Voter
6 years ago
Edited 6 years ago
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.

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. iRexBot 147 — 6y
Ad

Answer this question