Print(div3(tau)) - whatever the heck 6.28 is divided by 3. In the script: require()() - notice I call the function returned immediately. You can create a table of variables, and automatically add all of the variables to your script with one line of code. If you wanted to have some fun, you can do this too. You can also give it a function instead of a number to check or assign variables used in that function, almost useless now I think but it used to have a purpose with loadstring. First level is the current function, second is the function calling this function, third is the function calling that one, etc. By adding the ‘2’ as a parameter, it goes to the second level. TypeScript compatibility) as a fork from sentanoss roblox-js module. getfenv returns the table that is the function environment, basically it can retrieve all variables that are not local variables as a table. Roblox is a popular online gaming and game creation platform that offers. In a function inside of a ModuleScript, you can use this to find the ‘script.Parent’ of the script that calls the function. Always avoid using getfenv() and setfenv(), they will mess up a lot of optimizations and improvements that Roblox has made over the years. Don't do this anymore, it's bad practice.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |