Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (): Part of script
- []: not part of script, insert inside.
- {}: not compulsory to type in all scripts.
- print(""): prints to output, text in purple.
- wait(): wait time for script to execute
- warn(""): displays exact time, text in orange.
- --: to make notes in scripts, script ignores line.
- game.[service].[item].[property]: to reference something from the game in a script.
- Boolean Value: only true or false.
- Anchored: stays/can move in place, can/cannot be moved, only true or false.
- Variable: Stores data. (Must be named, then insert =, and then define the data object.)
- Instance.new: To make another item.
- Vector3: To position a part, X,Y,Z axis used.
- While Loops:Loops a script forever.
- For Loops: Loops a script for a desired amount.
- i = x,y,z = I = Counter, X = Starting Value, Y = Terminating Value, Z = increase of the number per loop.
- Function: Runs a script, but must be told to run. (Define before calling it.)
- Arguments: Substitutes the variables, and coding.
- Parameters: Like variables, basically a type of function, has to be in order, (eg. 1,2).
- Event: Something happens when triggered (by a part, coding, etc.)
- ..player.Name: When we don't know the name of a player.
- If statements: Allows a script to perform if met requirements / conditions.
- Relational Operator: Used as a condition to compare two values (or more).
- Table: (Operator, Meaning, Example)
- <, Less Than, 3 < 5, true
- >, Greater Than, 3 > 5, false
- <=, Less than or equal to, 5 <= 5, true
- >=, Greater than or equal to, 3 >= 5, false
- ==, Equals, 3 == 5, false
- -=, Does not equal, 3 -= 5, true
- Boolean Operators: Allows more than 1 condition in the If statement, has 3 Values, 'and, or, not'.
- 'And' allows more than 2 conditions to be put in the If statement, for the statement to execute, both needs to be true.
- 'Or' is the same as 'And' but allows one to be false if wanted. At least one should be true, for the script to be executed.
- 'Not' is a Boolean Value that makes the script to be opposite.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement