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

What is the ; used for?

Asked by 10 years ago

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

0
you mainly use it in other languages a.k.a the c language or the php, etc. DragonSkyye 517 — 10y

2 answers

Log in to vote
0
Answered by
Ekkoh 635 Moderation Voter
10 years ago

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)
Ad
Log in to vote
0
Answered by
Vividex 162
10 years ago

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.

Answer this question