Keybind script not working

You’ve tried moving the animations somewhere other then ServerScriptService correct?

Yeah he already did I believe. I told him to

Also i would recommend loading the animation at the beginning so you dont have to load a new animation every time its played.

script isn’t disabled when I test it, is it possible the error is due to me setting it’s parent to the player tho

I wish I could send you a discord meme.

Yes that’s exactly it. Put it in StarterCharacterScripts

Put the local script inside the StarterGui or the StarterPlayerScripts, i believe that is what it is called.

Wouldn’t it work from the StarterGui, or somewhere like that?

Oh hang on are you trying to have the Animation play locally or server side?

it’s a animation for the player so local ig

Meaning what exactly? You could be talking about a first person animation which is Local or some sort of ServerSide animation like walking or something.

Do you want only the player to see the animation being played or everyone in the server.

the problem is I clone the script way after the player spawns

pUT THE SCRIPT IN sTARTERcHARACTERsCRIPTS

It should fix your problem. Since you don’t have any wait for character yields at the top of your script, put it there.

I want everyone to see it, but doesn’t it show in the server too if I play the animation on player

Hey - for clarity, could you send us any errors in the output you see?
Could you also send us the code regarding how/where the LocalScript is placed?

These will help us identify the issue, as we are solely basing it off what we think is going on.

Erm im not 100% sure if animations played Locally revert to Server, but you could just use a RemoteEvent and play them from the server instead.

If this is a localscript, an easier way to get the character of the player is this :

local Character = player.Character

Oh, it works now tysm (30 character limit)

2 Likes