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
 

Re: Scripters help me pleasee.

Previous Thread :: Next Thread 
SuperNinjaReturn is not online. SuperNinjaReturn
Joined: 13 Mar 2016
Total Posts: 1080
12 Jun 2017 06:33 PM
How am i suppose to add division to a leaderboard like there is KOs/WOs/Ranks
But i'm missing divisions, can any of you tell me how to add divisions to a game???
Report Abuse
AngelLiux is not online. AngelLiux
Joined: 13 Feb 2016
Total Posts: 2
12 Jun 2017 06:43 PM
You cand put this command:

game.Players.PlayerAdded:Connect(function(plr)
local stats = Instance.new("IntValue", plr)
stats.Name = "leaderstats"

local (whatever name)= Instance.new("IntValue", stats)
(name you put above).Name = "(Nome that will apear on the board)"
end)

---------------------------------------------------------------------------------

I have it for money, so my is like dis:

game.Players.PlayerAdded:Connect(function(plr)
local stats = Instance.new("IntValue", plr)
stats.Name = "leaderstats"

local money = Instance.new("IntValue", stats)
money.Name = "Money"
end)

---------------------------------------------------------------------------------

If you whant to put more than 1, copy paste the bottom:

game.Players.PlayerAdded:Connect(function(plr)
local stats = Instance.new("IntValue", plr)
stats.Name = "leaderstats"

local (Firts variant name) = Instance.new("IntValue", stats)
(First variant name).Name = "(Name that will apear for this variant)"

local (Second variant name) = Instance.new("IntValue", stats)
(Second variant name).Name = "(Name that will apear for this variant)"
end)
Report Abuse
SuperNinjaReturn is not online. SuperNinjaReturn
Joined: 13 Mar 2016
Total Posts: 1080
13 Jun 2017 04:13 AM
TYTYTYTYTYTY also where i put group ID?
Report Abuse
SuperNinjaReturn is not online. SuperNinjaReturn
Joined: 13 Mar 2016
Total Posts: 1080
13 Jun 2017 04:17 AM
Doesn't work :(
Report Abuse
spacesplitter is not online. spacesplitter
Joined: 10 Jul 2015
Total Posts: 44
13 Jun 2017 08:18 AM
I can see


Use this script

function PlayerAdded(plr)
--Info: Replace with your own names as your own Moneyz. Ko, Kills. Replace with names that contains !
local leaderboard = Instance.new("Model")
leaderboard.Parent = plr
leaderboard.Name = "leaderstats"
--Now for the Int that holds a value for the player
local !Moneyz = Instance.new("IntValue")
!Moneyz.Name = !Leadername
!Moneyz.Parent = leaderboard
end

--If solo mode then use this
if game.Players:FindFirstChild(game.Players.LocalPlayer.Name) then
for i,v in pairs(game.Players:GetChildren) do
PlayerAdded(V)
end
end

Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
13 Jun 2017 08:22 AM
Or or use the actual event PlayerAdded instead of looping through the players
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