Is it possible to replace:
ExecuteCommand (‘message test’)
through
Local Text = test
ExecuteCommand (‘message’ text ‘’)
Finally a similar functional script?
Is it possible to replace:
ExecuteCommand (‘message test’)
through
Local Text = test
ExecuteCommand (‘message’ text ‘’)
Finally a similar functional script?
I believe you want to change the ExecuteCommand-parameter? Check for concatenating strings:
https://www.lua.org/pil/3.4.html
In this case I believe it could work for you to use the following code:
local Text = 'test' --two typos in your example: 'local' is lowercase and 'test' needs to be a string
ExecuteCommand('message' .. text)