|
| 05 Oct 2014 01:03 PM |
while true do wait() if hostiles.Value == "1" and officials.Value == true then wait(1) script.Parent.Value = script.Parent.Value+2 else script.Disabled = true end end
----------------------------- The rest of the script works, it's just; "if hostiles.Value == "1" and officials.Value == true then" Won't work correctly for some odd reason, I'm pretty sure it's right as well. Anybody? |
|
|
| Report Abuse |
|
|
PlumJar
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 907 |
|
|
| 05 Oct 2014 01:14 PM |
if this is the whole script, your problem is that u didnt define the variables
if you DID define the variables and this ISNT ur whole script, please post the whole script
Mewo. |
|
|
| Report Abuse |
|
|
|
| 05 Oct 2014 01:14 PM |
local raidSystem = workspace:WaitForChild("RaidSystem") local officials, hostiles = raidSystem:WaitForChild("RaidOfficial"), raidSystem:WaitForChild("1")
while true do wait() if hostiles.Value == "1" and officials.Value == true then wait(1) script.Parent.Value = script.Parent.Value+2 else script.Disabled = true end end |
|
|
| Report Abuse |
|
|
Locard
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 3516 |
|
|
| 05 Oct 2014 01:25 PM |
If hostiles is a NumberValue then you need to put 1 instead of "1".
Other than that, I don't know what would be wrong with the script. |
|
|
| Report Abuse |
|
|
| |
|