RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Make a script that makes a system for Money, and have it show on screen."
-- server script local Players = game:GetService("Players") local function onPlayerAdded(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local Money = Instance.new("IntValue") Money.Name = "Money" Money.Value = 0 Money.Parent = leaderstats end Players.PlayerAdded:Connect(onPlayerAdded) -- local script (ScreenGui) local player = game.Players.LocalPlayer local moneyLabel = script.Parent.MoneyLabel local function updateMoney() local money = player.leaderstats.Money.Value moneyLabel.Text = "Money: "..money end player.leaderstats.Money.Changed:Connect(updateMoney) updateMoney()