RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"How can I make an ui that shows the currency with instructions?"
-- Local script in StarterGui local player = game.Players.LocalPlayer local screenGui = Instance.new("ScreenGui") local textLabel = Instance.new("TextLabel") screenGui.Parent = player.PlayerGui textLabel.Parent = screenGui textLabel.Size = UDim2.new(0, 200, 0, 50) textLabel.Position = UDim2.new(0, 10, 0, 10) textLabel.TextColor3 = Color3.new(1, 1, 1) textLabel.BackgroundTransparency = 0.5 textLabel.TextScaled = true local function updateCurrency() textLabel.Text = "Currency: " .. player.leaderstats.Coins.Value .. "\nPress E to collect coins, press R to sell coins" end player.leaderstats.Coins.Changed:Connect(updateCurrency) updateCurrency()