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

Value.Changed:connect wont work?

local player = game.Players:FindFirstChild(script.Parent.p.Value)
local totalvalue = player.PlayerGui.JeweleryBagGui.TotalValue

totalvalue.Value.Changed:connect(function()
	script.Parent.Text = "Sell your stuff here for $"..totalvalue.Value
end)

i want the guis text to change when the totalvalue is changed but this will not change the text please help.

1 answer

✓ Accepted answer

You're supposed to use just the totalvalue, not the properties of it. Otherwise it won't work:

local player = game.Players:FindFirstChild(script.Parent.p.Value)
local totalvalue = player.PlayerGui.JeweleryBagGui.TotalValue

totalvalue.Changed:connect(function()
    script.Parent.Text = "Sell your stuff here for $"..totalvalue.Value
end)

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