–// Lets label our tables first
–// Table 1 - The Primary Table | Dealers
–// Table 2 - Inside the primary table | Vehicles
-
What do you want to achieve? I’m trying to make a somewhat close fully automated car spawn system for adding new dealers then adding all those vehicles inside of it
-
What is the issue? I can get it to print the dealers but not the vehicles as it would print nil.
-
What solutions have you tried so far? I tried doing a few real time help in Hidden Developers and a few other disc but they usually ended up ignoring me.
But for solutions for the Dealer printing I would do a for i do through the entire module script
Module Script
local VehiclesSpawners = {}
VehiclesSpawners.Spawner1 = { -- It prints these
Vehicle1 = { -- But not whats in here which I dunno what to do ;(
ClickDetector = game.Workspace, -- Location of interaction
VehicleLocation = game.ServerStorage, -- Vehicle Storage location
Vehicle_Name = "", -- Vehicle Name
Vehicle_Description = "", -- Description of vehicle
Vehicle_Price = 0 -- Not needed for now as vehicles wont have a price
},
Vehicle2 = {
ClickDetector = game.Workspace, -- Location of interaction
VehicleLocation = game.ServerStorage, -- Vehicle Storage location
Vehicle_Name = "", -- Vehicle Name
Vehicle_Description = "", -- Description of vehicle
Vehicle_Price = 0 -- Not needed for now as vehicles wont have a price
},
Vehicle3 = {
ClickDetector = game.Workspace, -- Location of interaction
VehicleLocation = game.ServerStorage, -- Vehicle Storage location
Vehicle_Name = "", -- Vehicle Name
Vehicle_Description = "", -- Description of vehicle
Vehicle_Price = 0 -- Not needed for now as vehicles wont have a price
}
}
VehiclesSpawners.Spawner2 = {
Vehicle1 = {
ClickDetector = game.Workspace, -- Location of interaction
VehicleLocation = game.ServerStorage, -- Vehicle Storage location
Vehicle_Name = "", -- Vehicle Name
Vehicle_Description = "", -- Description of vehicle
Vehicle_Price = 0 -- Not needed for now as vehicles wont have a price
},
Vehicle2 = {
ClickDetector = game.Workspace, -- Location of interaction
VehicleLocation = game.ServerStorage, -- Vehicle Storage location
Vehicle_Name = "", -- Vehicle Name
Vehicle_Description = "", -- Description of vehicle
Vehicle_Price = 0 -- Not needed for now as vehicles wont have a price
},
Vehicle3 = {
ClickDetector = game.Workspace, -- Location of interaction
VehicleLocation = game.ServerStorage, -- Vehicle Storage location
Vehicle_Name = "", -- Vehicle Name
Vehicle_Description = "", -- Description of vehicle
Vehicle_Price = 0 -- Not needed for now as vehicles wont have a price
}
}
return VehiclesSpawners
Printing Script
local Script = script.Parent.ModuleScript
local Require = require(Script)
for i, PrintRequires in pairs(Require) do
-- Create Car Dealer
local MainFolder = Instance.new("Folder", game.Workspace)
MainFolder.Name = i
end```