Animation Error

I add Capybaras to Maxwell cat and animation isnt working to capybaras


local set = script.Settings
local sp = set.Speed
local enabled = set.Enabled
local hum = script.Parent:WaitForChild("NPC2")
local humanim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation"))

--Playing Animation--
if enabled.Value == true then
	humanim:Play()
	humanim.Looped = true
	humanim:AdjustSpeed(sp.Value)
end 

Did i do something wrong?
화면 캡처 2023-03-05 191742

7 Likes

Any errors in the output?
Also, use Humanoid.Animator:LoadAnimation, as opposed to directly doing it from the Humanoid.
Can you try print debugging? i.e. checking if set.Speed is what it’s meant to be, checking if the if statement runs, etc.

2 Likes

There is no error in the output

1 Like