It like "hides" itself or something.
game.Players.PlayerAdded:connect(function(player) local leaderstat = Instance.new("Folder",player) leaderstat.Name = "leaderstats" local money = Instance.new("IntValue",leaderstat) money.Name = "Cash" -- Currency name here money.Value = 500 -- Starting money end)
function onPlayerEntered(newPlayer) wait(.5) local stats = Instance.new("IntValue") stats.Name = "leaderstats" local Cash = Instance.new("IntValue") Cash.Name = "Cash" Cash.Value = 0 --You can change this value into the amount a player starts with Cash.Parent = stats while newPlayer.Character == nil do wait() end local Player = string.lower(newPlayer.Name) stats.Parent = newPlayer end game.Players.ChildAdded:connect(onPlayerEntered)
game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" local money = Instance.new("IntValue") money.Name = "Cash" money.Value = 500 money.Parent = leaderstats leaderstats.Parent = player end)
game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("IntValue", player) leaderstats.Name = "leaderstats" local Money = Instance.new("IntValue", leaderstats) Money.Name = "Money" Money.Value = 100 -- Starter Cash end)