i am very new to animation so i dont know what im doing
local IdleAnimation = script:WaitForChild("IdleAnimation") local Humanoid = script.Parent.Humanoid local AnimationTrack = Humanoid:LoadAnimation(IdleAnimation) AnimationTrack:Play() local StartupSprint = script:WaitForChild("SprintStartUp") local SprintAnimation = script:WaitForChild("SprintAnimation") local LoadSprintA = Humanoid:LoadAnimation(SprintAnimation) local loadIt = Humanoid:LoadAnimation(StartupSprint) local RunService = game:GetService("RunService") RunService.RenderStepped:Connect(function() if Humanoid.MoveDirection.X == 1 or Humanoid.MoveDirection.X == -1 then loadIt:Play() loadIt.Stopped:Wait() LoadSprintA:Play() else LoadSprintA:Stop(2) end end)
i want it to play the startup animation when i start moving and when that animation ends it will play another animation
i just need my animations to play correctly in the right pattern and thats it and also i would like tips and suggestions
idk if using runservice is the right choice here but im currently just making a prototype so not everything has to be perfect