"make a roblox script a leaderstats called Robux and each time a player dies they get - 1 but when a player kills another player the player who killed the other player will get 1 it will show the amount of Leaderstats above your head all players can see the amount of Robux players have it will be above there head"
xxxxxxxxxx
-- server script (ServerScriptService)
local function onPlayerAdded(player)
local leaderstats = Instance.new("Folder", player)
leaderstats.Name = "leaderstats"
local robux = Instance.new("IntValue", leaderstats)
robux.Name = "Robux"
local function onCharacterAdded(character)
local humanoid = character:WaitForChild("Humanoid")
local billboardGui = Instance.new("BillboardGui", character.Head)
billboardGui.Size = UDim2.new(0, 100, 0, 50)
billboardGui.StudsOffset = Vector3.new(0, 3, 0)
local textLabel = Instance.new("TextLabel", billboardGui)
textLabel.Text = player.Name .. ": " .. tostring(robux.Value) .. " Robux"
textLabel.BackgroundTransparency = 1
textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)