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

What is the ; used for?

I've used it in quite a few of my scripts, but I dont know what its used for.

1 comment

0

you mainly use it in other languages a.k.a the c language or the php, etc.

2 answers

✓ Accepted answer

It's not necessary in Lua, but you can use it optionally to end function calls or variable declarations.

i.e.

local var = "Hello"; -- same as
local var = "Hello"
print(var); -- same as
print(var)

Scripting in Roblox is different from Coding, in coding, you would use the syntax ";" to run a code. At the end of the code you would probably put a ";" telling the computer that you finished that line and to run it.

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