generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: reset script help

Previous Thread :: Next Thread 
Megawally42 is not online. Megawally42
Joined: 02 Jan 2017
Total Posts: 11
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 is not online. 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
Megawally42 is not online. Megawally42
Joined: 02 Jan 2017
Total Posts: 11
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 is not online. 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
Megawally42 is not online. Megawally42
Joined: 02 Jan 2017
Total Posts: 11
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
Megawally42 is not online. Megawally42
Joined: 02 Jan 2017
Total Posts: 11
06 Feb 2017 11:25 AM
Can anyone explain step by step how to do this because I don't know.
Report Abuse
TimeTicks is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image