Walk Animation not being replaced

I an trying to replace the walk animation with a custom one.
here is my code.
it prints “loaded” always without errors
the animation itself does work but it is not replacing the walk animation.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Animations = ReplicatedStorage.Animations

local Character = script.Parent
local Animate = Character:WaitForChild("Animate")
local RunHolder = Animate:WaitForChild("run")
local Animation = RunHolder:FindFirstChildOfClass("Animation")

Animation.AnimationId = "rbxassetid://14810055488"
print("loaded")
2 Likes

Did you try to look at the LocalScript Animate inside the character?

2 Likes

yeah.
not the actual scripts contents though. (like code)

2 Likes

You created another Animate script or replaced the lines inside the roblox Animate script?

2 Likes

this script doesn’t replace the normal animate script or at least I am pretty sure
I named it “Reanimator” and put it in starter character scripts.

it still plays the default animation even though it successfully modifies that value

1 Like

Then try to replace manually on the script Animate

1 Like

as in copy it from the character and put it in character scripts and modify the animation id myself?

1 Like

Yes, i suggest this. also, you can try something else before modifying it. I found this on a post but not sure if it will work:

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		wait(3)
		char.Animate.walk.WalkAnim.AnimationId = "rbxassetid://YOURANIMATIONID"
		char.Animate.run.RunAnim.AnimationId = "rbxassetid://YOURANIMATIONID"
	end)
end)

1 Like

Ah I think I figured out the problem
I have to edit the walk animation on the server
I did a small modification cleaning up that script if anyone ends up reading this and wants it

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		local Animate = Character:WaitForChild("Animate")
		
		Animate.walk.WalkAnim.AnimationId = "rbxassetid://YOURIDHERE"
		Animate.run.RunAnim.AnimationId = "rbxassetid://YOURIDHERE"
	end)
end)
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.