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

How to MoveTo local character?

Hey there! I got an question: How to MoveTo your local character to a brick in the workspace. I mean that the local player walk to the brick in the workspace. I tried alot but it didn't work. Can anyone explain me this?

Sincerly Nathan EggService The Netherlands

1 answer

✓ Accepted answer
game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		char:WaitForChild("Humanoid"):MoveTo(--put the brick here)
	end)
end)

This script basically waits for every character added in game, and then uses the event MoveTo for moving him to the brick you've set. MoveTo is pretty useful for NPCs and AIs, also if you didnt know, PlayerAdded fires when a player joined, and characteradded when a character was added (even with respawning), as it name says.

Hope i helped, if it works, it would be nice to get this as accepted answer ;)

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