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

My variables wont work?

Asked by
Storylife -10
8 years ago

Whenever I try to print something it doesn't work for me, for example I read the roblox wiki and tried to print some stuff like 5+10 however nothing shows up Here are some ways I tried to do it

Print (10 + 5)
> Print (10 + 5)
Print (10+5)
> Print ( 10+5)

None of these seemed to work, can someone help me on this?

2 answers

Log in to vote
0
Answered by 8 years ago

Lua is pretty sensitive. Use print(10+5), instead.

print(5+10)

Edit is your output window visible?

0
it's sensitivity is titled, "case sensitive". masternick1331 15 — 8y
0
When I tried that it still didn't say out the answer? I was case sensitive too. Storylife -10 — 8y
0
edited. masternick1331 15 — 8y
Ad
Log in to vote
0
Answered by 8 years ago

Your "Print" needs to be lowercase.

print (10+5)
0
I did it lower case in a script but it still won't say out the answer? I even did it exactly as you did it but to no avail. Storylife -10 — 8y
0
Where is the script located? Mine was using a Regular Script in the Workspace. SirBrayden 35 — 8y
0
As masternick said, the answer (15) will be visible in the output window. SirBrayden 35 — 8y

Answer this question