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

Universal Spawns! How to control player spawning?

I've been working on a game that uses different places. And I've found myself stuck and have absolutely no idea how to make a spawn system where in my character resumes the point to where it's been. Example: The Starting place is a house, in the house there are 2 doors, 1st door teleports you outside(another place in the universe), and the 2nd door teleports you to the garage(another place in the universe). Now the problem starts here, when I return back to the house (via teleporting). How can I make sure I go out the right door/spawn in front of the right door? How do I make a spawn in which my character which was from the garage place pops out in front of the garage door NOT THE DOOR THAT LEADS OUTSIDE

If you can redirect me to a link that teaches all about spawn locations and scripts which saves and functions as checkpoints, I would really appreciate it.

1 answer

✓ Accepted answer

http://wiki.roblox.com/index.php?title=API:Class/TeleportService/TeleportToSpawnByName

You just have to have the actual spawns named. And, my tip: Use one (spawn location) that's neutral and the others have another team (and don't allow TeamChangeOnTouch). This way you have a spawner that only spawns you upstairs. And, best of all, (at least I think, i've never tried this) you don't need the teams service inserted! It just won't spawn the player there unless the game is specifically told to do so!

I don't know if Roblox thought of this, but it is a really good addition to Studio.

Not sure why this is in code, but excuse it please.

4 comments

0

Thank you man! Much appreciated

0

np

0

The link itself was plenty help, you didn't need to give tips as it is provided by the link you gave. Although, thank you for the help, (P.S) if you're not sure about certain answers he part where you say I think, you can always say it as a comment not as an answer.

0

I know.

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