RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Make me a leaderstats script"
-- leaderstats script (ServerScriptService) local function onPlayerAdded(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local coins = Instance.new("IntValue") coins.Name = "Coins" coins.Value = 0 coins.Parent = leaderstats local bag = Instance.new("IntValue") bag.Name = "Bag" bag.Value = 0 bag.Parent = leaderstats end game.Players.PlayerAdded:Connect(onPlayerAdded)