RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a script that changes a players animation when player is running"
-- local script local Players = game:GetService("Players") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local runAnim = Instance.new("Animation") runAnim.AnimationId = "rbxassetid://your_run_animation_id_here" local runAnimTrack = humanoid:LoadAnimation(runAnim) humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function() if humanoid.WalkSpeed > 16 then runAnimTrack:Play() else runAnimTrack:Stop() end end)