Question for ExecuteCommand()

Is it possible to replace:
ExecuteCommand (‘message test’)

Local Text = test
ExecuteCommand (‘message’ text ‘’)

Finally a similar functional script?

I believe you want to change the ExecuteCommand-parameter? Check for concatenating strings:

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)