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: Question: Making money gui

Previous Thread :: Next Thread 
Aisoc is not online. Aisoc
Joined: 08 Jun 2013
Total Posts: 412
31 May 2014 04:00 PM
Hello i made quite and nice text label here i want to show it my gold value in leaderboard

game.Players.PlayerAdded:connect(function(p)
p = script.Parent
wait(1)
p.Text = p.Stats.Gold.Value
end)

why is doesnt work ?
Report Abuse
Dushax is not online. Dushax
Joined: 28 Apr 2010
Total Posts: 12892
31 May 2014 04:02 PM
Are you making it as a leaderboard itself or just a GUI to add with the leaderboard?

Report Abuse
Aisoc is not online. Aisoc
Joined: 08 Jun 2013
Total Posts: 412
31 May 2014 04:02 PM
i know its fool question but i doesn't for some reason...
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
31 May 2014 04:03 PM
You should do this with a local script.
Report Abuse
Aisoc is not online. Aisoc
Joined: 08 Jun 2013
Total Posts: 412
31 May 2014 04:03 PM
i already have leaderboard i want to show my text label my leaderboard value
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
31 May 2014 04:04 PM
I'm not even going to bother.
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
31 May 2014 04:06 PM
Ummmm

The player is p, but then you assign p as script.Parent
Report Abuse
golfercab is online. golfercab
Joined: 26 Sep 2011
Total Posts: 714
31 May 2014 04:06 PM
leaderboard might not be loaded when the player joins, i think i have encountered this before. what is the hierarchy for the script and the leaderboard?

script would look like:

function playeradded()
if leaderboard ~= nil then
p = script.Parent
wait(1)
p.Text = p.Stats.Gold.Value
else
wait(3)
playeradded()
end
end

game.Players.PlayerAdded:connect(playeradded)
Report Abuse
Dushax is not online. Dushax
Joined: 28 Apr 2010
Total Posts: 12892
31 May 2014 04:11 PM
Basically if you forget to add in the

game.Players.PlayerAdded:connect(p)

but that guy did the script for you though.
Report Abuse
Aisoc is not online. Aisoc
Joined: 08 Jun 2013
Total Posts: 412
31 May 2014 04:15 PM
Yeah but i still can fix it nvm..

i will bump this later if i cant fix it
Report Abuse
Aisoc is not online. Aisoc
Joined: 08 Jun 2013
Total Posts: 412
31 May 2014 04:21 PM
lol i fixed it but its little bit long

p = script.Parent
p.Text = script.Parent.Parent.Parent.Parent.Parent.Stats.Belli.Value
Report Abuse
golfercab is online. golfercab
Joined: 26 Sep 2011
Total Posts: 714
31 May 2014 09:21 PM
lolz nice
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