print("Armytruck touched this") while true do local player = game.Workspace.NPC player.Humanoid:MoveTo(Vector3.new(0,0,0),game.Workspace.End.Position) wait() end
The error from Roblox Studio: Unable to cast value to object
Why do i get this error. What does it mean?
moveTo()
only works for models and you're trying to move a players humanoid... Another thing you're doing wrong is adding another vector3... You should only be giving it one vector3 value. Here.
player.Character:MoveTo(game.Workspace.End.Position)