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

expected near '[' error help?

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

3 comments

0

you need to put [Start New Game [Redo Character]] you were missing one ] near the end

0

^^^

0

Indeed, ^ . You always need to close those Opening '{', '[' , and '('. It applies in all or most of the Programming languages.

1 answer

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.

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