Is it possible to put a space in a variable name?

for example

local [a value] = 1

print([a value])

local a_value=1;print(a_value)

1 Like

Short answer:
Nope

Long answer:

this would evaluate to:

local a;
value = 1;

print(a value) -- now this would not work, its expecting an operator after the space maybe. Not a valid luau syntax

Solution:
Use underscores _;
like @mbtae1238 's answer

1 Like

Pov : when i actually show him it with underscores , you get marked as solution

2 Likes

that is so weird!! get better soon!

Wdym get better soon ? I literally were the first one who replied that answer

stop being mad trollge incident

You’re so toxic, 1- Ignoring my first reply 2 -telling me to get better while i did nothing 3 - calling me mad . God sees your actions

image

Already told you sir , god sees your actions. And you cant put space in a variable name , i said it for the second time maybe you actually see it

your not getting the solution bro

You hated trollge kind at first place this is why

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.