how do you make a comment in roblox script

by Willard Kunze 3 min read
image

A short comment starts with a double hyphen (--) anywhere outside a string and it extends to the end of the line. Expand -- This is a comment

A short comment starts with a double hyphen ( -- ) anywhere outside a string and it extends to the end of the line. Comments can also be defined using a long format enclosed by brackets. Comments in this form can run for several lines. This is a long comment.

Full Answer

What is a comment in a script?

A comment is a way of leaving a note in a script without breaking the script. Comments can be created two ways, and are always green. Single line comments are just that, on a single line. They can also be on the same line as text. Comments can be multiple lines. -- [ [ this is part of a comment as is this witchcraft!

How do you write a comment in a string?

A short comment starts with a double hyphen ( --) anywhere outside a string and it extends to the end of the line. Comments can also be defined using a long format enclosed by brackets. Comments in this form can run for several lines.

How do I add scripts to Roblox Studio?

If you just want to put some scripts into Roblox Studio, there are a few ways to go about it. However, the simplest way is to just copy the script’s contents inside your game: Open the Roblox Studio Explorer. Hover over “ServerScriptServer” to make the “+” icon appear. Click on the icon.

How do I add commands to my Roblox game?

The first thing you should do is download an Admin Model Package and add it to your game. If you’re the creator of a Roblox game, you automatically have admin privileges and can, therefore, use Roblox commands. But if you don’t, you’ll need to have an Admin Model Package installed.

image

How do I comment in Lua code?

A comment starts with a double hyphen ( -- ) anywhere outside a string. They run until the end of the line. You can comment out a full block of code by surrounding it with --[[ and --]] . To uncomment the same block, simply add another hyphen to the first enclosure, as in ---[[ .

How do you comment a block of code on Roblox studio?

0:439:33How to Comment Out Block of Code in Roblox Scripts (2022 ... - YouTubeYouTubeStart of suggested clipEnd of suggested clipSo if i like to make it clearer. For people who read my code to know exactly what my cook is doing iMoreSo if i like to make it clearer. For people who read my code to know exactly what my cook is doing i can insert a comment to insert a comment in roblox. You start with two dashes followed by the text

How do you make notes on Roblox?

0:021:27Add Notes/Comments to Scripts! - ROBLOX Tips & Tricks - YouTubeYouTubeStart of suggested clipEnd of suggested clipAll you have to do to add a comment is to do two dash marks. And then you can write whatever youMoreAll you have to do to add a comment is to do two dash marks. And then you can write whatever you want anything that is in green will not affect your script. And won't end up as an error.

What language is Roblox written?

LuaCode in Roblox is written in a language called Lua and is stored and run from scripts. You can put scripts anywhere — if you put a script in a part, Roblox will run the code in the script when the part is loaded into the game.

How long does it take to learn Roblox scripting?

Roblox uses Lua and learning the basics of Lua can take anything from a few days to a few weeks, depending on the time you put into it. The more you practice, the faster you will learn.

Is Kaden a Temprist?

Kaden started his YouTube channel by making Roblox content. He plays various games on Roblox such as camping games and also trolls other people by using admin commands. Kaden also features other Roblox YouTubers in his videos such as Flamingo, G0Z Holmes and Temprist.

What is the real name of Flamingo?

Albert Spencer AretzAlbert Spencer Aretz (born: June 11, 1997 (1997-06-11) [age 25]), better known online as Flamingo (also known as mrflimflam, AlbertsStuff, and Alberts), is an American Roblox YouTuber who mostly uploads gameplay and reaction videos. He is best known for his comedic style, inside jokes, and characters.

What is flamingos Roblox user?

Albert Spencer Aretz, known on Roblox as mrflimflam and as Flamingo on YouTube, is an American Roblox YouTuber part of the Roblox Video Stars Program with 10,000,000 subscribers. He uploads family-friendly gameplay videos on Flamingo, and formerly uploaded more vulgar gameplay and trolling videos on AlbertsStuff.

How do you comment multiple lines on Roblox?

If you want a multiple line comment, called a block comment, you need it to start and end with 2 brackets and 2 hyphens. lines. Block comments must have exactly 2 hyphens and 2 brackets at the beginning and end.

How do you add text in Roblox Studio?

0:312:34How To Add Text to a Part in Roblox Studio - YouTubeYouTubeStart of suggested clipEnd of suggested clipClick on the plus icon in your newly. Created part in the explorer tab search for surface to add theMoreClick on the plus icon in your newly. Created part in the explorer tab search for surface to add the surface gui to your part next click on the plus icon for your surface gui. And add the text label.