Function / OOP Problem

Hello, Since I wanted to improve at OOP, I’m trying some things but I didn’t understand exactly what the problem was. Can you explain the exact solve of this?

local Table = {}
local Account = {Balance = 50}

function Table:Withdraw(v)
	self.Balance = self.Balance - v
end

Account:Withdraw(20)
1 Like

Here this can help you, How to make a working bank with deposits / withdraws

Oh, I understand my mistake. I think I didn’t create an account. Thanks.