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 doesn't this work? [Help]

Previous Thread :: Next Thread 
BluesteelFlame is not online. BluesteelFlame
Joined: 26 Apr 2013
Total Posts: 1202
03 May 2013 08:15 PM
--It is suppose to create IntValues in the Player.

Game.Players.PlayerAdded:connect(function(Player)
Instance.new("IntValue", Player).Name = "Ach"
Instance.new("IntValue", Player.Ach).Name = "GoblinKiller"
Instance.new("IntValue", Player.Ach).Name = "GoblinSlayer"
Instance.new("IntValue", Player).Name = "LevelValue"
Instance.new("IntValue", Player).Name = "GoldValue"
Instance.new("IntValue", Player).Name = "XPValue"
end)
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
03 May 2013 08:18 PM
Is this an enabled Script (not LocalScript) in Workspace?
Report Abuse
BluesteelFlame is not online. BluesteelFlame
Joined: 26 Apr 2013
Total Posts: 1202
03 May 2013 08:20 PM
This is not a LocalScript, but it is in Workspace.
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
03 May 2013 08:27 PM
then it should work qq
Report Abuse
BluesteelFlame is not online. BluesteelFlame
Joined: 26 Apr 2013
Total Posts: 1202
03 May 2013 08:32 PM
But it doesn't, that is why I am so confused.

Any suggestions?
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
03 May 2013 08:32 PM
Try using game:GetService("Players") instead of game.Players
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
03 May 2013 08:33 PM
How do you know? Are you expecting these to be leaderboard stats, or do you have your own system of managing these IntValues?
Report Abuse
BluesteelFlame is not online. BluesteelFlame
Joined: 26 Apr 2013
Total Posts: 1202
03 May 2013 08:36 PM
I designed my own GUI leaderboard.
Report Abuse
coolikevin22 is not online. coolikevin22
Joined: 21 Feb 2011
Total Posts: 450
03 May 2013 08:37 PM
Umm i think game should be lower case. So you can try..

game.Players.PlayerAdded:connect(function(Player)
--code
end)

~ Make the simple, amazing ~
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
03 May 2013 08:44 PM
Game works. The problem is probably with your leaderboard script, it may be trying to access the IntValues too soon (before they're added), try to add some kind of delay in it.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
03 May 2013 08:56 PM
Hey hey

I made a post

Did anyone read it?
Report Abuse
BluesteelFlame is not online. BluesteelFlame
Joined: 26 Apr 2013
Total Posts: 1202
03 May 2013 08:57 PM
I disabled the leaderboard script because it spams my output. I check manually for the int values.
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
03 May 2013 09:05 PM
It should work... I don't see the problem. IDK probably I am not looking hard enough.

~Normal ROBLOXian
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
03 May 2013 09:15 PM
Guys wtf

I'm here to help

Why don't you want help?
Report Abuse
BluesteelFlame is not online. BluesteelFlame
Joined: 26 Apr 2013
Total Posts: 1202
03 May 2013 09:28 PM
I tried your solution.

For some reason, these weren't working in Test Mode or Online mode, but after messing with it, it now works only in Online mode.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
03 May 2013 09:41 PM
In Play Solo, the player is generally added before the game really gets on its feet. Try a server test (Start Server then Start Player).
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