#Script Paste Macro
1 messages · Page 1 of 1 (latest)
The video shows what I mean, these scripts aren’t stolen, self made so I don’t have to rewrite it every time I make a new baseplate or script.
what
weird but do whatever you want
you can just copy and paste?
way easier than that
If I’ve got 10+ things say idk part tween gui tween uh some random math.random code etc it’s easier to simply type whatever say “/tsgui” “/tspart” “/mr” etc instead of go into idk notepad or wtvr and find the file and then copy paste it
Airbaalllll
just remember then fr
right 😭 what is this dude talking about
** You are now Level 1! **
is it really that hard to comprehend 😬
Handy for variables, I use autocomplete too
Gotcha
Abnormal? Not really
i mean ive never seen it before
Oh right
Ik a lot of people save them as a script in the Roblox upload script section but it’s weirder n more awkward
This is completely normal, I use Visual Studio Code which has a "snippets" feature that does exactly this.
Additionally for those service imports, i'd recommend automatically inserting them at the top if they don't already exist when typing out the service name from anywhere in the file. You can also do this with requires and it saves so much time (luau lsp has this).
*Though an important thing to note, if your ever writing a snippet for something you should really make sure there isn't a better way to write the code. Its easy to use snippets to create a lot of bad copy pasted code fast.
For example, instead of pasting that user input service snippet every time you need to get input, it might be a better idea to write a module that abstracts user input (with key rebinding, any state management stuff you do frequently, etc) and give it a cleaner and more friendly API to work with.
As an example of this, here is an abstraction I wrote for user input. It handles separate keys depending on the platform type, key rebinding by users, and automatically stops listening for input when it goes out of scope. If I had just used snippets for this, my codebase wouldve been much messier and harder to maintain.
Yhhh snippets that’s what it’s called, not a macro my bad haha, and yeah I usually do that if ur saying what I’m thinking, was just showing an example of the snippets.
You need to write it
Just not over and over again
It’s somewhat like a permanent function across all ur games but better
That’s a lot more advanced than my current self though haha
🤷