|
| 01 Feb 2017 05:07 PM |
| Does anyone know what to put in a script for resetting the game while players are online, on the server playing my game???? like on other games. do I need a lobby to reset the game each time and load the players in on the server? |
|
|
| Report Abuse |
|
|
Thane_1
|
  |
| Joined: 08 Apr 2009 |
| Total Posts: 827 |
|
|
| 01 Feb 2017 05:24 PM |
Like shut down every server, or starting a game mode?
~Who's awesome? You're awesome! |
|
|
| Report Abuse |
|
|
|
| 01 Feb 2017 05:38 PM |
| I mean like on some games like survive natural disasters, for example, you would try to survive a disaster in a round, then it ends after a certain period of time and the players would go back to the lobby before the next one loads up, except for me it would be just my single round/game resetting itself over and over. Any ideas? |
|
|
| Report Abuse |
|
|
Thane_1
|
  |
| Joined: 08 Apr 2009 |
| Total Posts: 827 |
|
|
| 01 Feb 2017 05:57 PM |
You need a bool variable to determine if the game is in session, and when end the game, use CFraming to LoadCharacter to teleport everyone to the lobby. Then to start the game, you can use CFraming to teleport them in. If you have a map, store it in ServerStorage, and have it load when the game starts, and remove when the game ends.
~Who's awesome? You're awesome! |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2017 12:53 PM |
I have never done this before so could you explain step by step on how to do this? Also don't have a lobby so if you could explain how to do that, that would be cool. thanks. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2017 11:25 AM |
| Can anyone explain step by step how to do this because I don't know. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 06 Feb 2017 11:30 AM |
if you go to this link and click on "edit" you will see a good setup to use
https://www.roblox.com/games/141589692/Basic-Minigame
|
|
|
| Report Abuse |
|
|
Majarite
|
  |
| Joined: 14 Jan 2017 |
| Total Posts: 394 |
|
|
| 06 Feb 2017 11:30 AM |
I think you're coding it wrong.
There should be a main game management loop which starts rounds over and over, and a loop inside that when a round is in session which checks for a round ending condition or if time is up.
|
|
|
| Report Abuse |
|
|