Zeranoc
|
  |
| Joined: 23 Aug 2014 |
| Total Posts: 492 |
|
|
| 05 Aug 2016 04:09 PM |
| How would I shutdown a specific server through a script? |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2016 04:10 PM |
kick all players from the game
also just use the servers tab |
|
|
| Report Abuse |
|
|
Zeranoc
|
  |
| Joined: 23 Aug 2014 |
| Total Posts: 492 |
|
|
| 05 Aug 2016 04:12 PM |
| Well I wanted it to remove a server if the players all left. Roblox does that for you? |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2016 04:13 PM |
Well obviously yes but if there is an onClose function or it has a really poor connection or people are still trying to connect to it, it will wait a bit before shutting down.
function ShutDownGame()
coroutine.wrap(function() while wait() do for _,v in pairs(game.Players:GetPlayers()) do v:Kick() end end end)()
end |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 05 Aug 2016 04:15 PM |
He is talking about remotely shutting down a specific server. You could probably use http service and idk about datastores if those would help
|
|
|
| Report Abuse |
|
|
Real_Edgy
|
  |
| Joined: 23 Oct 2013 |
| Total Posts: 1212 |
|
|
| 05 Aug 2016 04:19 PM |
| PHP/ASP.NET web site/application that takes POST requests to get open servers and their statuses, and a remote tool that allows you to shut down these servers listed here. |
|
|
| Report Abuse |
|
|