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

My variables wont work?

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

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

print(5+10)

Edit is your output window visible?

3 comments

0

it's sensitivity is titled, "case sensitive".

0

When I tried that it still didn't say out the answer? I was case sensitive too.

0

edited.

Your "Print" needs to be lowercase.

print (10+5)

3 comments

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.

0

Where is the script located? Mine was using a Regular Script in the Workspace.

0

As masternick said, the answer (15) will be visible in the output window.

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