Problem with displaying value on a text

I want to display a value on a script, here’s the value
image
here’s the text script:
typewrite(dialog, "It'll be "..money.."$", 0.05)
local money = workspace.AddedMoney.Value
i added a script too that changes the “money value” to the value in the workspace when it changes

workspace.AddedMoney.Changed:Connect(function()
	money = workspace.AddedMoney.Value
end)

the value seems to be displaying correctly in the output
image
but, the text doesn’t change
image
Can anyone help?

1 Like

Can’t you just do this?

workspace.AddedMoney.Changed:Connect(function(val)
	typewrite(dialog, "It'll be "..val.."$", 0.05)
end)

oh. didn’t think of that, but thank you!
(char req)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.