local UIS = game:GetService("UserInputService")
local char = script.Parent
local hum = char:WaitForChild("Humanoid")
local anim = hum:LoadAnimation(script:WaitForChild("Animation"))
local isCrawling = false
if input.KeyCode == Enum.KeyCode.C then
if not isCrawling then
script.Parent:WaitForChild("iscrouch").Value = true
hum.WalkSpeed -= 10
isCrawling = true
script.Parent:WaitForChild("iscrouch").Value = false
hum.WalkSpeed += 10
isCrawling = false
My script is suppose to do a crouch animation, the animation runs, but the animation should lower the persons humanoid, which it’s not doing.
If you animate the character to go lower you shouldn’t have to adjust the hip height manually. If you’re having animations issues try to set the priority of the animation higher and see if it works. Roblox recently did something to the animations and it’s been buggy.