Dictionary Key Doesn't Exist

I have a dictionary in my module that looks like this:

{
	["Option"] = "Leave",
	["Redirect"] = "FishDealer_Spawn_Leave",
	["Function"] = nil,
}

When I access this dictionary in my script, only [“Option”] shows up. I tried printing directly using the command line, but that doesn’t work either. I don’t know why this happens, and all help is appreciated. Thanks!

[“Function”] = nil,
to
[“Function”] = nil
(remove the comma)

I tried with and without the comma before, forgot to mention

Can you show us the whole print script please?

I just tried it and for whatever reason it started working. It’s probably something on my end since Studio has been bugging with me a lot lately

scripting is pain but what can we do :man_shrugging:

Ok, glad your problem is solved!

1 Like

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