so i have a animation and i want it to play while im walking in the game.
but when im walking my character does like a dummy pose
--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 = "11421306552"
end
local function onPlayerAdded(Player)
Player.CharacterAppearanceLoaded:Connect(loadAnims)
end
game.Players.PlayerAdded:Connect(onPlayerAdded)