· 5 years ago · Oct 31, 2020, 11:12 PM
1// Game Functions
2 "GetObjects": {
3 "prefix": "game:GetObjects",
4 "body": [
5 "game:GetObjects($0)",
6 ],
7 "description": "Gets the object my asset id"
8 },
9 "HttpGet": {
10 "prefix": "game:HttpGet",
11 "body": [
12 "game:HttpGet($0, true)",
13 ],
14 "description": "Gets the text from the url"
15 },
16
17 // Enviroment Functions
18 "Get Global Environment": {
19 "prefix": "getgenv",
20 "body": [
21 "getgenv($0)"
22 ],
23 "description": "Returns the environment that will be applied to each script ran by Synapse."
24 },
25 "Get Environment": {
26 "prefix": "getreg",
27 "body": [
28 "getrenv($0)"
29 ],
30 "description": "Returns the global environment for the LocalScript state."
31 },
32 "Get Registry": {
33 "prefix": "getreg",
34 "body": [
35 "getreg($0)"
36 ],
37 "description": "Returns the Lua registry."
38 },
39 "Get Garbage Collection": {
40 "prefix": "getgc",
41 "body": [
42 "getgc($0)"
43 ],
44 "description": "Returns all functions and userdata values within the GC. Passing true will also return tables."
45 },
46 "Get Instances": {
47 "prefix": "getinstances",
48 "body": [
49 "getinstances($0)"
50 ],
51 "description": "Returns a list of all instances within the game."
52 },
53 "Get Nil Instances": {
54 "prefix": "getnilinstances",
55 "body": [
56 "getnilinstances($0)"
57 ],
58 "description": "Returns a list of all instances parented to nil within the game."
59 },
60 "Get Scripts": {
61 "prefix": "getscripts",
62 "body": [
63 "getscripts($0)"
64 ],
65 "description": "Returns a list of all scripts within the game."
66 },
67 "Get Loaded Modules": {
68 "prefix": "getloadedmodules",
69 "body": [
70 "getloadedmodules($0)"
71 ],
72 "description": "Returns all ModuleScripts loaded in the game."
73 },
74 "Get Connections": {
75 "prefix": "getconnections",
76 "body": [
77 "getconnections($0)"
78 ],
79 "description": "Gets a list of connections to the specified signal."
80 },
81 "Fire Signal": {
82 "prefix": "firesignal",
83 "body": [
84 "firesignal($0)"
85 ],
86 "description": "Fires all the connections connected to the signal Signal with Args."
87 },
88 "Fire Click Detector": {
89 "prefix": "fireclickdetector",
90 "body": [
91 "fireclickdetector($0)"
92 ],
93 "description": "Fires the designated ClickDetector with provided Distance. If Distance isn't provided, it will default to 0."
94 },
95 "Fire Touch Interest": {
96 "prefix": "firetouchinterest",
97 "body": [
98 "firetouchinterest($0)"
99 ],
100 "description": "Fakes a .Touched event to ToTouch with Part. The Toggle argument must be either 0 or 1 (for fire/un-fire)."
101 },
102 "Is Network Owner": {
103 "prefix": "isnetworkowner",
104 "body": [
105 "isnetworkowner($0)"
106 ],
107 "description": "Returns true if the Part is owned by the player."
108 },
109 "Get Hidden Property": {
110 "prefix": "gethiddenproperty",
111 "body": [
112 "gethiddenproperty($0)"
113 ],
114 "description": "Returns the hidden property Property from Object. Errors if the property does not exist."
115 },
116 "Set Hidden Property": {
117 "prefix": "sethiddenproperty",
118 "body": [
119 "sethiddenproperty($0)"
120 ],
121 "description": "Sets the hidden property Property with Value from Object. Errors if the property does not exist."
122 },
123 "Set Simulation Radius": {
124 "prefix": "setsimulationradius",
125 "body": [
126 "setsimulationradius($0)"
127 ],
128 "description": "Sets the player's SimulationRadius. If MaxSimulationRadius is specified, it will set that as well."
129 },
130 // Script Functions
131 "Get Script Environment": {
132 "prefix": "getsenv",
133 "body": [
134 "getsenv($s)"
135 ],
136 "description": "Returns the environment of Script. Errors if the script is not loaded in memory."
137 },
138 "Get Calling Script": {
139 "prefix": "getcallingscript",
140 "body": [
141 "getcallingscript($s)"
142 ],
143 "description": "Gets the script that is calling this function."
144 },
145 // Table Functions
146 "Get Raw Metatable": {
147 "prefix": "getrawmetatable",
148 "body": [
149 "getrawmetatable($s)"
150 ],
151 "description": "Retrieve the metatable of value irregardless of value's metatable's __metatable field. Returns nil if it doesn't exist."
152 },
153 "Set Raw Metatable": {
154 "prefix": "setrawmetatable",
155 "body": [
156 "setrawmetatable($s)"
157 ],
158 "description": "Sets o's metatable to mt even if the __metatable field exists in o's metatable."
159 },
160 "Set Readonly": {
161 "prefix": "getcallingscript",
162 "body": [
163 "setreadonly($s)"
164 ],
165 "description": "Sets t's read-only value to val."
166 },
167 "Is Readonly": {
168 "prefix": "isreadonly",
169 "body": [
170 "isreadonly($s)"
171 ],
172 "description": "Returns t's read-only condition."
173 },
174 // Input Functions
175 "Is Active": {
176 "prefix": "isrbxactive",
177 "body": [
178 "isrbxactive($s)"
179 ],
180 "description": "Returns if the main window is in focus. This must return true for any other mouse/keyboard function to work."
181 },
182 "Keyboard": {
183 "prefix": "keypress",
184 "body": [
185 "keypress($s)"
186 ],
187 "description": "Simulates a key press for the specified keycode. Keycodes are listed https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes."
188 },
189 "Keyboard": {
190 "prefix": "keyrelease",
191 "body": [
192 "keyrelease($s)"
193 ],
194 "description": "Releases key on the keyboard. You can access the key values from https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes."
195 },
196 "Left Click 1": {
197 "prefix": "mouse1click",
198 "body": [
199 "mouse1click($s)"
200 ],
201 "description": "Simulates a full left mouse button press."
202 },
203 "Left Click 2": {
204 "prefix": "mouse1press",
205 "body": [
206 "mouse1press($s)"
207 ],
208 "description": "Simulates a left mouse button press without releasing it."
209 },
210 "Left Click 3": {
211 "prefix": "mouse1release",
212 "body": [
213 "mouse1release($s)"
214 ],
215 "description": "Simulates a left mouse button release."
216 },
217 "Right Click 1": {
218 "prefix": "mouse2click",
219 "body": [
220 "mouse2click($s)"
221 ],
222 "description": "Simulates a full right mouse button press."
223 },
224 "Right Click 2": {
225 "prefix": "mouse2press",
226 "body": [
227 "mouse2press($s)"
228 ],
229 "description": "Simulates a right mouse button press without releasing it."
230 },
231 "Right Click 3": {
232 "prefix": "mouse2release",
233 "body": [
234 "mouse2release($s)"
235 ],
236 "description": "Simulates a right mouse button release."
237 },
238 "Mouse Movement 1": {
239 "prefix": "mousescroll",
240 "body": [
241 "mousescroll($s)"
242 ],
243 "description": "Scrolls the mouse wheel virtually by px pixels."
244 },
245 "Mouse Movement 2": {
246 "prefix": "mousemoverel",
247 "body": [
248 "mousemoverel($s)"
249 ],
250 "description": "Moves the mouse cursor relatively to the current mouse position by coordinates x and y."
251 },
252 "Mouse Movement 3": {
253 "prefix": "mousemoveabs",
254 "body": [
255 "mousemoveabs($s)"
256 ],
257 "description": "Move's your mouse to the x and y coordinates in pixels from topleft of the main window."
258 },
259 // Reflection Functions
260 "Loadstring": {
261 "prefix": "loadstring",
262 "body": [
263 "loadstring($0)"
264 ],
265 "description": "Loads chunk as a Lua function with optional chunk_name and returns it if compilation is successful. Otherwise, if an error has occurred during compilation, nil followed by the error message will be returned."
266 },
267 "Check Caller": {
268 "prefix": "checkcaller",
269 "body": [
270 "checkcaller($0)"
271 ],
272 "description": "Returns true if the current thread is a Synapse thread. Note: Checkcaller does NOT check the call stack of the function, if you call a game function then it calls out to checkcaller, the result will be true! Be careful."
273 },
274 "Is Lua Closure": {
275 "prefix": "islclosure",
276 "body": [
277 "islclosure($0)"
278 ],
279 "description": "Returns true if f is an LClosure."
280 },
281 "Is C Closure": {
282 "prefix": "iscclosure",
283 "body": [
284 "iscclosure($0)"
285 ],
286 "description": "Returns true if f is an CClosure."
287 },
288 "Dump String": { // I'm pretty sure this is depricated
289 "prefix": "dumpstring",
290 "body": [
291 "dumpstring($0)"
292 ],
293 "description": "Returns the Synapse formatted bytecode for source string script."
294 },
295 "Decompile": {
296 "prefix": "decompile",
297 "body": [
298 "decompile($0)"
299 ],
300 "description": "Decompiles Script and returns the decompiled script with timeout. If the decompilation fails, then the return value will be an error message."
301 },
302 // Console Functions
303 "Console Print": {
304 "prefix": "rconsoleprint",
305 "body": [
306 "rconsoleprint($0)"
307 ],
308 "description": "Prints message into the console. rconsoleprint also supports colors."
309 },
310 "Console Info": {
311 "prefix": "rconsoleinfo",
312 "body": [
313 "rconsoleinfo($0)"
314 ],
315 "description": "Prints message into the console, with a info text before it."
316 },
317 "Console Warn": {
318 "prefix": "rconsolewarn",
319 "body": [
320 "rconsolewarn($0)"
321 ],
322 "description": "Prints message into the console, with a warning text before it."
323 },
324 "Console Error": {
325 "prefix": "rconsoleerr",
326 "body": [
327 "rconsoleerr($0)"
328 ],
329 "description": "Prints message into the console, with a error text before it."
330 },
331 "Console Clear": {
332 "prefix": "rconsoleclear",
333 "body": [
334 "rconsoleclear($0)"
335 ],
336 "description": "Clears the console."
337 },
338 "Console Name": {
339 "prefix": "rconsolename",
340 "body": [
341 "rconsolename($0)"
342 ],
343 "description": "Sets the currently allocated console title to title."
344 },
345 "Console Input": {
346 "prefix": "rconsoleinput",
347 "body": [
348 "rconsoleinput($0)"
349 ],
350 "description": "Yields until the user inputs information into their console. Returns the input they put in."
351 },
352 "Print Console": {
353 "prefix": "printconsole",
354 "body": [
355 "printconsole($0)"
356 ],
357 "description": "Prints message into the internal and integrated console with RGB value. To view the internal console, enable Internal UI in the Options menu and when in-game press INSERT on your keyboard. The integrated console can be found in the new synapse UI."
358 },
359 // Filesystem Functions
360 "Read File": {
361 "prefix": "readfile",
362 "body": [
363 "readfile($0)"
364 ],
365 "description": "Reads the contents of the file located at path and returns it. If the file does not exist, it errors."
366 },
367 "Write File": {
368 "prefix": "writefile",
369 "body": [
370 "writefile($0)"
371 ],
372 "description": "Writes contents to the supplied path. Extensions that are not allowed: .exe, .scr, .bat, .com, .csh, .msi, .vb, .vbs, .vbe, .ws, .wsf, .wsh, .ps1, .psy. Attempting to call this function with those extensions will error."
373 },
374 "Append File": {
375 "prefix": "appendfile",
376 "body": [
377 "appendfile($0)"
378 ],
379 "description": "Appends content to the file contents at path. If the file does not exist, it errors."
380 },
381 "Load File": {
382 "prefix": "loadfile",
383 "body": [
384 "loadfile($0)"
385 ],
386 "description": "Loads in the contents of a file as a chunk and returns it if compilation is successful. Otherwise, if an error has occurred during compilation, nil followed by the error message will be returned."
387 },
388 "List Files": {
389 "prefix": "listfiles",
390 "body": [
391 "listfiles($0)"
392 ],
393 "description": "Returns a table of files in folder."
394 },
395 "Is File": {
396 "prefix": "isfile",
397 "body": [
398 "isfile($0)"
399 ],
400 "description": "Returns if path is a file or not."
401 },
402 "Is Folder": {
403 "prefix": "isfolder",
404 "body": [
405 "isfolder($0)"
406 ],
407 "description": "Returns if path is a folder or not."
408 },
409 "Make Folder": {
410 "prefix": "makefolder",
411 "body": [
412 "makefolder($0)"
413 ],
414 "description": "Creates a new folder at path."
415 },
416 "Delete Folder": {
417 "prefix": "delfolder",
418 "body": [
419 "delfolder($0)"
420 ],
421 "description": "Deletes the folder in the supplied path, if no folder exists, it errors."
422 },
423 "Delete File": {
424 "prefix": "delfile",
425 "body": [
426 "delfile($0)"
427 ],
428 "description": "Deletes the file in the supplied path, if no file exists, it errors."
429 },
430 // Miscellaneous Functions
431 "Set Clipboard": {
432 "prefix": "setclipboard",
433 "body": [
434 "setclipboard($0)"
435 ],
436 "description": "Sets value to the clipboard."
437 },
438 "Set Fast Flag": {
439 "prefix": "setfflag",
440 "body": [
441 "setfflag($0)"
442 ],
443 "description": "Sets FFlag with Value. Must be run before the game loads, auto execute + auto launch recommended. https://fflag.eryn.io/"
444 },
445 "Get Namecall Method": {
446 "prefix": "getnamecallmethod",
447 "body": [
448 "getnamecallmethod($0)"
449 ],
450 "description": "Returns the namecall method if the function is called in an __namecall metatable hook."
451 },
452 "Set Namecall Method": {
453 "prefix": "setnamecallmethod",
454 "body": [
455 "setnamecallmethod($0)"
456 ],
457 "description": "Sets the current namecall method to the new namecall method. Must be called in a __namecall metatable hook."
458 },
459 "Is LuaU": {
460 "prefix": "isluau",
461 "body": [
462 "isluau($0)"
463 ],
464 "description": "Returns true if the game is running Luau. Warning: Deprecated, Luau is enabled on all games now."
465 },
466 "Get Special Info": {
467 "prefix": "getspecialinfo",
468 "body": [
469 "getspecialinfo($0)"
470 ],
471 "description": "Gets a list of special properties for MeshParts, UnionOperations, and Terrain instances."
472 },
473 "Save Instance": {
474 "prefix": "saveinstance",
475 "body": [
476 "saveinstance($0)"
477 ],
478 "description": "Saves the current game into your workspace folder. You can use table t to customize options for this."
479 },
480 "Message Box": {
481 "prefix": "messagebox",
482 "body": [
483 "messagebox($0)"
484 ],
485 "description": "Creates a message box with parameters text, caption and style."
486 },
487 // Bit Library
488 "bdiv": {
489 "prefix": "bit.bdiv",
490 "body": [
491 "bit.bdiv($0)"
492 ],
493 "description": "description"
494 },
495 "badd": {
496 "prefix": "bit.badd",
497 "body": [
498 "bit.badd($0)"
499 ],
500 "description": "Adds a with b, allows overflows."
501 },
502 "bsub": {
503 "prefix": "bit.bsub",
504 "body": [
505 "bit.bsub($0)"
506 ],
507 "description": "Subtracts a with b, allows overflows."
508 },
509 "bmul": {
510 "prefix": "bit.bmul",
511 "body": [
512 "bit.bmul($0)"
513 ],
514 "description": "Multiplies val using by, allows overflows."
515 },
516 "band": {
517 "prefix": "bit.band",
518 "body": [
519 "bit.band($0)"
520 ],
521 "description": "Does a bitwise AND (&) on val using by."
522 },
523 "bor": {
524 "prefix": "bit.bor",
525 "body": [
526 "bit.bor($0)"
527 ],
528 "description": "Does a bitwise OR (|) on val using by."
529 },
530 "bxor": {
531 "prefix": "bit.bxor",
532 "body": [
533 "bit.bxor($0)"
534 ],
535 "description": "Does a bitwise XOR (⊕) on val using by."
536 },
537 "bnot": {
538 "prefix": "bit.bnot",
539 "body": [
540 "bit.bnot($0)"
541 ],
542 "description": "Does a bitwise NOT on val."
543 },
544 "bswap": {
545 "prefix": "bit.bswap",
546 "body": [
547 "bit.bswap($0)"
548 ],
549 "description": "Does a bitwise swap on val."
550 },
551 "ror": {
552 "prefix": "bit.rol",
553 "body": [
554 "bit.rol($0)"
555 ],
556 "description": "Returns the value rotated right by rotate_count."
557 },
558 "rol": {
559 "prefix": "bit.rol",
560 "body": [
561 "bit.rol($0)"
562 ],
563 "description": "Returns the value rotated left by rotate_count."
564 },
565 "tohex": {
566 "prefix": "bit.tohex",
567 "body": [
568 "bit.tohex($0)"
569 ],
570 "description": "Converts val to a hex string."
571 },
572 "tobit": {
573 "prefix": "bit.tobit",
574 "body": [
575 "bit.tobit($0)"
576 ],
577 "description": "Converts val into proper form for bitwise operations."
578 },
579 "lshift": {
580 "prefix": "bit.lshift",
581 "body": [
582 "bit.lshift($0)"
583 ],
584 "description": "Does a left shift on val using by."
585 },
586 "rshift": {
587 "prefix": "bit.rshift",
588 "body": [
589 "bit.rshift($0)"
590 ],
591 "description": "Does a right shift on val using by."
592 },
593 "arshift": {
594 "prefix": "bit.arshift",
595 "body": [
596 "bit.arshift($0)"
597 ],
598 "description": "Returns the arithmetically shifted value."
599 },
600 // Crypt Library
601 "Encrypt": {
602 "prefix": "syn.crypt.encrypt",
603 "body": [
604 "syn.crypt.encrypt($0)"
605 ],
606 "description": "Encrypts data with key (algorithm used is AES-GCM, random nonce generated per call)."
607 },
608 "Decrypt": {
609 "prefix": "syn.crypt.decrypt",
610 "body": [
611 "syn.crypt.decrypt($0)"
612 ],
613 "description": "Decrypts data with key."
614 },
615 "Base64 Encode": {
616 "prefix": "syn.crypt.base64.encode",
617 "body": [
618 "syn.crypt.base64.encode($0)"
619 ],
620 "description": "Encodes data with base64."
621 },
622 "Base64 Decode": {
623 "prefix": "syn.crypt.base64.decode",
624 "body": [
625 "syn.crypt.base64.decode($0)"
626 ],
627 "description": "Decodes data with base64."
628 },
629 "Hash": {
630 "prefix": "syn.crypt.hash",
631 "body": [
632 "syn.crypt.hash($0)"
633 ],
634 "description": "Hashes data with SHA-384."
635 },
636 "Derive": {
637 "prefix": "syn.crypt.derive",
638 "body": [
639 "syn.crypt.derive($0)"
640 ],
641 "description": "Derives a secret key from value with the length of len."
642 },
643 "Random": {
644 "prefix": "syn.crypt.random",
645 "body": [
646 "syn.crypt.random($0)"
647 ],
648 "description": "Generates a random string with size (cannot be negative or exceed 1024)."
649 },
650 "Encrypt": {
651 "prefix": "syn.crypt.custom.encrypt",
652 "body": [
653 "syn.crypt.custom.encrypt($0)"
654 ],
655 "description": "Encrypts data with key using selected cipher and iv/nonce."
656 },
657 "Decrypt": {
658 "prefix": "syn.crypt.custom.decrypt",
659 "body": [
660 "syn.crypt.custom.decrypt($0)"
661 ],
662 "description": "Decrypts data with key using selected cypher and iv/nonce."
663 },
664 "Hash": {
665 "prefix": "syn.crypt.custom.hash",
666 "body": [
667 "syn.crypt.custom.hash($0)"
668 ],
669 "description": "Hashes data with algorithm."
670 },
671 // Debug Library
672 "Get Constants": {
673 "prefix": "debug.getconstants",
674 "body": [
675 "debug.getconstants($0)"
676 ],
677 "description": "Retrieve the constants in function fi or at level fi."
678 },
679 "Get Constant": {
680 "prefix": "debug.getconstant",
681 "body": [
682 "debug.getconstant($0)"
683 ],
684 "description": "Returns the constant at index idx in function fi or level fi."
685 },
686 "Set Constant": {
687 "prefix": "debug.setconstant",
688 "body": [
689 "debug.setconstant($0)"
690 ],
691 "description": "Set constant idx to tuple value at level or function fi."
692 },
693 "Get Upvalues": {
694 "prefix": "debug.getupvalues",
695 "body": [
696 "debug.getupvalues($0)"
697 ],
698 "description": "Retrieve the upvalues in function fi or at level fi."
699 },
700 "Get Upvalue": {
701 "prefix": "debug.getupvalue",
702 "body": [
703 "debug.getupvalue($0)"
704 ],
705 "description": "Returns the upvalue with name idx in function or level fi."
706 },
707 "Set Upvalue": {
708 "prefix": "debug.setupvalue",
709 "body": [
710 "debug.setupvalue($0)"
711 ],
712 "description": "Set upvalue idx to value value at level or function fi."
713 },
714 "Get Protos": {
715 "prefix": "debug.getprotos",
716 "body": [
717 "debug.getprotos($0)"
718 ],
719 "description": "Returns a table containing the inner functions of function f. Note these functions will not have upvalues, use debug.getproto with activated true to get a list of instances."
720 },
721 "Set Proto": {
722 "prefix": "debug.setproto",
723 "body": [
724 "debug.setproto($0)"
725 ],
726 "description": "Replaces fi at index with function replacement at level or function fi."
727 },
728 "Get Stack": {
729 "prefix": "debug.setproto",
730 "body": [
731 "debug.setproto($0)"
732 ],
733 "description": "Replaces fi at index with function replacement at level or function fi."
734 },
735 "Set Stack": {
736 "prefix": "debug.setstack",
737 "body": [
738 "debug.setstack($0)"
739 ],
740 "description": "Set the stack indice at indice to value value at level or function fi."
741 },
742 "Set Metatable": {
743 "prefix": "debug.setmetatable",
744 "body": [
745 "debug.setmetatable($0)"
746 ],
747 "description": "Set the metatable of o to mt."
748 },
749 "Get Registry": {
750 "prefix": "debug.getregistry",
751 "body": [
752 "debug.getregistry($0)"
753 ],
754 "description": "Returns the Lua registry."
755 },
756 "Get Info": {
757 "prefix": "debug.getinfo",
758 "body": [
759 "debug.getinfo($0)"
760 ],
761 "description": "Returns a table of info pertaining to the lua function fi."
762 },
763 "Get Metatable": {
764 "prefix": "debug.getmetatable",
765 "body": [
766 "debug.getmetatable($0)"
767 ],
768 "description": "Get the metatable of o."
769 },
770 // Drawing Library
771 "Drawing New": {
772 "prefix": "Drawing.new",
773 "body": [
774 "Drawing.new($0)"
775 ],
776 "description": "Creates a new drawing object with type. Returns the object."
777 },
778 // Syn Library
779 "Cache Replace": {
780 "prefix": "syn.cache_replace",
781 "body": [
782 "syn.cache_replace($0)"
783 ],
784 "description": "Replace obj in the instance cache with t_obj."
785 },
786 "Cache Invalidate": {
787 "prefix": "syn.cache_invalidate",
788 "body": [
789 "syn.cache_invalidate($0)"
790 ],
791 "description": "Invalidate obj's cache entry, forcing a re-cache upon the next lookup."
792 },
793 "Set Thread Identity": {
794 "prefix": "syn.set_thread_identity",
795 "body": [
796 "syn.set_thread_identity($0)"
797 ],
798 "description": "Sets the current thread identity."
799 },
800 "Get Thread Identity": {
801 "prefix": "syn.get_thread_identity",
802 "body": [
803 "syn.get_thread_identity($0)"
804 ],
805 "description": "Returns the current thread identity."
806 },
807 "Is Cached": {
808 "prefix": "syn.is_cached",
809 "body": [
810 "syn.is_cached($0)"
811 ],
812 "description": "Returns true if obj is currently cached within the registry."
813 },
814 "Write Clipboard": {
815 "prefix": "syn.write_clipboard",
816 "body": [
817 "syn.write_clipboard($0)"
818 ],
819 "description": "Writes content to the current Windows clipboard."
820 },
821 "Queue On Teleport": {
822 "prefix": "syn.queue_on_teleport",
823 "body": [
824 "syn.queue_on_teleport($0)"
825 ],
826 "description": "Executes code after player is teleported."
827 },
828 "Protect Gui": {
829 "prefix": "syn.protect_gui",
830 "body": [
831 "syn.protect_gui($0)"
832 ],
833 "description": "Protects your GUI from recursive FindFirstChild-style attacks. After you call the function, recursive FFA calls from non-Synapse contexts will skip over your protected instances & all children of such instances."
834 },
835 "Unprotect Gui": {
836 "prefix": "syn.unprotect_gui",
837 "body": [
838 "syn.unprotect_gui($0)"
839 ],
840 "description": "Removes protection from the GUI. Errors if gui isn't already protected."
841 },
842 "Is Beta": {
843 "prefix": "syn.is_beta",
844 "body": [
845 "syn.is_beta($0)"
846 ],
847 "description": "Returns a bool indicating whether the user is using Synapse Beta or not."
848 },
849 "Request": {
850 "prefix": "syn.request",
851 "body": [
852 "syn.request($0)"
853 ],
854 "description": "Sends a http request with parameters in options."
855 },
856 "Secure Call": {
857 "prefix": "syn.secure_call",
858 "body": [
859 "syn.secure_call($0)"
860 ],
861 "description": "Spoofs caller environment and context when calling func with script's environment. You can pass as many arguments args as is required. secure_call returns whatever the called function returns."
862 },
863 "Create Secure Function": {
864 "prefix": "syn.create_secure_function",
865 "body": [
866 "syn.create_secure_function($0)"
867 ],
868 "description": "Protects your code with secure function, making it much more difficult for others to alter or view your code. This function can only be used by users who have been given access."
869 },
870 "Run Secure Function": {
871 "prefix": "syn.run_secure_function",
872 "body": [
873 "syn.run_secure_function($0)"
874 ],
875 "description": "Runs code protected by secure function."
876 },
877 // WebSocket Library
878 "Connecting": {
879 "prefix": "syn.websocket.connect",
880 "body": [
881 "syn.websocket.connect($0)"
882 ],
883 "description": "Connects to the url specified. Errors if the connection fails."
884 },
885 // Roblox Stuff
886 "FindFirstChild": {
887 "prefix": ":FindFirstChild",
888 "body": [
889 ":FindFirstChild($0)",
890 ],
891 "description": "Finds the first child with the name"
892 },
893 "Destroy": {
894 "prefix": ":Destroy",
895 "body": [
896 ":Destroy($0)",
897 ],
898 "description": "Destroys the object"
899 },
900 "Connect": {
901 "prefix": ":Connect",
902 "body": [
903 ":Connect($0)",
904 ],
905 "description": "Connects events"
906 },
907 "Fire": {
908 "prefix": ":Fire",
909 "body": [
910 ":Fire($0)",
911 ],
912 "description": "Fires a bindable event"
913 },
914 "FireServer": {
915 "prefix": ":FireServer",
916 "body": [
917 ":FireServer($0)",
918 ],
919 "description": "Fires a remote event"
920 },
921 "Invoke": {
922 "prefix": ":Invoke",
923 "body": [
924 ":Invoke($0)",
925 ],
926 "description": "Fires a bindable function"
927 },
928 "InvokeServer": {
929 "prefix": ":InvokeServer",
930 "body": [
931 ":InvokeServer($0)",
932 ],
933 "description": "Fires a remote function"
934 },