I need scripting help

I want to make it so that when I am walking above a certain speed the jump animation changes and when I go below that certain speed the jump animation changes back.

how would I script this?

This would be in #help-and-feedback:scripting-support

And to do that you would,
Get the player.
Once there speed is higher then X
Change animation.

You can look up how to do those individual things!
Good luck!

2 Likes

I tried doing this but this would crash the game every time and when I add a wait(0.5) after “while true do” it runs the game but even when my walk speed is greater than 20 (When I start running) it prints “Player Stopped Running

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		local humanoid = char:WaitForChild("Humanoid")
		while true do
			if humanoid.WalkSpeed > 20 then
				plr.Character.Animate.fall.FallAnim.AnimationId = "http://www.roblox.com/asset/?id=13503096709"
				print("Player Started Running")
			else
				plr.Character.Animate.fall.FallAnim.AnimationId = "http://www.roblox.com/asset/?id=13502938748"
				print("Player Stopped Running")

			end
		end

	end)
end)

This script is located inside of serverscriptservice and is a server script

You do not have a wait statement inside your while true do loop. The code is running at an extremely fast pace where your system would eventually crash.

I understand that but when I add a 0.5 wait it still keeps the same fall animation as before

Check if the code proceeds to change under certain walkspeed with a print statement.