So, I'm trying to do a banking system. I have the money and the bank GUI working, but this does not seem to work. Can someone help me figure out why it when I insert the value I want to deposit it won't change the text of the Bank Money GUI.
function hi()
local player = game.Players.LocalPlayer
bank = player.BankSave.Value
money = player.MoneySave.Value
withdraw = script.Parent.Parent.MoneyValue
withdrawcash = script.Parent.Parent.MoneyValue.Value
if money >= withdrawcash then
bank = withdraw.Value+bank
print("we just deposited some moolah")
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.Good.Visible = true
else
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.Error.Visible = true
end
end
script.Parent.MouseButton1Down:connect(hi)
