|
| 22 Nov 2015 07:29 AM |
I have a group server, and I want to know if there's atleast an admin command that can refresh the game to its normal state. Or can I make it like a regular game when you leave, it turns normal again?
Stay MLG! |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Nov 2015 07:39 AM |
b2 (And 900th post yay c:)
Stay MLG! |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Nov 2015 08:15 AM |
Can someone atleast help?
Stay MLG! |
|
|
| Report Abuse |
|
|
|
| 22 Nov 2015 09:34 AM |
Use an ONchatted() function,and use a string table to check the users name.When person X chats "Regen",the script checks to see if Person X's name is "BLABLABLA".If so,then restore a backup.
When you first publish the server,make sure this line of code is in your Backup script: local cparts = game.Workspace:GetChildren() for i = 1, #parts do parts[i]:Clone().Parent=game.Lighting end
Now,whenever the regen message is verified,use this line of code: local cparts = game.Workspace:GetChildren() print("Regenerating map!") for i = 1, #parts do parts[i]:Remove() end
local parts = game.Lighting:GetChildren() for i = 1, #parts do parts[i]:Clone().Parent=game.Workspace end
Hope this helps. PS:This should be in the scripters forums. |
|
|
| Report Abuse |
|
|
|
| 22 Nov 2015 09:35 AM |
| The "CParts "was meant to be "parts" |
|
|
| Report Abuse |
|
|