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

How would I run an animation for only 1 client? {SOLVED}

Asked by 6 years ago
Edited 6 years ago

-- Solved it, apparently now you can use LoadAnimation even if its not directly descending from the object... I dont remember being able to but I tried it and now it works so yayyy XD

I have a dummy model in the workspace and this is the model you customize how you want your character to look.

And since everyone is using the same model I was wondering how do I get an animation to only play for 1 client when he/she equips a new outfit.

I have FE on and I know what youre thinking. Use a local script, well heres the problem. You cant have a local script inside workspace because it wont run. So I tried to have it inside the PlayerGui inside a button and when they press the button its supposed to load the animation into the player and use this script below.

local Idle = workspace.CharacterModel.Humanoid:LoadAnimation(workspace.CharacterModel.Idle)
Idle:Play()

But it errors saying LoadAnimation has to be called from a descendant of the character model basically.

So how would I do this if I cant load it this way? I tried using an animation controller and I didnt quite understand it...

Anyone have any ideas? Thank you for your time!

Answer this question