Which is better for custom walk?
1 - Server Script
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
char.Animate.walk.WalkAnim.AnimationId = "rbxassetid://YOURANIMATIONID"
char.Animate.run.RunAnim.AnimationId = "rbxassetid://YOURANIMATIONID"
end)
end)
2 - Local Script on StarterCharacterScripts
local walkId = IDHERE
local humanoid = character:FindFirstChildWhichIsA("Humanoid")
local walkAnim = script.Walk
local walkAnimTrack = humanoid.Animator:LoadAnimation(walkAnim)
humanoid.Running:Connect(function(speed)
if speed > 0 then
if not walkAnimTrack.IsRunning then
walkAnimTrack:Play()
end
else
if walkAnimTrack.IsPlaying then
walkAnimTrack:Stop()
end
end
end)