Ferseus
|
  |
| Joined: 23 May 2013 |
| Total Posts: 247 |
|
|
| 29 Nov 2013 07:36 AM |
d = false
while true do wait(0.1) local plr = script.Parent if plr ~= nil then plr:WaotForDataReady() plr:WaitForChild("DATA") plr:WaitForChild("MAXDATA") plr:WaitForChild("LEVEL") local currentdata = plr:findFirstChild("DATA") local maxdata = plr:findFirstChild("MAXDATA") local lvl = plr:findFirstChild("LEVEL") if currentdata ~= nil then if maxdata ~= nil then if lvl ~= nil then print("Found Values") if currentdata.Value >= maxdata.Value then if d == false then d = true Maxdata.Value = Maxdata.Value + 15 currentdata.Value = 0 lvl.Value = lvl.Value + 1 local m = Instance.new("Message", plr.PlayerGui) m.Text = "Your noob has gained a level!" wait(3) m:remove() d = false end end end end end end end
--It wont work for some reason the values are there but it wont print("Found Values") |
|
|
| Report Abuse |
|
|
| 29 Nov 2013 07:59 AM |
First off, at line 7, you wrote :WaotForDataReady() instead of :WaitForDataReady(). Turn on your freakin output. |
|
|
| Report Abuse |
|