Execute Script: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>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. ...
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
Tags: mobile web edit mobile edit
 
(22 intermediate revisions by 6 users not shown)
Line 1: Line 1:
__TOC__
== Introduction ==
== Introduction ==


Line 5: Line 7:


__TOC__
__TOC__
== Creating a script file ==
== Creating a script file (on Windows XP) ==


# Go in to the ''My Documents'' folder
# Go in to the ''My Documents'' folder
Line 13: Line 15:


# Open (double-click) the new file
# Open (double-click) the new file
# Write the code <code>print("Hello World!")</code> in Notepad
# Write the code in Notepad. Example: <syntaxhighlight lang="lua">print("Hello World!")</syntaxhighlight>
# Save the file
# Save the file


Line 24: Line 26:


Congratulations! You just ran your first script using Execute Script!
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 ==
== See also ==


* [[Command bar]]
* [[Command Bar]]
* [[Scripting]]
* [[Script]]
* [[Script]]
[[Category:Scripting Tutorials]]

Latest revision as of 06:14, 27 April 2023

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 (on Windows XP)

  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 in Notepad. Example:
    print("Hello World!")
    
  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!

See also