devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 02 Nov 2014 09:40 AM |
I just thought of this for my game so here it is:
while wait() do
wait() x = 30
repeat
y = x-1 game.Workspace.Timer.SurfaceGui.Frame.TextLabel.Value = y wait(1)
until y = 0 or game.Workspace.Background.Decal.Texture.Changed
end
This would be for a timer on a brick that counts down from 60 until it = 0 or the decal on another brick is changed. Then it restarts from 60 again until the same conditions occur. |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 02 Nov 2014 09:45 AM |
No but this would
local changed = false
Workspace.Background.Decal.Changed:connect(function() changed = true end)
while wait(0.03) do changed = false for x = 60, 1, -1 do if changed then break else wait(1) workspace.Timer.SurfaceGui.Frame.TextLabel.Value = x --TextLabel.Value wut end end end |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 02 Nov 2014 09:46 AM |
| Thanks, I'll test it when I'm home. |
|
|
| Report Abuse |
|
|