Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Will this function work to change a print something in the Output?

Asked by 8 days ago
Edited 8 days ago
function Print (printing)
    print(printing)
end

Print("HEY! You printed in the output!")

Please correct me if it will not work.

Thank you!

0
couldn't you just try running it and if it doesn't work ask for help? EpicEyeBall_007 28 — 8d
0
So...there is a website that you can see the time any Roblox user was last online. Here is the link: https://www.rolimons.com/player/215971086 goodlead 23 — 8d
0
Then you can see why I can not go on Roblox Studio..... But here is the the account I use: https://www.rolimons.com/player/1110102418 goodlead 23 — 8d

2 answers

Log in to vote
0
Answered by
TTChaos 200 Moderation Voter
8 days ago

Yes.

There are other ways to make a simple "Hello world" program. One is the above, of which you demonstrated (note that people usually define functions as function Print(printing) and not function Print (printing). It usually doesn't have an extra space.)

Simple "Hello World"

print("HEY! You printed in the output!")

If you don't know what the above does, you should try looking up Roblox Lua tutorials.

Print-variable "Hello World"

local Text = "HEY! You printed in the output!"
print(Text)

Assigns to a local variable and prints it. The below also works.

Text = "HEY! You printed in the output!"
print(Text)

Notice how the local is omitted

Ad
Log in to vote
0
Answered by 8 days ago

Yes to answer your question it would work, if you have any future questions like this I would recommend executing your script and see if it works first before asking a question, but yes it would work make sure to accept my answer please !

0
Maybe don't ask people to accept your answers? TTChaos 200 — 8d
0
I like your answer thanks!!! goodlead 23 — 7d

Answer this question