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 » Scripters
Home Search
 

Scripting Help

Previous Thread :: Next Thread 
xoaizver is not online. xoaizver
Joined: 23 Jul 2015
Total Posts: 27
27 Sep 2017 01:40 PM
leaderboard script so you can test yourself:
-- put me in serverscriptservice
game.Players.PlayerAdded:connect(function(plr)
local plr = game.Players.LocalPlayer
local stats = Instance.new("BoolValue",plr)
stats.Name = "leaderstats"

local bux = Instance.new("IntValue",stats)
bux.Name = "Bux"
bux.Value = 0

end)






Update Script For TextLabel:
-- put me in a text button in starter gui
local plr = game.Players.LocalPlayer
local bux = game.Players.LocalPlayer.leaderstats.Bux
script.Parent.MouseButton1Click:Connect(function()
bux.Text = plr.leaderstats.Bux.Value

end)


I want this script to update my textlabel text to say what ever the players local value of Bux is in leaderstats
Report Abuse
xoaizver is not online. xoaizver
Joined: 23 Jul 2015
Total Posts: 27
27 Sep 2017 01:42 PM
UPDATE!

leaderboard script so you can test yourself:
-- put me in serverscriptservice as a script
game.Players.PlayerAdded:connect(function(plr)
local plr = game.Players.LocalPlayer
local stats = Instance.new("BoolValue",plr)
stats.Name = "leaderstats"

local bux = Instance.new("IntValue",stats)
bux.Name = "Bux"
bux.Value = 0

end)








Update Script For TextLabel:
-- put me in a text button in starter gui as a localscript
local plr = game.Players.LocalPlayer
local bux = game.Players.LocalPlayer.leaderstats.Bux
script.Parent.MouseButton1Click:Connect(function()
bux.Text = plr.leaderstats.Bux.Value

end)


I want this script to update my textlabel text to say what ever the players local value of Bux is in leaderstats
ReplyReport Abuse
Previous Thread :: Next Thread
Page 1 of 1

Add a Reply

ROBLOX Forum » Game Creation and Development » Scripters
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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