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

expected near '[' error help?

Asked by
zBoltZz 10
6 years ago

i have a script thath is like that: Players.zBoltZz.Backpack.ServerTraits.ChatStart:Fireserver(Workspace.FriendltNPCs.["Start New Game [Redo Character])

i dont know what is wrong but here is the error: http://prntscr.com/hmxzsk

0
you need to put [Start New Game [Redo Character]] you were missing one ] near the end g1o2r3d4a5n6 350 — 6y
0
^^^ welt101 12 — 6y
0
Indeed, ^ . You always need to close those Opening '{', '[' , and '('. It applies in all or most of the Programming languages. User#17685 0 — 6y

1 answer

Log in to vote
0
Answered by
Eqicness 255 Moderation Voter
6 years ago

Hi, I'm guessing this is just a quick "preview" of what you're trying to do, but I don't know whether you're trying to reference:

game.Workspace.FriendItNPCs["Start New Game"]["Redo Character"]

or

game.Workspace.FriendItNPCs["Start New Game [Redo Character]"]

but the only thing wrong the reference part of your script is you have an extra period ( . ) between FriendItNPCs and your bracket references, and that you were missing an ending quote ( " ) and a closed bracket ( ] ) at the end of your reference.

Ad

Answer this question