So, I'm trying to make my first script but it keeps bugging at the spearbuyer.
It's like my Setup doesnt exist, it doesnt follow my inputs in the setup.
Here's my setup:
And here's the spearbuyer:
mainbp = 'Golden Backpack'
lootbp = 'Blue Backpack'
hppot = "health potion" -- Type of hp potion you want to buy.
hpbuy = 7 -- Ammount of hp potions you want to buy.
hpleave = 3 -- Ammount of hp potions to go deposit.
spearsbuy = 5 -- Remember, you loot theese!
goldleave = 3500 -- Ammount of GP to go deposit.
It buys spears for all the cash that it took out of the bank, so it cant afford pots.
local SpearToBuy = spearsbuy - weaponamount
buyitemsupto("Spear", SpearToBuy) wait(1000)
Any help is appreciated!