RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a leaderstats script"
local Players = game:GetService("Players") 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 Players.PlayerAdded:Connect(onPlayerAdded)