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

What am i doing wrong? Error with a comma in a local string.

local Months = ("January","Febuary","March","April","May","June","July","August","September","October","November","December")

the error-- ServerScriptService.DateTime:15: ')' expected near ','

2 comments

2

use brackets {} instead of parenthesis ()

0

Ciertamente usa brackets {} ya que es un arreglo

2 answers

✓ Accepted answer

You should be creating a table. A table is created using "{}" and not "()".

Here's how the code should be written:

local months = {"January","Febuary","March","April","May","June","July","August","September","October","November","December"}

local Months = {"January","February ","March","April","May","June","July","August","September","October","November","December"}

1 comment

0

You mis-spelled February and it's not (), it's {}.

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