I keep getting this error and I don't know what it is

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

  1. What do you want to achieve? for the script to work

  2. What is the issue? No clue but this is the error: ReplicatedStorage.Config.ToolConfig:3: Expected ‘,’ after table constructor element

Here is the script:
local module = {
FrenchFry = {Name = “French Fry”, Food = 1, price = 0}
FrenchFry2 = {Name = “French Fry2”, Food = 2, price = 10}
FrenchFry3 = {Name = “French Fry3”, Food = 3, price = 25}
}

return module

  1. What solutions have you tried so far? I dont know what to look for

You need to set a comma after each table (except the last one)

local module = {
FrenchFry = {Name = “French Fry”, Food = 1, price = 0},
FrenchFry2 = {Name = “French Fry2”, Food = 2, price = 10},
FrenchFry3 = {Name = “French Fry3”, Food = 3, price = 25}
}
1 Like

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