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 4 years ago

I found this in another game:

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

So I tried it myself:

game.ReplicatedStorage.aaaa.OnServerEvent:Connect(function(Player)
return([[point, item
50, walk
100, run]])
end)

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

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

1 answer

Log in to vote
1
Answered by 4 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:

return 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 — 4y
Ad

Answer this question