jetlogan
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1423 |
|
|
| 03 Nov 2013 01:40 PM |
script.Parent.Rounds.Value = script.Parent.Rounds.Value + 1 print("1")
It prints 1 but doesn't set the value of Rounds. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Nov 2013 01:40 PM |
| Where is the script located -.- |
|
|
| Report Abuse |
|
|
jetlogan
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1423 |
|
|
| 03 Nov 2013 01:44 PM |
2 places. -.-
1. The player, which works. 2. The ScreenGui, which doesn't work. |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2013 01:44 PM |
print(script.Parent.Rounds.Value) script.Parent.Rounds.Value = script.Parent.Rounds.Value + 1 print(script.Parent.Rounds.Value) |
|
|
| Report Abuse |
|
|
jetlogan
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1423 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Nov 2013 01:49 PM |
| Add a wait, it always fixes everything |
|
|
| Report Abuse |
|
|
jetlogan
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1423 |
|
| |
|
jetlogan
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1423 |
|
|
| 03 Nov 2013 01:52 PM |
Here my whole script if I'm doing something wrong:
wait()
--Boot Process
script.Parent.ID.Value = math.random()
if script.Parent.Parent.Parent:IsA("Player") then isInPlayer = true else isInPlayer = false end
--System
while wait() do a = tick() script.Parent.Rounds.Value = script.Parent.Rounds.Value + 1 b = tick() c = b-a if c > script.Parent.LongestRoundTime.Value then script.Parent.LongestRoundTime.Value = c end end |
|
|
| Report Abuse |
|
|