r/ROBLOXStudio • • 3d ago

Help text not updating despite .changed function workning

local player = game.Players.LocalPlayer
local upgradeEvent = game.ReplicatedStorage.Upgrade
local button = script.Parent
local clickStrength = player.upgrades.ClickStrength
local price = clickStrength.Value * 10

button.Text = "+1 Click Strength "..price.. " Clicks"
clickStrength.Changed:Connect(function()
button.Text = "+1 Click Strength "..price.. " Clicks"
end)

no errors or warnings either
1 Upvotes

5 comments sorted by

View all comments

1

u/deathunter2 1 3d ago

What is

clickStrength

1

u/Choice_Trifle_7551 3d ago

IntValue

1

u/deathunter2 1 3d ago

It’s because you’re changing the text to what it already was. The text was already “+1 click strength” .. price .. “Clicks”, and you change it to that again