Why is my custom walk anim not replicating to server?

I need my custom walk animation to get replicated to the server but it is not. By now it is only possible to be seen by the own player, and I thought animations were suposed do be replicated automatically. I have other custom animations that fires during events called in local script that are replicated with no problems, only walk animation is not.

I have tried:

  • put in localscript and in server script this:
-- after character sucessfully loaded
for i, track in pairs (AnimationTracks) do
	track:Stop()
end

character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=aaaaaaa"
character.Animate.run.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=aaaaaaa"

Not replicated.

  • Change the asset Id defined within the Animate script and put it in StarterCharacterScripts, with all the animation Ids inside this Instance manually changed too. Not replicated.

  • First call humanoid:LoadAnimation() and then replace the default ones by a created animation Instance. Not replicated.

This is sounding very buggy to me cause i think they were suposed to work by these methods.

Note that I am using a totally custom character and the parts in the char doesnt have the same name as a default rig but for HumanoidRootPart, Head and Right/LeftHand.
Also the characters are custom loaded in game using :LoadCharacter()

HELP ;-;

1 Like

If there is no fix, i think i will have to call track:Play() within input events for W A S D

hit play
go in workspace
find your character
copy the animate localscript
hit stop
paste the animate localscript in startercharacterscripts
change the variables inside the localscript and in the animation objects

As I have written in the question, Ive already tried that, still it doesnt replicate.

Here is a few notes…

First of all, the walk and run animations cant have the same ID. For some reason it bugs.

Also, you can changed the animations id when using playeradded/character event like so

Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
	wait(3)
	character.Animate.run.WalkAnimation.AnimationId = "rbxassetid://4793635688"
	character.Animate.walk.WalkAnimation.AnimationId = "different id"
	end)
end)

Read this helpful thread :slight_smile:

3 Likes