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
|
  |
| 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
|
  |
| Joined: 19 Jan 2010 |
| Total Posts: 100 |
|
|
| 06 Jan 2015 06:01 PM |
| That was actually a lot of help. Thanks! |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|