Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

GUI wont change?

So there is a money GUI, this script is inside the TextLabel inside of that GUI. All I want is the text to be the same as the number value. So in other words, it to show how much money the player has. No output errors or anything it just wont show. It's in a Localscript btw:

local player = game.Players.LocalPlayer
local money = script.Parent.Money.Value
local gui = script.Parent

while true do
	wait(0.1)
	gui.Text = "$" .. money
end

Money is the name of the NumberValue. Gui is the Text Label. Player is well, the player. Any help is appreciated :)

1 answer

✓ Accepted answer

In the variable, don't add '.Value', as that'll only represent the value when you defined the variable. In other words:

local player = game.Players.LocalPlayer
local money = script.Parent.Money
local gui = script.Parent

while true do
    wait(0.1)
    gui.Text = "$" .. money.Value
end


This discussion is preserved as it was. New answers, comments, and votes are closed.