generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Please help me!

Previous Thread :: Next Thread 
Ferseus is not online. 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
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
29 Nov 2013 07:59 AM
First off, at line 7, you wrote :WaotForDataReady() instead of :WaitForDataReady().
Turn on your freakin output.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image