I've tried everything I can and it doesn't work I changed the normal Roblox animation code so that if the WalkSpped is equal or more than WalkSpeed a different animation is played
local Players = game:GetService("Players")
local runAnimation = "rbxassetid://8477846036" --Gets Animation
local function onCharacterAdded(character)
local humanoid = character:WaitForChild("Humanoid") -- Gets humanoid
local animateScript = character:WaitForChild("Animate") --
local walkspeed = humanoid.WalkSpeed
if walkspeed >= 25 then
animateScript.run.RunAnim.AnimationId = runAnimation
elseif walkspeed < 25 then
--
end
end
local function onPlayerAdded(player)
player.CharacterAppearanceLoaded:Connect(onCharacterAdded) -- Connects onCharacterAdded when the CharacterApperanceLoaded is true
end
Players.PlayerAdded:Connect(onPlayerAdded) -- Connects onPlayerAdded to PlayersAdded idk

4 comments
When i use this script there is alot of variable errors and i dont know how to make the changes to make the variable
@NoahSegasonic like what?
plr and humanoid
I'm sorry I didn't notice, editing my answer now.