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 » Scripting Helpers
Home Search
 

How would i make this restart?

Previous Thread :: Next Thread 
LonelyNights is not online. LonelyNights
Joined: 14 Mar 2012
Total Posts: 43
25 Mar 2012 06:36 AM
How would i make this restart when all the players are dead? Would i have to create a table or something like that? (I'm not a very good scripter)
function EditGui(MainText)
for _, pl in pairs(game.Players:GetPlayers()) do
local mgui = game.StarterGui.GameStats.Main.GameShow
local gui = pl.PlayerGui:findFirstChild("GameStats")
local tod = gui.Main:findFirstChild("GameShow")
if gui ~= nil then
tod.Text = MainText
mgui.Text = MainText
end
end
end

for i = 30, 1, -1 do
if i == 1 then
EditGui("Game will start in "..i.." second")
else
EditGui("Game will start in "..i.." seconds")
end
wait(1)
end
EditGui("Game is starting!")
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
25 Mar 2012 06:40 AM
[ Content Deleted ]
Report Abuse
LonelyNights is not online. LonelyNights
Joined: 14 Mar 2012
Total Posts: 43
25 Mar 2012 06:41 AM
How would i fit it in the script, Im really only just started scripting so :L
Report Abuse
awsomescauce is not online. awsomescauce
Joined: 05 Mar 2012
Total Posts: 203
25 Mar 2012 06:42 AM
well wat the other guy siad i basicly just started too C:
Report Abuse
LonelyNights is not online. LonelyNights
Joined: 14 Mar 2012
Total Posts: 43
25 Mar 2012 06:45 AM
It doesn't seem to do anything, Plus i dont know how that would make it reset.
I just want it to reset, Then ive finished.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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