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
 

Re: Why don't this work?

Previous Thread :: Next Thread 
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
30 Nov 2011 01:29 AM
game.Players.PlayerAdded:connect(function(plr)
wait(3)
repeat wait() until plr.PlayerGui
plr.PlayerGui:FindFirstChild("HealthGUI"):Remove()
plr.Character:FindFirstChild("HealthScript v3.1"):Remove()
wait(2)
plr.PlayerGui.main.Script.Disabled = false
plr.CharacterAdded:connect(function()
wait(3)
repeat wait() until plr.PlayerGui
plr.PlayerGui:FindFirstChild("HealthGUI"):Remove()
plr.Character:FindFirstChild("HealthScript v3.1"):Remove()
wait(2)
plr.PlayerGui.main.Script.Disabled = false
end)
plr:WaitForDataReady()--Here from..
plr:LoadNumber("XP")
plr:LoadNumber("Gold")
plr:LoadNumber("Level")
plr:LoadNumber("Rank")--Here wont work. The output is nothing and all it does is break a script I need.
lead = Instance.new("IntValue",plr)
lead.Name = "leaderstats"
lead.Value = 0
xp = Instance.new("IntValue",plr)
xp.Name = "XP"
xp.Value = 0
gold = Instance.new("IntValue",plr)
gold.Name = "Gold"
gold.Value = 6000
lvl = Instance.new("IntValue",lead)
lvl.Name = "Level"
lvl.Value = 1
rank = Instance.new("IntValue",plr)
rank.Name = "Rank"
rank.Value = 0
end)

game.Players.PlayerRemoving:connect(function(plr)
plr:SaveNumber("XP", plr.XP.Value)
plr:SaveNumber("Gold", plr.Gold.Value)
plr:SaveNumber("Level", plr.leaderstats.Level.Value)
plr:SaveNumber("Rank", plr.Rank.Value)
end)
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
30 Nov 2011 02:18 AM
[ Content Deleted ]
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
30 Nov 2011 02:20 AM
The output is nothing and all it does is break a script I need.
Report Abuse
sonickyle is not online. sonickyle
Joined: 01 Jan 2009
Total Posts: 5653
30 Nov 2011 02:21 AM
A Leaderboard?
It Might Be Possible That The Script Only Works In Online Mode, Like Mine.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
30 Nov 2011 02:22 AM
[ Content Deleted ]
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
30 Nov 2011 02:23 AM
Sadly, Nothing.. Hold on i'm going to try a server.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
30 Nov 2011 02:24 AM
Still not output.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
30 Nov 2011 02:26 AM
[ Content Deleted ]
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
30 Nov 2011 02:27 AM
[ Content Deleted ]
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
30 Nov 2011 02:29 AM
Output;

XP is not a valid member of Player
00:29:05 - Script "Players.Player.PlayerGui.main.Script", Line 27
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
30 Nov 2011 02:30 AM
oops that's for a diffrent script.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
30 Nov 2011 02:38 AM
There's still no output.
Report Abuse
oxcool1 is not online. oxcool1
Joined: 05 Nov 2009
Total Posts: 15444
30 Nov 2011 03:08 AM
[ Content Deleted ]
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
30 Nov 2011 03:13 AM
Ok, It works but know it wont save.. or load. BTW, I don't think it ever Saved/Loaded..
Report Abuse
muziekklas2 is not online. muziekklas2
Joined: 29 Nov 2009
Total Posts: 1
31 Jan 2012 01:34 PM
What i srsly hate at roblox now: they changes the Prompter.. Back in the old times ALL outputs were displayed.. now its like... Oh 1 error... but script is fawked up... NOTE to roblox PLEASE fix that and make it like then O.e ( also when a script is Running or restarted that it says That That Particulary script is beeing Runned :o!!
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