RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Make a leaderstats that has kills and deaths"
-- server script (ServerScriptService) local function onPlayerAdded(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local kills = Instance.new("IntValue") kills.Name = "Kills" kills.Parent = leaderstats local deaths = Instance.new("IntValue") deaths.Name = "Deaths" deaths.Parent = leaderstats end game.Players.PlayerAdded:Connect(onPlayerAdded)