#Having a simple, but stupid problem with rebirths

9 messages · Page 1 of 1 (latest)

simple turret
#

Getting this whenever I load up, script appears to be incorrectly reading the amount of buttons purchased.

#

local purchasedObjects = getTycoon.getbyPlayerName(player.Name).PurchasedObjects This is the line of code that's giving me the issue

real barn
#

getTycoon.getbyPlayerName(player.Name) is returning nil

#

like the error says

stiff frigate
real barn
simple turret
#

I’ve fixed it by assigning a attributes in the buttons that checks if they’re purchased, and adjusted the logic for counting the buttons purchased