|
| 02 Mar 2014 05:21 PM |
while wait(1.5) do player = script.Parent.Parent.Parent.Parent.Parent times = player.Times if times ~= nil then if times.ForestRace.BestLapForestRace.Second.Value < 10 then script.Parent.Text = ""..times.ForestRace.BestLapForestRace.Minute.Value.." : 0"..times.BestLapForestRace.Second.Value.." : "..times.BestLapForestRace.Decisecond.Value.."" if times.ForestRace.BestLapForestRace.Second.Value >= 10 then script.Parent.Text = ""..times.ForestRace.BestLapForestRace.Minute.Value.." : "..times.BestLapForestRace.Second.Value.." : "..times.BestLapForestRace.Decisecond.Value.."" end end end end |
|
|
| Report Abuse |
|
|
| |
|
YumERAGON
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 3893 |
|
| |
|
|
| 02 Mar 2014 05:23 PM |
| the while wait(1.5) do should be perfectly fine... |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 02 Mar 2014 05:24 PM |
times = player.Times if times ~= nil then
times = player:FindFirstChild("Times")
@mini do you know how to script yourself? |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Mar 2014 05:27 PM |
well it is any decimal in a wait works ex. wait(2.5) = 2.5 seconds |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Mar 2014 05:28 PM |
| XD you learned something today xD |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Mar 2014 05:31 PM |
@wazap still won't work... let me try something else but idk whats wrong... |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Mar 2014 05:36 PM |
i cant find an output it seems like the script wont work... script.Disabled = false so...? |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 02 Mar 2014 05:36 PM |
Change
if times.ForestRace.BestLapForestRace.Second.Value < 10 then script.Parent.Text = ""..times.ForestRace.BestLapForestRace.Minute.Value.." : 0"..times.BestLapForestRace.Second.Value.." : "..times.BestLapForestRace.Decisecond.Value.."" if times.ForestRace.BestLapForestRace.Second.Value >= 10 then script.Parent.Text = ""..times.ForestRace.BestLapForestRace.Minute.Value.." : "..times.BestLapForestRace.Second.Value.." : "..times.BestLapForestRace.Decisecond.Value.."" end end
Into
if times.ForestRace.BestLapForestRace.Second.Value < 10 then script.Parent.Text = ""..times.ForestRace.BestLapForestRace.Minute.Value.." : 0"..times.BestLapForestRace.Second.Value.." : "..times.BestLapForestRace.Decisecond.Value.."" elseif times.ForestRace.BestLapForestRace.Second.Value >= 10 then script.Parent.Text = ""..times.ForestRace.BestLapForestRace.Minute.Value.." : "..times.BestLapForestRace.Second.Value.." : "..times.BestLapForestRace.Decisecond.Value.."" end |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 05:41 PM |
| nope... still wont work... |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
| |
|
| |
|
| |
|
|
| 02 Mar 2014 05:51 PM |
while wait(1.5) do player = script.Parent.Parent.Parent.Parent.Parent times = player:findFirstChild("Times") if times ~= nil then if times.ForestRace.BestLapForestRace.Second.Value < 10 then script.Parent.Text = ""..times.ForestRace.BestLapForestRace.Minute.Value.." : 0"..times.BestLapForestRace.Second.Value.." : "..times.BestLapForestRace.Decisecond.Value.."" elseif times.ForestRace.BestLapForestRace.Second.Value >= 10 then script.Parent.Text = ""..times.ForestRace.BestLapForestRace.Minute.Value.." : "..times.BestLapForestRace.Second.Value.." : "..times.BestLapForestRace.Decisecond.Value.."" end end end |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 05:53 PM |
"i cant find an output" Can`t find it or there isn`t one? My guess is the number of parents. |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 02 Mar 2014 05:54 PM |
| The only thing I can think of is that Times really is nil.... |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 05:55 PM |
im guessing time may be nil... idk though it isnt.. i checked in studio test |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 05:55 PM |
Ye Try putting some prints in. |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 05:55 PM |
| ill test it w/o the if times ~= nil and see the output |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 05:57 PM |
i got this: 18:55:49.277 - BestLapForestRace is not a valid member of StringValue 18:55:49.279 - Script 'Players.Player1.PlayerGui.Menu Gui.ForestRace.BLRecord.Scri', Line 7 18:55:49.284 - stack end |
|
|
| Report Abuse |
|
|