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

What exactly does [[ do in scripting and what did I do wrong?

Asked by 5 years ago

I found this in another game:

1return require(script.Parent.CSV)([[tm,move
21,Hone Claws
3118,Rock Climb]])

So I tried it myself:

1game.ReplicatedStorage.aaaa.OnServerEvent:Connect(function(Player)
2return([[point, item
350, walk
4100, run]])
5end)

But mine didn't work, what did I do wrong and what does [[ mean?

0
This is actually a pretty good question. DeceptiveCaster 3761 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

[[ ... ]] defines a multi-line which allows the person to write something that usually goes in just 1 line in several, it pretty much only helps with organization purposes inside of the script. writing that without "]]" would probably work like this:

1return require(script.Parent.CSV)(tm,move1,Hone, Claws, 118,Rock, Climb)

This is just one of the very little things that Lua has that most people dont ever use, you can read more about this and other similiar stuff here: http://rigaux.org/language-study/syntax-across-languages-per-language/Lua.html

I hope this helped!

0
[[ ]] is basicly the same as " ", basicly what he has said. RyaniezRinkles 0 — 5y
Ad

Answer this question