What if I have a part in workspace and I wanted to give it a shortcut in the script.. maybe like "block1" what would I do? I am new to scripting so please help me out here.
COMMUNITY QUESTION
Make a shortcut to an item in workspace?
2 answers
This is called a variable. You can set variables to instances (objects), or values such as numbers, strings, and booleans. In this case, you're setting it to an instance:
block = game.Workspace.Part
Now, when you want to use the part later in your code, you can just use 'block'.
block = game.Workspace.Part
block.Transparency = 0.5
block.Anchored = true
--etc
Hope this helped!
block1 = game.Workspace.Part
block1.lalal --u get the drit?
2 comments
0
Thanks!
0
np...
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Even better!
If I helped, throw me a +1 :D
Also, if you click "Accept Answer," we both get rep
How do you do that??