Hey guys!
So basically i have been wanting to create a vehicle dealership system in my game, where if you need to add a car all you need to do is duplicate a folder, and make a new car utilizing the code from the other cars and just edit some values.
I was able to get the car buying system to work, however I had ran into some problems with loading the data, in which my script does not know what to select what to load.
THE PROBLEM
My save system is based off of a folder inside the player, in which it contains all the info about the car
and what the player has selected (however currency will be leaderstats when i decide to add it in).
What i need is to make a selection inside of a selection, since my folders are separated into the brands
of that car’s real life counterpart, in which it will select all of the brands inside the folder, and select the
folders of the cars, and then it should load all the customization pieces and stuff.
I basically get a error in the output where it tells me that its a “missing method” or something
really weird.
WHAT I NEED
Kinda simple really, i need to find out how to select every folder inside of a selection of folders, and i
only want the folder and not any of it’s children to be selected.
THE SCRIPT
local Brand = PlayerSave.Cars:GetChildren()
for i, Car in pairs(Brand:GetChildren()) do
print(Car.Name)
--goofy save stuff go here when i figure out the funny
end
Help would greatly be appreciated, thx!