So I was working on a game, and I had a SurfaceGUI in the StarterGUI and its Adornee was set to the brick. The SurfaceGUI shows the player their money, the money that the player has is stored in an IntValue, and each second the TextButton in the SurfaceGUI would get updated, but it would only get updated in the properties menu, not in-game. Help?
--SCRIPT--
script.Parent.MouseButton1Click:connect(function()
local plr = script.Parent.Parent.Parent.Parent.Parent.Parent
script.Parent.Parent.Visible = false
if(plr:FindFirstChild("leaderstats").DjBux.Value >= 140)then
script.Parent.Parent.Parent.Yes.Visible = true
plr:FindFirstChild("leaderstats").DjBux.Value = plr:FindFirstChild("leaderstats").DjBux.Value - 140
game.StarterGui.SurfaceGui.Frame.money.Money.Value = game.StarterGui.SurfaceGui.Frame.money.Money.Value + 140
game.StarterGui.SurfaceGui.Frame.money.Text = "$: "..game.StarterGui.SurfaceGui.Frame.money.Money.Value --This part works perfectly but the effect won't show on the SurfaceGui, but if i go in the properties of the money text button the text is correct...
script.Parent.Parent.Parent.Yes.Visible = true
end
end)

3 comments
Posted it :)
Did this help?
Thank you so much! It worked! :D