Module script trouble

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to structure the data for my cars
  2. What is the issue? Include screenshots / videos if possible!
  23:45:58.575  Requested module experienced an error while loading  -  Server - Game:2

Code

local s = game:GetService("ServerStorage").Cars
local module = {
	["Ваз 2106"] = {
		["Price"] = 12000,
		["Rank"] = "F",
		["Model"] = s["1984 ВАЗ 2106"]

	},
	["1985 VW Golf GTI"] = {
		["Price"] = 12000,
		["Rank"] = "F",
		["Model"] = s["1985 VW Golf GTI"]

	},
	["1985 ВАЗ 2105"] = {
		["Price"] = 12000,
		["Rank"] = "F",
		["Model"] = s["1985 ВАЗ 2105"]

	},
	["1989 ВАЗ 2108"] = {
		["Price"] = 12000,
		["Rank"] = "F",
		["Model"] = s["1989 ВАЗ 2108"]

	},
	["1990 Mercedes E500"] = {
		["Price"] = 12000,
		["Rank"] = "F",
		["Model"] = s["1990 Mercedes E500"]

	},
	["1991 ВАЗ 1111"] = {
		["Price"] = 12000,
		["Rank"] = "F",
		["Model"] = s["1991 ВАЗ 1111"]

	},
	["2000 Mercedes S600"] = {
		["Price"] = 12000,
		["Rank"] = "F",
		["Model"] = s["2000 Mercedes S600"]

	},
	["2002 BMW M3"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2002 BMW M3"]

	},
	["2002 Mercedes E55 AMG"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2002 Mercedes E55 AMG"]

	},
	["2002 Toyota Land Cruiser 100"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2002 Toyota Land Cruiser 100"]

	},["2004 Audi RS6"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2004 Audi RS6G"]

	},["2006 ВАЗ 2114"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2006 ВАЗ 2114"]

	},["2007 BMW M5"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2007 BMW M5"]

	},["2007 Toyota Camry"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2007 Toyota Camry"]

	},["2008 Hyundai SantaFe"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2008 Hyundai SantaFe"]

	},["2008 Mercedes ML63 AMG"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2008 Mercedes ML63 AMG"]

	},["2009 BMW M3"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2009 BMW M3"]

	},["2009 Lexus ISF"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2009 Lexus ISF"]

	},
	["2010 Honda Accord"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2010 Honda Accord"]

	},
	["2012 BMW X5M"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2012 BMW X5M"]

	},
	["2012 BMW X6M"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2012 BMW X6M"]

	},
	["2012 Ford Focus"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2012 Ford Focus"]

	},
	["2012 Mercedes S65 AMG"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2009 Lexus ISF"]

	},
	["2012 Pagani Huayra"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2012 Pagani Huayra"]

	},
	["2012 Porsche Panamera GTS"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2012 Porsche Panamera GTS"]

	},
	["2013 Mitsubishi Lancer"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2013 Mitsubishi Lancer"]

	},
	["2014 Mercedes C63 AMG"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2014 Mercedes C63 AMG"]

	},
	["2014 Mercedes E63 AMG"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2014 Mercedes E63 AMG"]

	},
	["2014 Mercedes GL63 AMG"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2014 Mercedes GL63 AMG"]

	},
	["2015 Audi RS7"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2015 Audi RS7"]

	},
	["2015 BMW M5"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2015 BMW M5"]

	},
	["2016 BMW M6"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2016 BMW M6"]

	},
	["2016 LADA  Priora"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2016 LADA  Priora"]

	},
	["2016 Mercedes CLS 63 AMG"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2016 Mercedes CLS 63 AMG"]

	},
	["2016 Renault Logan"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2016 Renault Logan"]

	},
	["2017 BMW X6M"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2017 BMW X6M"]

	},
	["2017 Infinity Q50"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2017 Infinity Q50"]

	},
	["2018 Audi R8"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Audi R8"]

	},
	["2018 BMW M2"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 BMW M2"]

	},
	["2018 BMW M5"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 BMW M5"]

	},
	["2018 Bugatti Chiron"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Bugatti Chiron"]

	},
	["2018 Dodge Challenger  SRT"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Dodge Challenger  SRT"]

	},
	["2018 LADA Vesta"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 LADA Vesta"]

	},
	["2018 Lexus LX570"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Lexus LX570"]

	},
	["2018 Mercedes C63"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Mercedes C63"]

	},["2018 Mercedes E63"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Mercedes E63"]

	},
	["2018 Mercedes G63"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Mercedes G63"]

	},
	["2018 Mercedes S63 AMG"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Mercedes S63 AMG"]

	},
	["2018 MercedesS650 Maybach"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 MercedesS650 Maybach"]

	},
	["2018 Nissan GT-R"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Nissan GT-R"]

	},
	["2018 Porsche Cayenne"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Porsche Cayenne"]

	},
	["2018 Rolls Royce Wraith"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Mercedes G63"]

	},
	["2018 Rolls-Royce Phantom"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Rolls-Royce Phantom"]

	},
	["2018 Toyota Camry"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Toyota Camry"]

	},
	["2018 Toyota Land Cruiser 200"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2018 Toyota Land Cruiser 200"]

	},
	["2019 Bentley Bentayga"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2019 Bentley Bentayga"]

	},
	["2019 Mercedes AMG GT"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2019 Mercedes AMG GT"]

	},
	["2019 Skoda Octavia VRS"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2019 Skoda Octavia VRS"]

	},
	["2019 Volkswagen Golf R"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2019 Volkswagen Golf R"]

	},
	["2020 Ford Mustang"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2020 Ford Mustang"]

	},
	["2020 Mercedes AMG GTR"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2020 Mercedes AMG GTR"]

	},
	["2020 Mercedes S63 AMG"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2020 Mercedes S63 AMG"]

	},
	["2020 Rolls-Royce Cullinan"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2020 Rolls-Royce Cullinan"]

	},
	["2021 BMW M4"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2021 BMW M4"]

	},
	["2021 BMW M5"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2021 BMW M5"]

	},
	["2021 BMW M5 CS"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2021 BMW M5 CS"]

	},
	["2021 BMW M8"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2021 BMW M8"]

	},
	["2021 BMW X5M"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2021 BMW X5M"]

	},
	["2021 BMW X6M"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2021 BMW X6Mv"]

	},
	["2021 McLaren 765LT"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2021 McLaren 765LT"]

	},
	["2021 Mercedes E63"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2021 Mercedes E63"]

	},
	["2021 Porsche 911 Carrera S"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2021 Porsche 911 Carrera S"]

	},
	["2022 Mercedes S500"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2022 Mercedes S500"]

	},
	["2023 BMW I7"] = {
		["Price"] = 12000,
		["Rank"] = "D",
		["Model"] = s["2023 BMW I7"]

	},
	
}
 
return module

1 Like

Thats weird … seems fine for me , any syntax error ? or normal script

1 Like

Is there any typo’s? and if not are all the models in ServerStorage named correctly to fit the model it is trying to call?

1 Like

He stucked on require command.

1 Like

Ofcourse. All names for the cars named correctly bcs i just a copy the name

1 Like

hmm i dont know why , maybe use waitforchild on module ?

local ServerStorage = game:GetService("ServerStorage")
local s = ServerStorage:WaitForChild("Cars")
1 Like

I just checked that the script runs on the first car

1 Like

No. Its don’t work. The same error

Wait, I might be dumb. Can you access services without using GetService ?

Yes. I think that its correctly to use getservice

I dont know then for me your script seems fine , im on mobile its very hard to use the devforum

Problem has been solved. I make a mistakes in the car links

Make sure to put this as an solution

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.