SNIVYmc
|
  |
| Joined: 31 Oct 2015 |
| Total Posts: 500 |
|
| |
|
|
| 20 Sep 2017 10:01 PM |
| actually its game:destroy() |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2017 10:18 PM |
^
False
it's always :Destroy()
I am actually going to try that XD
|
|
|
| Report Abuse |
|
|
triode
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 5844 |
|
|
| 20 Sep 2017 10:20 PM |
| You can't set the parent of game to NULL. |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2017 10:22 PM |
Oh yeah, I forgot.
But you can destroy PlayerGui and probably any other descendants of game
|
|
|
| Report Abuse |
|
|
Watstend
|
  |
| Joined: 16 Sep 2016 |
| Total Posts: 108 |
|
|
| 20 Sep 2017 11:12 PM |
You could do: game.Workspace:ClearAllChildren() for i, v in pairs(game.Players:GetPlayers()) do v.PlayerGui:ClearAllChildren() end
This would delete everything in the workspace and everyones guis, including the chat and player list. Don't use Destroy() use Remove(), Destroy() is deprecated
roblox.forum:ClearAllChildren() |
|
|
| Report Abuse |
|
|
Watstend
|
  |
| Joined: 16 Sep 2016 |
| Total Posts: 108 |
|
|
| 20 Sep 2017 11:14 PM |
Thats how I do a server shutdown, except I remove all the players instead of removing their guis :)
roblox.forum:ClearAllChildren() |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2017 11:21 PM |
"Don't use Destroy() use Remove(), Destroy() is deprecated"
sigh...
http://wiki.roblox.com/index.php?title=API:Class/Instance/Remove
"This item is deprecated. Do not use it for new work."
#code Do not give up; the beginning is always the hardest part. |
|
|
| Report Abuse |
|
|
Watstend
|
  |
| Joined: 16 Sep 2016 |
| Total Posts: 108 |
|
|
| 20 Sep 2017 11:23 PM |
Oops, I've been using Remove() . . .
roblox.forum:ClearAllChildren() |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2017 07:56 AM |
| @whoever replied, simple error i meant to capitalize the letter. |
|
|
| Report Abuse |
|
|