|
| 29 May 2015 09:03 PM |
timer.Value = 45 for i = 45, 0, -1 do wait(1) timer.Value = timer.Value - 1 status.Value = timer.Value checkplayers() if playersdead then break end if won.Value then break end end -- i = end thing
status freezes at 44 |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 29 May 2015 09:04 PM |
| you can you are obv not doing something right. |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 09:05 PM |
am i? heres the function its activating
function checkplayers() for _,v in pairs(game.Players:GetPlayers()) do if v.Tag then playersdead = false else playersdead = true end end end end |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 09:07 PM |
ok so its working but
it won't break the end? |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 09:12 PM |
Okay okay I found the problem
In the main script, if the tag doesn't exist instead of making the value true or false it just says: - Tag is not a valid member of Player
What??
function checkplayers() for _,v in pairs(game.Players:GetPlayers()) do if v.Tag then playersdead = false else playersdead = true end end end |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 29 May 2015 09:15 PM |
for i = 45, 0, -1 do timer.Value = i status.Value = i checkplayers() if playersdead then break end if won.Value then --if won.Value == ? break end wait(1) end |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 May 2015 09:38 PM |
| repeat wait() until v.Tag ~= nil |
|
|
| Report Abuse |
|
|