Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

"Attempt to call a nil value."?

Asked by 3 years ago
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!

0
which place got red lines, tell me if you here Xapelize 2658 — 3y
0
dat in module? BulletproofVast 1033 — 3y
0
Which line did you receive the output error from? wwwaylon09 113 — 3y
0
Can you show where profileService is defined in your script? appxritixn 2235 — 3y

1 answer

Log in to vote
-1
Answered by 3 years ago

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

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. CraftyAlphaMan 11 — 3y
0
you put a semicolon when the table have multiple lines, in the script he only have one daokhiethy 25 — 3y
Ad

Answer this question