Nil value (global ‘Config’)

Hey, i get this error and i dont know how to fix it :frowning:

LOG

SCRIPT ERROR: @routensystem/server.lua:15: attempt to index a nil value (global ‘Config’)

CONFIG

Config = {}

Config.Kokainmin = 1000

Config.Kokainmax = 5000

Config.Weedmin = 1000

Config.Weedmax = 5000

Config.Bufomin = 1000

Config.Bufomax = 5000

Config.Kokainfarmpoint = vector3(2231.741, 5583.5474, 53.8569)

Config.Kokainprocesspoint = vector3(1220.988, 1867.675, 78.8895)

Config.Kokainsellpoint = vector3(1469.7531, 6550.6748, 14.9041)

Config.Weedfarmpoint = vector3(-2355.7546, 2633.0908, 1.6914)

Config.Weedprocesspoint = vector3(-263.6447, 2196.0752, 130.3987)

Config.Weedsellpoint = vector3(-960.6743, -1982.6981, 14.4753)

Config.Bufofarmpoint = vector3(1997.5959, 596.5793, 161.8452)

Config.Bufoprocesspoint = vector3(0.0, 0.0, 0.0)

Config.Bufosellpoint = vector3(0.0, 0.0, 0.0)

LINE 15

local farmPoint = Config.Kokainfarmpoint

this is a server.lua line 15 error and not in the config

Ensure that your config is a shared script. If it is, then ensure that config isn’t being over-written elsewhere.