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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Global GUI - halp.

Previous Thread :: Next Thread 
Mattimasu is not online. Mattimasu
Joined: 19 Jan 2010
Total Posts: 100
06 Jan 2015 05:49 PM
Okay, pretty simple. Not for me, but y'know.
A click-GUI for regeneration that acts globally, meaning one person clicks, it switches to "Regenerating..." (i.e. for regenerating everything in my game) for everyone and anyone can click it to regenerate when it becomes available again. blablabla.

Green when "Regen" is available and red when "Regenerating..." is displaying.
Can be anywhere on the screen as long as it doesn't obscure vision much at all, should be smaller than the in-game menu button.

halp pls
Report Abuse
LucasLua is not online. LucasLua
Joined: 18 Jun 2008
Total Posts: 7386
06 Jan 2015 05:57 PM
A BoolValue in Workspace to keep track of if it is regenerating or not. The rest is simple GUI manipulation.
Report Abuse
Mattimasu is not online. Mattimasu
Joined: 19 Jan 2010
Total Posts: 100
06 Jan 2015 06:01 PM
That was actually a lot of help. Thanks!
Report Abuse
joelsdarkside22 is not online. joelsdarkside22
Joined: 18 Mar 2009
Total Posts: 1131
06 Jan 2015 06:06 PM
local Regen=Instance.new('IntValue',workspace)
local time=5
Regen.Name='Regen'
Regen.Value=false

Regen.Changed:connect(function(p)
if(p=='Value')and(Regen[p])then
for _,v in next,game.Players:getPlayers''do
p:WaitForChild'PlayerGui'.GuiName.FrameName.TextName.Text='Regenerating..'
end
wait(time)
for _,v in next,game.Players:getPlayers''do
p:WaitForChild'PlayerGui'.GuiName.FrameName.TextName.Text='Regen'
end
end
end)

and just check it in the gui
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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