Animation not working

my animation wont work and my characters animation would not exist. it would just make a dummy pose when i walk.
my script.

--11421306552 -- ID of animation
-- CustomAnims is script name
-- parent of script = ServerScriptService
local function loadAnims(char)
	local Hum = char:WaitForChild("Humanoid")
	local Animator = Hum:WaitForChild("Animator")

	for _, Track in pairs(Animator:GetPlayingAnimationTracks()) do
		Track:Stop(0)
	end

	local AnimScript = char:WaitForChild("Animate")
	AnimScript.walk.WalkAnim.AnimationId = "11421595848"
end

local function onPlayerAdded(Player)
	Player.CharacterAppearanceLoaded:Connect(loadAnims)
end

game.Players.PlayerAdded:Connect(onPlayerAdded)

Try getting and changing the walk animation ID in the character
Do player.Character.Animate.Walk or run.Animation.AnimationId = (Your animation ID)

where do i put your coding in my script?

Do it in starterplayerscripts it should work. Maybe find a yt guide

I don’t understand what’s your problem. Is it a code issue ? Are there errors in the output ? Is your animation made with a R6 Dummy and the current Dummy you are using is in R15 mode ?