I had a huge problem with a coding with this
local player = game.Players.LocalPlayer
player.WaitForChild("Currency").Changed:connect(function(val) script.Parent.Currency.Text = val end)
script.Parent.Currency.Text = "$". .Player:WaitForChild("Currency").Value

2 comments
Can you post the whole script because the one you posted is kinda confusing to understand
Yes, we need more context.