|
| 22 Jun 2014 12:19 PM |
how do i make it so there is 2 leaderstats?
for 1 leaderstat
function onPlayerEntered(newPlayer)--when people come into the game
local stats = Instance.new("IntValue")--makes wallet stats.Name = "leaderstats" --names the wallet leaderstats and it's best to keep it leaderstats
local Money = Instance.new("IntValue") Money.Name = "Level" --name of the currency Money.Value = 1-- how much you start of with Money.Parent = stats-- change Money to your currency in all places stats.Parent = newPlayer
end game.Players.ChildAdded:connect(onPlayerEntered)
|
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 12:20 PM |
function onPlayerEntered(newPlayer)--when people come into the game
local stats = Instance.new("IntValue")--makes wallet stats.Name = "leaderstats" --names the wallet leaderstats and it's best to keep it leaderstats
local Money = Instance.new("IntValue") Money.Name = "Level" --name of the currency Money.Value = 1-- how much you start of with
Money.Parent = stats-- change Money to your currency in all places
local Money2 = Instance.new("IntValue") -------------------------------this Money2.Name = "Money" --name of the currency Money2.Value = 1-- how much you start of with
Money2.Parent = stats-- change Money to your currency in all places ---to this stats.Parent = newPlayer
end game.Players.ChildAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
|
| |
|