Interpreter (Daigoro)

Hi, i released an interpreter that runs terms written as Strings.
Attach the User Interpreter package to the User template and run

user:Analyze(aString,script)

to use it. An example would be

user:Analyze(“print(‘hi’)”,self)

or

user:Analyze(“self:GetEntity():Launch(Vector.New(0,0,1000))”,playerScript)
(playerScript should be a reference to a script attached to a player)

/

user:Analyze(“self:GetEntity():GetPlayer():Launch(Vector.New(0,0,1000))”,self)

/

user:Analyze(“self:GetEntity():GetPlayer().speedMultiplier=5”,self)
/

user:Analyze(“GetWorld().startTime=1”,self)

.
the script reference is needed to substitute any occurance of “self” in your string trough it.

Don’t use space in your strings. Space is used in the string to divide terms!

Example:

user:Analyze(“GetWorld().startTime=1 print(self:GetEntity():GetUsername())”,self)

showing the string can contain more terms divided by spaces.

1 Like