game.ReplicatedStorage.Remotes.DepositATM.OnServerEvent:Connect(function(player)
local Wallet = player.CurrencyFolder.Wallet.Value
local Amount = tonumber(script.Parent.Parent.AMOUNT.Text)
if Wallet >= Amount then
player.CurrencyFolder.Wallet.Value = player.CurrencyFolder.Wallet.Value - Amount
player.BankFolder.Bank.Value = player.BankFolder.Bank.Value + Amount
end
end)
Error: Attempt to compare nil and number

3 comments
had the same problem while ago, good answer too
Thank you so so much
No problem