function Money() player = game.Players.LocalPlayer money = player.leadstats.Money bank = player.leaderstats.BankedMoney withdraw = script.Parent.Parent.MoneyValue money.Value = withdraw.Value+money.Value bank.Value = withdraw.Value-bank.Value end script.Parent.MouseButton1Down:connect(Money)
It says that line 3 is a (Nil value)
which it's not...
Not really enough information to solve this entirely, but with what you have given I may see one mistake.
function Money() player = game.Players.LocalPlayer money = player.leadstats.Money --Here you have "leadstats" bank = player.leaderstats.BankedMoney -- Here you have "leaderstats" withdraw = script.Parent.Parent.MoneyValue money.Value = withdraw.Value+money.Value bank.Value = withdraw.Value-bank.Value end script.Parent.MouseButton1Down:connect(Money)
As I stated before, I do not think you provided enough info for use to help you effectively. Although, this is a basic observation I made looking at your script.
If this is incorrect, then I wish you luck later.
EDIT: I didn't read the earlier answers properly, my bad. Necrowave got it.
I think it's because you misspelled "leaderstats":
money = player.leadstats.Money
So, replace with:
money = player.leaderstats.Money
The "BankedMoney" IntValue clearly doesn't exist. The question is why hasn't it been created yet? Which part of your script is responsible for creating the IntValues?