|
| 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 |
|
|
|
| 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 |
|
|
|
| 13 Jun 2017 04:13 AM |
| TYTYTYTYTYTY also where i put group ID? |
|
|
| Report Abuse |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|