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

Can I teleport a specific player to a position when they join?

Hi, I want to teleport 1 specific player when they join the game without having to touch a brick. I know how it would work, it would keep checking every time someone joined and if they had the correct name the would teleport to a part or location. It is just that I do not have much experience in scripting and would really love some help with this.

1 answer

✓ Accepted answer

You could do this by using the PlayerAdded Function and the :MoveTo() Yield Function.

local PlayersTriggered = {"tictac67", "Player1"} --//Names of players that trigger when they join

game.Players.PlayerAdded:Connect(function(Player) --//Player = Player's Name that joined
	Player.CharacterAdded:Connect(function(Character)
		if PlayersTriggered[Player.Name] then
			Character:MoveTo(workspace:FindFirstChild("INSERT BRICK NAME HERE").Position)
		end
	end)
end)

1 comment

0

Thanks :)

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