-- LocalScript: StarterPlayer > StarterPlayerScripts > CoinHud local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local gui = Instance.new("ScreenGui") gui.Name = "CoinHud" gui.ResetOnSpawn = false gui.Parent = playerGui local label = Instance.new("TextLabel") label.Name = "CoinsLabel" label.Position = UDim2.fromOffset(16, 16) label.Size = UDim2.fromOffset(220, 48) label.BackgroundColor3 = Color3.fromRGB(25, 30, 40) label.TextColor3 = Color3.fromRGB(255, 235, 120) label.Font = Enum.Font.GothamBold label.TextSize = 24 label.Text = "Coins: loading..." label.Parent = gui local leaderstats = player:WaitForChild("leaderstats", 10) assert(leaderstats, "CoinHud needs lesson 07's Collectibles server script") local coins = leaderstats:WaitForChild("Coins", 10) assert(coins and coins:IsA("IntValue"), "Expected leaderstats.Coins IntValue") local function render() label.Text = string.format("Coins: %d", coins.Value) end coins:GetPropertyChangedSignal("Value"):Connect(render) render()