cracker99
|
  |
| Joined: 04 Jun 2009 |
| Total Posts: 44 |
|
|
| 16 Feb 2012 07:25 PM |
Im looking for a script that always checks the value of a NumberValue. Like:
Value = game.Workspace.NumberValue if Value.Value < 1 then (different part of script) end
Please Help. |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 07:29 PM |
while true do Value = game.Workspace.NumberValue if Value.Value < 1 then (different part of script) end end |
|
|
| Report Abuse |
|
|
cracker99
|
  |
| Joined: 04 Jun 2009 |
| Total Posts: 44 |
|
|
| 16 Feb 2012 07:33 PM |
| ahh... I've seen that before... Thank you though. |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Feb 2012 07:48 PM |
@ Knight Ohh yes right, i forgot that it will eventaly crash so make sure to put a wait() in there.
|
|
|
| Report Abuse |
|
|
cracker99
|
  |
| Joined: 04 Jun 2009 |
| Total Posts: 44 |
|
|
| 17 Feb 2012 08:21 PM |
| Where? Yes it did crash lol |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2012 09:08 PM |
while wait() do Value = game.Workspace.NumberValue if Value.Value < 1 then --(different part of script) end end
† KMXD † |
|
|
| Report Abuse |
|
|
cracker99
|
  |
| Joined: 04 Jun 2009 |
| Total Posts: 44 |
|
|
| 18 Feb 2012 07:55 AM |
| Ohhh. I tried to put a wait in the middle of the script and it crashed. Thank you. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
|
| 18 Feb 2012 09:43 AM |
| You can use repeat wait() until |
|
|
| Report Abuse |
|
|
cracker99
|
  |
| Joined: 04 Jun 2009 |
| Total Posts: 44 |
|
|
| 25 Mar 2012 01:46 PM |
After A while of trying... and a period of quitting... I found out that it isn't exactly what I want. I want something where it would be like (BTW this script is named "Survival")
Value = game.Workspace.NumberValue.Value
(Part of script where the Value is changed to the number of players and all players all teleported to a spot on the map)
game.Lighting.ZombieWave:Clone().Parent=game.Workspace
(Continuously)If Value < 1 then
game.Lighting.RestartScript:Clone().Parent = game.Workspace script:Remove()
end
(Cant tell how many ends there are... Lol)
The Restart Script would be this:
game.Workspace.Map:Remove() game.Lighting.Map:Clone().Parent = game.Workspace --So the map resets game.Lighting.Survival:Clone().Parent = game.Workspace --Script resets
Help Please! |
|
|
| Report Abuse |
|
|