I was looking at Wiki for a leader board and i tried it but it does not work. So i looked youtube and there was several tutorials but there was not one that worked so I am really stuck since i am trying to make a leaderboard for a game that one my boss told me to make in roblox.
This is an example. Put this script inside of ServerScriptService.
game.Players.PlayerAdded:connect(function(player) -- runs code everytime someone joins. local leaderstats = Instance.new("Model") -- creates Leaderboard leaderstats.Name = "leaderstats" -- Changes it's name from Model to leaderboard leaderstats.Parent = player -- parent of model
local money = Instance.new("IntValue") --We create a new IntValue money.Name = "Money" --this is the name you want the leader-stat to be when it shows up in-game. money.Value = 0 --this is the value of money the new player starts out with. money.Parent = leaderstats -- Set the money object as a child of the leaderstats object.
end)