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
 

Re: Slight GUI Problem

Previous Thread :: Next Thread 
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
11 Aug 2012 09:49 AM
Even thought this script works, there is a slight problem. The probllem is that the GUI resets when you die and its starts the countdown over. can somebody fix this so it doesn't reset when you die?


function updateTimeGui(text, size)
size = size or "Size18";
for _, p in pairs(game.Players:GetChildren()) do
p.PlayerGui.Time.Frame.Main.Text = text;
p.PlayerGui.Time.Frame.Main.FontSize = size;
end
end

while true do
updateTimeGui("Waiting for round...", "Size18");
wait(10);
for i = 5, 1, -1 do
updateTimeGui(tostring(i).."...");
wait(1);
end
updateTimeGui("Begin!");
wait(5);
for _, p in pairs(game.Players:GetChildren()) do
p.PlayerGui.Time.Visible = false;
end
wait(180);
for _, p in pairs(game.Players:GetChildren()) do
p.PlayerGui.Time.Visible = true;
end
end
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
11 Aug 2012 09:57 AM
Bump
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
11 Aug 2012 10:08 AM
C'mon!!
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
11 Aug 2012 08:47 PM
dr10d Help??
Report Abuse
Benjonas2 is not online. Benjonas2
Joined: 17 May 2011
Total Posts: 6129
11 Aug 2012 08:49 PM
I would say put it in the StarterGUI or StarterPack

but then I realized that is with Camera manipulation and not GUI

-Ben
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
11 Aug 2012 08:53 PM
Nah
Report Abuse
Elopus001 is not online. Elopus001
Joined: 28 Aug 2011
Total Posts: 482
11 Aug 2012 08:54 PM
Maybe put the variable as a value in workspace?
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
11 Aug 2012 08:56 PM
No.. all I hae to fo is make this script continue isntead of reset when you die..
Report Abuse
xXRoCkInDaDCsXx is not online. xXRoCkInDaDCsXx
Joined: 18 Sep 2010
Total Posts: 2264
11 Aug 2012 09:19 PM
add a script so it starts the countdown after so long

e.g. (wait(15) then)



-ʟᴇɢɪᴛ ʟᴍᴀᴅeʀ-
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