Hi!
I've got a new system to pick a car in my game, and it uses some tables. Here are the tables I have:
creators = {
"roblox",
"rauluss1",
"others"
}
carsroblox = {"ModBlueCar",
"ModGreenJeep",
"ModPoliceCar",
"ModRedTruck",
"ModSchoolBus",
"ModSportsCar"}
carsrauluss1 = {"ModJumper",
"ModGrandpaCar",
"ModTaxi",
"ModTraveller",
"ModPartyCar",
"ModRetro",
"ModMonster",
"ModBeetle",
"ModKart"
}
carsothers = {"ModQuantum",
"ModDarkHorse",
"ModDominaytor",
"ModSpeedaru"
}
Those are all my tables. Right, so I want to pick a car out of here with 2 variables set with some nice scripts.
The 2 numbers are defined as these:
table = number1.Value
car = number2.Value
So to pick the car what I am CURRENTLY doing is this:
chosentable = "cars"..creators[table]
chosencar = chosentable[car]
So in one line that is basically this:
"cars"..creators[table][car]
This returns the following error:
attempt to concatenate field '?' (a nil value)
What am I doing wrong?
