Categories > Coding > Lua >

How would I get the constants via a script variable

Posts: 20

Threads: 8

Joined: Nov, 2020

Reputation: 0

Posted

So if I have a script that was like this: local script = [[

]]

 

how would I make it so it makes a table of all the constants that are in the script for the "script" variable? If you are willing to help me on discord, add me @Jahman808#3721

the constants need to be in order in the table as if your got the constants from the scripts instructions

  • 0

Posts: 870

Threads: 34

Joined: Aug, 2020

Reputation: 6

Replied

are you talking about tables? or arrays in c# but this is lua so I guess it's tables

  • 0

0x90

dingleberry#2286

vip

Posts: 249

Threads: 26

Joined: Dec, 2020

Reputation: 28

Replied

The constants are the table values themselves, you just iterate through it lol. 

table.foreach(script, print)

 

  • 0

Posts: 20

Threads: 8

Joined: Nov, 2020

Reputation: 0

Replied

@0x90 I'm trying to make a system like this and it is inspired by open gamer tips cuz he made it and I saw it and I was like "I could use that system to make my obfuscator" and this is what I'm trying to make https://ibb.co/BKvg92b

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )