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
 

How does one shutdown a server?

Previous Thread :: Next Thread 
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
30 Mar 2014 02:35 AM
Seen people do it before, I have no method of doing so other than lagging out all of the clients.
-=Robo=-
Report Abuse
iYoshiFox is not online. iYoshiFox
Joined: 14 Apr 2012
Total Posts: 1058
30 Mar 2014 02:35 AM
game.Players:ClearAllChildren()
Report Abuse
NewbControl114 is not online. NewbControl114
Joined: 09 May 2009
Total Posts: 10303
30 Mar 2014 02:36 AM
while true do
g = Instance.new("ManualSurfaceJointInstance", workspace)
end

Report Abuse
iYoshiFox is not online. iYoshiFox
Joined: 14 Apr 2012
Total Posts: 1058
30 Mar 2014 02:38 AM
^^^^^
Don't do that.. ._. It can crash the entire game. (break it)
Report Abuse
rockandgreen is not online. rockandgreen
Joined: 20 Dec 2011
Total Posts: 1161
30 Mar 2014 02:38 AM
Also if your an owner of a game you can click shutdown on a server in the games tab showing all the different servers on YOUR game underneath your game.
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
30 Mar 2014 02:49 AM
@rockandgreen
that's a pointless amount of effort when i could just code an automatic method of it everytime it's updated rather than shutting down every individual server
-=Robo=-
Report Abuse
rockandgreen is not online. rockandgreen
Joined: 20 Dec 2011
Total Posts: 1161
30 Mar 2014 02:53 AM
Oh ok I didn't know that's what you needed. Was wondering why you were on scripting helpers forum. Now I know.
Report Abuse
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
30 Mar 2014 03:05 AM
@iYoshi

This will not work because someone can join the game right after this happens.
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
30 Mar 2014 05:06 AM
while wait() do
for i,v in pairs(game.Players:GetPlayers()) do
v:Kick()
end
end

#nerdsunited
Report Abuse
compy111 is not online. compy111
Joined: 02 Apr 2009
Total Posts: 583
30 Mar 2014 06:59 AM
while true do
print("bye bye")
end


This will also shutdown the server lol
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
30 Mar 2014 10:42 AM
Guys, these all work and all but I need a method that'll prevent people from entering after it's been shutdown and won't crash everyone. In other words, I need to know how to lock the server.
-=Robo=-
Report Abuse
compy111 is not online. compy111
Joined: 02 Apr 2009
Total Posts: 583
30 Mar 2014 10:45 AM
ooh, that way.

Go to your roblox profile.
Below the list of your places there is a button called: 'Manage places'.
Click on that and you will see all your places.
Go to the place you want and click on 'Active' beneath the name.
This will shutdown all servers properly and nowone is able to enter anymore.
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
30 Mar 2014 10:47 AM
compy, i knew how to do that, dude, that's not what i meant. xD
What I'm talking about is say I created a mechanism using data store that recognized when there was a new version available. It would notify all players in the server that 10 minutes post notification the server would be shut down and it does it for me so I don't have to do it myself.
I know it's possible to remove all the players but I can't think of anyway to efficiently keep a server empty until it's removed other than crash banning everyone who tries to enter.
-=Robo=-
Report Abuse
compy111 is not online. compy111
Joined: 02 Apr 2009
Total Posts: 583
30 Mar 2014 11:10 AM
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOHHHHHHHHHHHHHH
Now I got it (at least I think so)

game:Shutdown()
Report Abuse
spearman2 is not online. spearman2
Joined: 28 May 2010
Total Posts: 2938
30 Mar 2014 11:12 AM
game:Shutdown() is locked

Like all other very useful things.
Report Abuse
compy111 is not online. compy111
Joined: 02 Apr 2009
Total Posts: 583
30 Mar 2014 11:14 AM
right...
Doesn't kicking all player remove a server? Otherwise I don't think it is possible.
Report Abuse
ROBLOXTHEMOVIEs is not online. ROBLOXTHEMOVIEs
Joined: 11 Jun 2012
Total Posts: 5895
30 Mar 2014 11:15 AM
game.Players:ClearAllChildren()
game.Players.PlayerAdded:connect(function(p)
p:Destroy()
end)

I won a math debate
Report Abuse
spearman2 is not online. spearman2
Joined: 28 May 2010
Total Posts: 2938
30 Mar 2014 11:22 AM
p = game.Players:GetPlayers()
for i = 1,#p do
p[i]:Kick()
end

Won't shut the game down instantly...but...it's disconnect every player..close enough right..
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