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: server shutdown script

Previous Thread :: Next Thread 
SinisterMentality is not online. SinisterMentality
Joined: 14 Jun 2015
Total Posts: 700
19 Oct 2015 04:59 PM
So I want a script that'll shut down servers after they've been running for 8 hours so it'll reduce lag, any suggestions?
Report Abuse
SinisterMentality is not online. SinisterMentality
Joined: 14 Jun 2015
Total Posts: 700
19 Oct 2015 05:03 PM
bump
Report Abuse
SinisterMentality is not online. SinisterMentality
Joined: 14 Jun 2015
Total Posts: 700
19 Oct 2015 05:03 PM
bumpity
Report Abuse
SinisterMentality is not online. SinisterMentality
Joined: 14 Jun 2015
Total Posts: 700
19 Oct 2015 05:04 PM
qq
Report Abuse
SinisterMentality is not online. SinisterMentality
Joined: 14 Jun 2015
Total Posts: 700
19 Oct 2015 05:06 PM
cri cri
Report Abuse
SinisterMentality is not online. SinisterMentality
Joined: 14 Jun 2015
Total Posts: 700
19 Oct 2015 05:10 PM
halp pls
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
19 Oct 2015 05:12 PM
Umm make the script wait 8hrs then kick all the players from the server it's pretty obvious
Report Abuse
SinisterMentality is not online. SinisterMentality
Joined: 14 Jun 2015
Total Posts: 700
19 Oct 2015 05:20 PM
as ever so helpful as it is, I still need to know how to script in the kick all players part as well as time limit?
Report Abuse
expoundings is online. expoundings
Joined: 02 Feb 2013
Total Posts: 2359
19 Oct 2015 05:23 PM
for i, v in pairs(game.Players:GetChildren()) do
v:kick()
end
Report Abuse
expoundings is online. expoundings
Joined: 02 Feb 2013
Total Posts: 2359
19 Oct 2015 05:24 PM
you could also use :ClearChildren() but it probably wouldn't kick the players instantly, unlike :kick()
Report Abuse
SinisterMentality is not online. SinisterMentality
Joined: 14 Jun 2015
Total Posts: 700
19 Oct 2015 05:25 PM
gg
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
19 Oct 2015 05:25 PM
wait(60*60*60*8)
for X, plr in ipairs(game.Players:GetPlayers()) do
plr:Kick("Server has shutdown")
end
Report Abuse
SinisterMentality is not online. SinisterMentality
Joined: 14 Jun 2015
Total Posts: 700
19 Oct 2015 05:25 PM
Oh, thanks for the info. Do you know how to set it on a time limit?
Report Abuse
expoundings is online. expoundings
Joined: 02 Feb 2013
Total Posts: 2359
19 Oct 2015 05:27 PM
@sharp: cool i didn't know you can change the message it displays when you kick a player lol
Report Abuse
expoundings is online. expoundings
Joined: 02 Feb 2013
Total Posts: 2359
19 Oct 2015 05:29 PM
also the amount of seconds in 8 hours is 28800 so you would do use

wait(28800)
--code to kick players
Report Abuse
SinisterMentality is not online. SinisterMentality
Joined: 14 Jun 2015
Total Posts: 700
19 Oct 2015 05:29 PM
Thanks again for the help guys, it's much appreciated.
Btw I'd add the script into player right?
Report Abuse
expoundings is online. expoundings
Joined: 02 Feb 2013
Total Posts: 2359
19 Oct 2015 05:30 PM
no, just add it to the workspace or wherever you store your scripts
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
19 Oct 2015 05:31 PM
Yea the wait() command is the time limit the script waits the amount of seconds in 8 hours and then it kicks all the players
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