Errors with money system

Hello, im working on a script where the player presses a TextButton on a monitor, which will add 25$ to the players Money TextLabel.

local Sound3 = game.Workspace.Monitor.Screen.Sound2
local Work = game.Workspace.Monitor.Screen.SurfaceGui.Tools.TextButton6
local Money = game.Workspace.Monitor.Screen.SurfaceGui.Money
local Number = 0

script.Parent.MouseButton1Click:Connect(function()

	if Work.Visible == true then
		Sound3.Playing = true
		wait(15)
		Work.Visible = false
		Number += 25
		Money.Text = Money
		
	end
end)

The script displayed here Doesn’t add money to the Money TextLabel, so how do I fix this?

1 Like

Why are you typing Money.Text = Money? Shouldn’t it be Money.Text = tostring(Number)? What you are doing is setting the text of the object to the object itself.

2 Likes