Local animationTrack = humanoid:LoadAnimation(animation) Local animation = script:FindFirstChild('Animation') or script:WaitForChild('Animation') Local character = player.Character or player.CharacterAdded:Wait() Local player = game:GetService('Players').LocalPlayer
I use something like that: local runService = game:GetService('RunService')