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?