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

Creating a dictionary table, getting "attempt to call an number value"?

My code is:

				DS:SetAsync(plyr.UserId{
		bans=0,
		endmonth=1,
		endday=1,
		endyear=1})

This gives attempt to call a number value in the output. Can you not add numbers to dictionaries?? I have no idea why it's not letting me save a number.

1 answer

✓ Accepted answer

Hello. I think you just forgot a comma after plyr.UserId.

DS:SetAsync(plyr.UserId, {
	bans = 0,
	endmonth = 1,
	endday = 1,
	endyear = 1
})

2 comments

0

Ahh, silly mistakes.

0

And that's why you always format your code so it's easier to catch errors.

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