Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

"Attempt to call a nil value."?

local StuffToSave = {
	Coins = 0;
}

local profileStore = profileService.GetProfileStore("Data", StuffToSave)

The given code is giving me an error, as the title says. Tried many different ways on fixing this issue, but couldn't find a necessary change. Help would be appreciated!

4 comments

0

which place got red lines, tell me if you here

0

dat in module?

0

Which line did you receive the output error from?

0

Can you show where profileService is defined in your script?

1 answer

i think u shouldn’t put this “;” next to the coin, i don’t know what that symbol is called, but usually u don’t put a comma at the end of a table

2 comments

0

If you're not being sarcastic, it's a semicolon, and the only real purpose of it is an alternative to commas in tables spanning multiple lines.

0

you put a semicolon when the table have multiple lines, in the script he only have one

This discussion is preserved as it was. New answers, comments, and votes are closed.