How to Code in Roblox

Written by sean mann
  • Share
  • Tweet
  • Share
  • Email

Roblox is an online gaming site designed for kids where players create and customise their own worlds using building blocks. You can code scripts in Roblox to have your character perform automated sequences of actions such as outputting text, moving your arms around and even having your head fall off. You can use the Roblox Studio to add your own custom scripts to the game, which use the Roblox Lua scripting language.

Skill level:

Other People Are Reading


  1. 1

    Open Roblox Studio by clicking the Windows "Start" button, click "All Programs", click "ROBLOX" and click "Roblox Studio." Make sure you are in "Edit" mode in Roblox Studio by clicking your profile name and clicking "Edit."

  2. 2

    Add a new script to Roblox Studio by clicking "Insert", click "Object", click "Script" and click "Ok." This creates a blank new script in the "Workspace." If the "Workspace" isn't visible, click "View" and click "Explorer."

  3. 3

    Double-click the script's name in the "Explorer" window. This opens the script in a text editor.

  4. 4

    Add the Lua code you want your script to execute in Roblox. For example, you can print text by adding the following code:

    print ("Text here!")

    A more complicated example removes your character's head with the following code:


    Replace "MyNameHere" with the name of your Roblox character. Save the file when you are finished adding code.

  5. 5

    Execute your script by selecting the script in the "Explorer" window and changing the "Disabled" property in the "Properties Window" to "false."

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.