NPC animations break when viewed on the client?

im making a basic npc then making it chase the player and use pathfinding and stuff but currently the animations work when viewed from the server, but not the client

the animate script is the default roblox player one however i converted it to a server script - it doesnt make a difference

the problem is on the server the walk animation works fine however when the client views it the character is almost t posing

here is the current ai code

local Dummy = script.Parent
local Humanoid = Dummy.Humanoid

local function move(Destination)
	
	for _, part in pairs(workspace.Waypoints:GetChildren()) do
		Humanoid:MoveTo(part.Position)
		Humanoid.MoveToFinished:Wait()
	end
end

local function runAround()
	local waypoints = workspace.Waypoints:GetChildren()
	local randomNum = math.random(1, #waypoints)
	move(waypoints[randomNum])
end

while wait(0.5) do
	runAround()
end
1 Like

btw its a custom character not a default roblox dummy