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

Why is this TeleportService not working?

When a player with BC joins the game, I want them to be teleported to the BC version of the game. For some reason, I can't seem to get this to work. What am I doing wrong?

game.Players.PlayerAdded:connect(function(player)
	if player.MembershipType ~= Enum.MembershipType.None then
		game:GetService("TeleportService"):Teleport(140909480, player)
	end
end)

2 answers

Allowing a small wait time before the teleport might work. Also, did you try it from the site? Cause it doesn't work from Studio.

Also, I've noticed that some things just need to be set as a local variable to work right, such as FindFirstChild(). So try seeing if this works: game.Players.PlayerAdded:connect(function(player) if player.MembershipType ~= Enum.MembershipType.None then local tel = game:GetService("TeleportService") tel:Teleport(140909480, player) end end)

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