menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Game Design
This script won't work
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
This script won't work
ethanlaj
Join Date: 2015-11-17
Post Count: 922
#193498516
Tuesday, July 12, 2016 11:51 PM GMT
Why??? function whengone() game.Workspace.Ship1:Destroy() end while wait(1) do if game.Workspace.Soldiers:GetChildren()== 0 then whengone() break end end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
eRanged
Join Date: 2013-06-15
Post Count: 9746
#193503680
Wednesday, July 13, 2016 1:04 AM GMT
Soldiers.ChildRemoved:connect(function() if Soldiers:GetChildren() == 0 then Ship1:Destroy() end end)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right