I've been trying to make the dummy animate whenever it's walking or it's still. The problem is that the animations doesn't start. code
local Customer = script.Parent
local idle = Customer.Humanoid:LoadAnimation(script.Parent.Idle)
local Walk = Customer.Humanoid:LoadAnimation(script.Parent.Walk)
local Speed = Vector3.new(Customer.HumanoidRootPart.Velocity.X, 0, Customer.HumanoidRootPart.Velocity.Z).magnitude
if Speed > 1 then
if idle.IsPlaying then
idle:Stop()
end
Walk:Play()
end
if Speed == 0 then
if Walk .IsPlaying then
Walk:Stop()
end
idle:Play()
end
I've tried searching around but I didn't understand, or found anything helpfull I'm new into coding, so i don't really know these type of stuff
I've tried writing the animation in another way too, but it gives me an error
local idle = Customer.Humanoid.Animator:LoadAnimation(script.Parent.Idle)
Animator is not a valid member of Humanoid "Workspace.Models.Clients.Customer1.Humanoid"