Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a spawn and then teleport the player into an obby?

Asked by 2 years ago

I was wondering how to make a lobby and then make that player go into a portal to get into an obby. I just didnt know where to start. I am NOT requesting for anyone to make me a full script, just the knowledge of what I need to do. Thank you.

0
What you need to do is when the Player touches the portal, change the CFrame of that Player's HumanoidRootPart to an invisible part in the obby. MarkedTomato 810 — 2y
0
but i have spawnpoints in the obby, so when i place down a spawn point in the lobby, it either teleports me to the obby, or the lobby. Jace2200 0 — 2y
0
spawn locations Jace2200 0 — 2y
0
You need to make a map for the lobby and a separate map for the obby. When you have those 2 maps. You need to make a script so when you enter that "portal" you get teleported to the obby. happyarcs 0 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

SCRIPT

local LobbySpawner = workspace.Lobby.SpawnLocation
-- make sure to change this variable to yours

game.Players.PlayerAdded:Connect(function(Player)
   Player.RespawnLocation = LobbySpawner 
end)

I'll edit this again, but for now, this will solve one of the problems you have.

Ad

Answer this question