Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

new problem, ignore the answered mark?

move = game.Workspace.NPC.Humanoid

while true do
move:MoveTo(13, 0.5, -8)
wait()
function MoveToFinished ()
	move:MoveTo(44, 0.5, -21)
	function MoveToFinished()
		move:MoveTo(13, 0.5, -27)
		function MoveToFinished()
			move:MoveTo(-34, 0.5, 55)
			function MoveToFinished()
				move:MoveTo(-1, 0.5, -24)
				
			end
		end
	end
end
end

it says Unable to cast value to Object

2 comments

1

You can either make a new question, or reject his current answer by doing it the same way you did accepting it.

0

fine, ill make a new question

1 answer

✓ Accepted answer

Ur functions parenthese was i the wrong place

p = game.Workspace.good.Position
move = game.Workspace.NPC.Humanoid

while true do
game.Workspace.NPC.Humanoid:MoveTo(p)
wait()
function MoveToFinished ()
    move:MoveTo(10,0,40)
end
end

2 comments

0

what? the wiki said they go around the function... thank you

0

also, new issue, i editted the question

This discussion is preserved as it was. New answers, comments, and votes are closed.