I placed this script in the Serverscriptservice.
game.Players.PlayerAdded:connect(function(Player)
local LS = Instance.new("IntValue", Player) -- LS = leaderstats
LS.Name = "leaderstats"
local Kills = Instanc.e.new("IntValue", LS) -- (ClassName, Parent)
local Kills = "Kills"
local Deaths = Instance.new("IntValue", LS)
Deaths.Name = "Deaths"
end)
Then I placed this in a localscript in a screen gui and a text label in a screen gui. Does this require a leaderboard in workspace for it to work?
local Player = game.Players.LocalPlayer
local Stats = Player.leaderstats
local Kills = Stats.Kills
local Deaths = Stats.Deaths
local KDR = ( Kills.Value / Deaths.Value )
local TL = script.Parent.TextLabel
local Team1 = game.Teams.Team1
local Team2 = game.Teams.Team2
while wait() do
if Team1.Score > Team2.Score then
TL.Text = "K/D: " .. tostring(KDR) .. " Winning Team: "..Team1.Name
elseif Team2.Score > Team1.Score then
TL.Text = "K/D: " .. tostring(KDR) .. " Winning Team: "..Team2.Name
end
end

2 comments
Rapaco, please post your script INSIDE the Code Block. Please edit your question, select all of the script, and hit the button that looks like the Lua logo, and says "Code Block" when you hover over it.
Got it sorry!