Hello!
So i was making a crawling system which is working! but when i put my animation id…
Yeah… for no reason my animation didn’t crawl correctly, also this is what the animation should be
idk what makes the animation like that so… If yall can help me or gave me some advise to fix this, i appreciated it =D
also… my script:
local CrouchAnim = script.Animation
local Sound = script.Sound
local Plr = game:GetService("Players")
local char = Plr.LocalPlayer.Character or Plr.LocalPlayer.CharacterAdded:Wait()
local Humanoid = char:WaitForChild("Humanoid")
local Animator = Humanoid:FindFirstChild("Animator")
local UIS = game:GetService("UserInputService")
local CrouchTrack = Animator:LoadAnimation(CrouchAnim)
local Crouch = false
UIS.InputBegan:Connect(function(input, gameProccesed)
if input.KeyCode == Enum.KeyCode.C and not gameProccesed then
if not Crouch then
Crouch = true
CrouchTrack:Play()
Humanoid.WalkSpeed = 8
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing, false)
Humanoid.Running:Connect(function(speed)
if speed > 0 then
Sound:Play()
CrouchTrack:AdjustSpeed(1)
else
Sound:Stop()
CrouchTrack:AdjustSpeed(0)
end
end)
else
Crouch = false
CrouchTrack:Stop()
Humanoid.WalkSpeed = 16
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing, true)
Sound:Stop()
end
end
end)
