My script keeps giving me an error

i have a DialogModule and the script is giving me an error saying

Syntax Error: Expected identifier when parsing expression, got ‘}’

i don’t know what the problem is.

My code (very long)

–local DialogModule = {

["Hizora9"] = {
	[1] = "Hey kid...",
	[2] = "You wonderin' why im sitting like this?",
	[3] = "Well its because I have more than 2 wins!",
	[4] = "To get wins just sit afk and wait 'till your number is called."
}


["front desk helper man"] = {
	[1] = "Hi, I'm front desk helper man",
	[2] = "I will teach you how to play, okay noob?",
	[3] = "Anyways so basically you sit around (afk)",
	[4] = "then if you wait around enough ur number might be called",
	[5] = "to get a number just speak to number giver man over there",
	[6] = "also getting wins is extremly rare, we also have prizes",
	[7] = "if you get 1 win you can get a crown",
	[8] = "and if u have 1337 minutes then you can buy something that i cannot tell you about",
	[9] = "now scram im gonna go blay bingo in Da Amazing Bunker Simulator"
}

}

return DialogModule

(the last message for front desk helper man is just a joke, i don’t own that game and have not worked on it, its there because its a reference to another game by the people who made Da amazing bunker simulator which is what my game is based off of)

Idk if this could be the issue but try turning all the commas into semicolons(“;”)
I’m pretty sure the divider for dictionaries is a semicolon

Edit disregard this the above section
Put a semicolon or comma after the first table

You forgot to separate the 2 keys

local DialogModule = {

	["Hizora9"] = {
		[1] = "Hey kid...",
		[2] = "You wonderin' why im sitting like this?",
		[3] = "Well its because I have more than 2 wins!",
		[4] = "To get wins just sit afk and wait 'till your number is called."
	}, --You forgot this comma

	["front desk helper man"] = {
		[1] = "Hi, I'm front desk helper man",
		[2] = "I will teach you how to play, okay noob?",
		[3] = "Anyways so basically you sit around (afk)",
		[4] = "then if you wait around enough ur number might be called",
		[5] = "to get a number just speak to number giver man over there",
		[6] = "also getting wins is extremly rare, we also have prizes",
		[7] = "if you get 1 win you can get a crown",
		[8] = "and if u have 1337 minutes then you can buy something that i cannot tell you about",
		[9] = "now scram im gonna go blay bingo in Da Amazing Bunker Simulator"
	}
}

return DialogModule
1 Like

oh thanks! i didn’t know i had to separate them :grinning:

1 Like

Glad that I have taught you a new thing! If you have anymore issues don’t be afraid to make another post!

well this is a rude thing to say (at least to me) is that i made 2 posts yesterday i believe and none of them have gotten answers? idk if it was my question i just though u could help