I was making this mob which would move left and right, but it it shows and error
while true do
wait(1.5) -- This will change how long it walks in one direction. Feel free to change it.
script.Parent.Humanoid:MoveTo(script.Parent.Torso.Position.X -5)
wait(1.5)
script.Parent.Humanoid:MoveTo(script.Parent.Torso.Position.X + 10)
end
error: Unable to cast double to Vector3
