Leaderboard
Leaderboards
Leaderboards
Where to put this script
Where to put this script
Put this code in a script call PlayerSetup under ServerScriptService
Put this code in a script call PlayerSetup under ServerScriptService
Leaderboard:
Leaderboard:
local function onPlayerJoin(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local gold = Instance.new("IntValue")
gold.Name = "Gold"
gold.Value = 50
gold.Parent = leaderstats
end
game.Players.PlayerAdded:Connect(onPlayerJoin)
Line by Line
Line by Line
Customize
Customize