RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a roblox script for leaderstats for Robux"
-- server script (ServerScriptService) local Players = game:GetService("Players") local function onPlayerAdded(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local Robux = Instance.new("IntValue") Robux.Name = "Robux" Robux.Value = 0 Robux.Parent = leaderstats end Players.PlayerAdded:Connect(onPlayerAdded) for _, player in ipairs(Players:GetPlayers()) do onPlayerAdded(player) end