Here's the crouch animation:
local player = game.Players.LocalPlayer local mouse = player:GetMouse() local Animate local Humanoid = player.Character:FindFirstChild('Humanoid') if player.Character.Humanoid.Walkspeed > 0 then? local Animation = Instance.new("Animation", player.Character) Animation.AnimationId = "rbxassetid://2633841247" Animate = Humanoid:LoadAnimation(Animation) Animate:Play()
==========================================================================================================================================================
Video of what the crouching animation looks like: https://gyazo.com/d427b29ec06f88429bea89ea5f26c6c8
Since I don't have your crouch walking animation script, I'm just going to use the one above to show you an example of how you could do it, you'd just have to substitute it for the correct animation though.
Also going to make this a bit easier for you, I changed it up so you would be able to just put the script into character scripts, so it would be in every character when they load into the game.
local player = script.Parent local mouse = game.Players.LocalPlayer:GetMouse() local Animate local Humanoid = player.FindFirstChild('Humanoid') local crouchSpeed = 15 -- just a random number that I picked which you would set to the max speed of crouch walk if player.Character.Humanoid.Walkspeed == crouchSpeed then local Animation = Instance.new("Animation", player.Character) Animation.AnimationId = "rbxassetid://2633841247" Animate = Humanoid:LoadAnimation(Animation) Animate:Play()
I obviously haven't tested this because of me not having the walking animation, but it should work with maybe some minor fixes I might have missed.