Execute Script

From Legacy Roblox Wiki
Revision as of 00:52, 9 August 2011 by >LocalChum (New page: == Introduction == '''Execute Script''' (Tools -> Execute Script) is a feature in Roblox Studio that allows you to run scripts in Roblox using an existing Lua file on your computer. ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Introduction

Execute Script (Tools -> Execute Script) is a feature in Roblox Studio that allows you to run scripts in Roblox using an existing Lua file on your computer.


Creating a script file

  1. Go in to the My Documents folder
  2. Right-click on a blank spot, go into New, and click New Text Document

Creating a new file

  1. Open (double-click) the new file
  2. Write the code print("Hello World!") in Notepad
  3. Save the file

Running a script

  1. Open Roblox Studio
  2. Make a new place (File -> New), or open an existing place (File -> Open)
  3. Go to Tools -> Execute Script, find the file you created
  4. Click "Open"

Congratulations! You just ran your first script using Execute Script!

Other information

Execute Script has the same security level as the command bar, thus making it easy to run long scripts with elevated permissions.

See also