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 » Scripting Helpers
Home Search
 

Re: WHAT'S THE CODE FOR SHUT DOWN SERVER?

Previous Thread :: Next Thread 
QuarterTerm is not online. QuarterTerm
Joined: 29 Jun 2013
Total Posts: 6795
29 Jul 2013 06:37 PM
Please? Thank you.
Report Abuse
QuarterTerm is not online. QuarterTerm
Joined: 29 Jun 2013
Total Posts: 6795
29 Jul 2013 06:40 PM
bump
Report Abuse
DonnyTheDemented is not online. DonnyTheDemented
Joined: 29 May 2010
Total Posts: 1413
29 Jul 2013 06:40 PM
Instance.new('ManualSurfaceJointInstance', Workspace)
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
29 Jul 2013 06:47 PM
^ You are incredibly hacky
Report Abuse
ZeroSpectrum is not online. ZeroSpectrum
Joined: 02 Mar 2011
Total Posts: 315
29 Jul 2013 06:51 PM
Well, considering roblox hasn't made any events for shutting down a server I think that works just fine.
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
29 Jul 2013 06:55 PM
Why not an infinite number of infinite loops? I like that one. :D
Report Abuse
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
29 Jul 2013 07:44 PM
^ Could you show an example of that? o.O
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
29 Jul 2013 07:46 PM
I'm pretty sure it would look like:

while true do
Spawn(function() while true do end end)
end
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
29 Jul 2013 07:48 PM
I think you could do this as well..

while true do end
Report Abuse
Merilo is not online. Merilo
Joined: 01 Aug 2011
Total Posts: 500
29 Jul 2013 07:50 PM
Well servers shut down quicker now when you remove everybody's player, so that would be a "cleaner" way.

for _, Object in pairs (game.Players:GetChildren())
Object:Destroy()
end
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
29 Jul 2013 07:52 PM
What about this guise?


function lol()
while true do
lol()
end
end

Report Abuse
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
29 Jul 2013 07:53 PM
will failzors

local lol
function lol()
while true do
lol()
end
end

is fix
Report Abuse
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
29 Jul 2013 07:53 PM
@Merilo that wouldn't be very effective if it was a popular server, unless the servers shutdown instantly when there are 0 players ingame.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
29 Jul 2013 07:54 PM
How is that a fix? Having local lol won't change anything. Try my script without your 'fix', and you'll notice it's not broken at all.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
29 Jul 2013 07:55 PM
okay, missed one line, but it's not related to that silly fix.


function lol()
while true do
lol()
end
end

lol()
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
29 Jul 2013 07:57 PM
Right, stack overflow blocks my idea. Tho this works fine:

function lol()
while true do
Spawn(Lol)
end
end
lol()
Report Abuse
Merilo is not online. Merilo
Joined: 01 Aug 2011
Total Posts: 500
29 Jul 2013 07:57 PM
@quickfrozen I've tried it recently, and it shuts down close to presently, if not instantly.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
29 Jul 2013 07:59 PM
Also you should think about:


[3:57:10] Jonathan Rubenstein: Don't run the memory out on the server.
[3:57:14] Toshir0z: Why :c
[3:57:32] Jonathan Rubenstein: BECAUSE IT COSTS SOMEONE MONEY WHEN YOU DO
[3:57:54] Jonathan Rubenstein: DID YOU GUYS EVER THINK ABOUT THE HOSTS
[3:57:56] Jonathan Rubenstein: ?
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
29 Jul 2013 08:00 PM
Would crash__() work in online mode? Or only in studio?
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
29 Jul 2013 08:01 PM
Only in studio.
Report Abuse
Merilo is not online. Merilo
Joined: 01 Aug 2011
Total Posts: 500
29 Jul 2013 08:01 PM
I think crash_() is protected.
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
29 Jul 2013 08:02 PM
@Merilo, it only work in the command bar.
Report Abuse
Merilo is not online. Merilo
Joined: 01 Aug 2011
Total Posts: 500
29 Jul 2013 08:03 PM
Okay, thank you for letting me know that.
Report Abuse
tuxedoman23 is not online. tuxedoman23
Joined: 24 Apr 2009
Total Posts: 4670
29 Jul 2013 08:34 PM
There's a method roblox made to clear all the players out of a server.

Example:

game.Players:ClearAllChildren()
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
29 Jul 2013 08:36 PM
But people can still join
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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