\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{immortaltfmous} \pdfinfo{ /Title (roblox-cheat-sheet.pdf) /Creator (Cheatography) /Author (immortaltfmous) /Subject (Roblox Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{8B0000} \definecolor{LightBackground}{HTML}{FBF7F7} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Roblox Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{immortaltfmous} via \textcolor{DarkBackground}{\uline{cheatography.com/148206/cs/32309/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}immortaltfmous \\ \uline{cheatography.com/immortaltfmous} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 30th June, 2022.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Home Tab}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/immortaltfmous_1654203902_image_2022-06-02_170320145.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{The Home tab is where we make and edit Parts. \newline Expanding the {\bf{Part button}} shows other Part types. \newline To edit the Part, use these buttons: {\bf{Select}}, {\bf{Move}}, {\bf{Scale}} and {\bf{Rotate}}. \newline The {\bf{Play}} button can be used to run the game.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{View Tab}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/immortaltfmous_1654203726_View Tab.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{The View tab contains all the windows in Roblox Studio. We will mostly be using {\bf{Explorer}}, {\bf{Properties}}, {\bf{Output}} and {\bf{Toolbox}}.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Explorer Window}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/immortaltfmous_1654204281_image_2022-06-02_171120721.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{The Explorer Window shows the location of your objects in the game. Each Service has its own use. For example, objects located in {\bf{Workspace}} will be rendered in the 3D space and {\bf{Players}} contains all the player clients that join the game.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.84149 cm} x{3.13551 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Explorer}} \tn % Row 0 \SetRowColor{LightBackground} game & Parent of everything in Explorer \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Workspace & Used to hold objects that will be rendered in the 3D space \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} Players & List of all Player Clients that join the game \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{ReplicatedFirst} & Replicates all objects under this tab to all the Clients (and not the server) \tn % Row Count 11 (+ 4) % Row 4 \SetRowColor{LightBackground} \seqsplit{ReplicatedStorage} & Storage available to Clients and Server \tn % Row Count 13 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{ServerScriptService} & Storage for ModuleScripts and ServerScripts \tn % Row Count 15 (+ 2) % Row 6 \SetRowColor{LightBackground} ServerStorage & Storage available only to the Server \tn % Row Count 17 (+ 2) % Row 7 \SetRowColor{white} StarterGUI & Used to hold GUI objects that will be copied to all clients \tn % Row Count 20 (+ 3) % Row 8 \SetRowColor{LightBackground} StarterPack & Used to hold items that are then copied into the Player's backpack \tn % Row Count 23 (+ 3) % Row 9 \SetRowColor{white} \seqsplit{StarterPlayerScripts} & Used to store LocalScripts for the Player \tn % Row Count 25 (+ 2) % Row 10 \SetRowColor{LightBackground} \seqsplit{StarterCharacterScripts} & Used to store LocalScripts for the Player's character \tn % Row Count 28 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Properties Window}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/immortaltfmous_1654204436_image_2022-06-02_171255047.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{The Properties Window shows the properties/attributes available to the object. Select an object to show its properties.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Toolbox}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/immortaltfmous_1656108523_Toolbox.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{There are a lot of resources available in the Toolbox like Models, Images, Audio, etc.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.09494 cm} x{3.88206 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Objects}} \tn % Row 0 \SetRowColor{LightBackground} Part & A physical brick in the world \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Model & A container for Parts \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Script & A container for {\emph{Lua}} source code that is run on the Server \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{LocalScript} & A container for {\emph{Lua}} source code that is run on a Client \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Variables}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{myNumber = 17 \newline myName = "Cathy" \newline \newline print("My name is ", myName, "and I'm ", myNumber)} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Variables can be used to store anything from numbers, strings and other objects. You do not need to specify the type of variable (i.e. int, String, bool).} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Referencing Objects}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\emph{-{}- create a variable for a {\bf{Part}} located in the Workspace}} \newline part = game.Workspace.Part \newline \newline {\emph{-{}-{[}{[} \newline create a variable for a {\bf{Script}} in StarterPlayerScripts \newline (Which is located in StarterPlayer)}} \newline {]}{]}* \newline script = \seqsplit{game.StarterPlayer.StarterPlayerScripts}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{To reference an object, use a period to go through the hierarchy (Parent to Child). Referencing is similar to finding a pathway to the object.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Models}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/immortaltfmous_1656108658_image_2022-06-24_181055624.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Models are Parts that are grouped together. It makes it easier to move objects that consists of a lot of objects like a Tree (which can have Trunk Parts, Leaf Parts, etc).} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Part Properties}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{-{}- declare a variable for the Part \newline part = game.Workspace.Part \newline \newline -{}- changes the Part's name (Name shown in Workspace) \newline part.Name = "New Part Name" \newline \newline -{}- changes the Part's BrickColor to {\bf{Colour Name}} \newline part.BrickColor = BrickColor.new("{\emph{Colour Name}}") \newline \newline -{}- change the position using the x, y, and z coordinates \newline part.Position = Vector3.new(x, y, z) \newline \newline -{}- change the size using x, y, and z coordinates \newline part.Size = Vector3.new(x, y, z) \newline \newline -{}- anchors the Part so it cannot be moved around \newline part.Anchored = true} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Here are some common properties used for Parts} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Creating an Object}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{newObject = Instance.new("Part") \newline -{}-create a new object, Part, called newObject \newline \newline newObject.Name = "myObject" \newline -{}-assigns a name to the new object \newline \newline newObject.Parent = game.Workspace \newline -{}-assigns a Parent to the object \newline \newline secondObject = newObject:Clone() \newline -{}-clones the original object \newline \newline newObject:Destroy() \newline -{}-destroys the object} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Here's some general code on how to create a new object.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Parent vs Child}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/immortaltfmous_1655340047_CameraMovement1.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{A child is an object that is under a Parent (another object). In this image, the LocalScript is a Child of StarterCharacterScripts. Easiest way to tell if something has a child is to see if you can expand it (arrow to the left side). Anything that comes up after you expand something is the child of that object.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Operators}} \tn % Row 0 \SetRowColor{LightBackground} == & Equals to \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \textasciitilde{}= & Not Equal \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \textgreater{} & Greater than \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \textless{} & Less than \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \textgreater{}= & Greater than or equal to \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \textless{}= & Less than or equal to \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 6 (+ 0) % Row 7 \SetRowColor{white} + & Add \tn % Row Count 7 (+ 1) % Row 8 \SetRowColor{LightBackground} - & Subtract \tn % Row Count 8 (+ 1) % Row 9 \SetRowColor{white} * & Multiplication \tn % Row Count 9 (+ 1) % Row 10 \SetRowColor{LightBackground} / & Division \tn % Row Count 10 (+ 1) % Row 11 \SetRowColor{white} \textasciicircum{} & Exponentiation \tn % Row Count 11 (+ 1) % Row 12 \SetRowColor{LightBackground} \% & Modulus \tn % Row Count 12 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.84149 cm} x{3.13551 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Function}} \tn % Row 0 \SetRowColor{LightBackground} `wait(10)` & Waits for 10 seconds \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} `print("Hello World!")` & Prints the message in the Output window \tn % Row Count 3 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Custom Functions}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{-{}- this function adds 2 numbers \newline function sum(num1, num2) \newline print(num1 + num2) \newline end \newline \newline sum(1, 2) \newline \newline -{}- assigns a variable to the result of the function \newline function calculateSquare(n) \newline return n * n \newline end \newline \newline result = calculateSquare(3)} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Conditional Statements}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{if \seqsplit{workspace:FindFirstChild("Tree")} then \newline print("There is a tree here.") \newline end \newline \newline \newline if coins \textless{} 5 then \newline print("You need more money.") \newline else \newline print("You have enough money!") \newline end \newline \newline \newline if player.Name == "Jake" then \newline print("You are an awesome guy, Jake") \newline elseif player.Name == "Sally" then \newline print("You are a sweetheart, Sally") \newline else \newline print("You are a pretty cool person") \newline end} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{If statements will run their code if the value between {\bf{if/then}} is true (or not {\bf{nil}}). They can one an {\bf{else}} block, or any number of {\bf{elseif}} blocks.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Loops}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{i = 0 \newline while i \textless{} 10 do \newline i += 1 \newline end \newline -{}-while loop, adds 1 to i until i is greater than 10 \newline \newline while true do \newline print("while loop") \newline wait(1) \newline end \newline -{}-while loop, infinite loop since it is always {\bf{true}} \newline \newline \newline for i = 1, 10 do \newline print(i) \newline end \newline -{}-for loop, prints i until i reaches 10 \newline \newline for i = 0, 10, 2 do \newline print(i) \newline end \newline -{}-for loop, prints i until i reaches 10 (i adds 2 each time)} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{0.89586 cm} x{4.08114 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Player vs Character vs Humanoid}} \tn % Row 0 \SetRowColor{LightBackground} Player & The Player's Client, stores information relating to the player's account (UserID, SpawnLocation, etc) \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} \seqsplit{Character} & The Player's physical character in the 3D world. It is a model and contains all the Player's body parts (HumanoidRootPart, Head, etc)) \tn % Row Count 9 (+ 5) % Row 2 \SetRowColor{LightBackground} \seqsplit{Humanoid} & A child of the Player's character. Includes properties such as Health, JumpHeight, WalkSpeed, etc. \tn % Row Count 13 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}