petar66
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 44 |
|
|
| 25 Feb 2017 01:56 PM |
I have this multiline string wrapped to a variable, lets call this variable FIRE, and have it nested in the two tables logServer and then Catches
logServer = { Catches = { FIRE = ":FireServer" } }
function logServer.Catch(input) for catch,flag in pairs(logServer.Catches) do if input:match(flag) then print(logServer.Catches[catch]) end end end
logServer.Catch( [[ Object = game:GetService("ReplicatedStorage") Object:WaitForChild("Event[SIG]:[RESPAWN]"):FireServer("UX84",2,3,8) ]])
If ran, this code will output ":FireServer", this being the value of FIRE, my question is how can I make the code output the whole line?, that being; "Object:WaitForChild("Event[SIG]:[RESPAWN]"):FireServer("UX84",2,3,8)" |
|
|
| Report Abuse |
|
|
petar66
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 44 |
|
| |
|
petar66
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 44 |
|
| |
|
petar66
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 44 |
|
| |
|
| |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 25 Feb 2017 03:21 PM |
| table.concat or ### = thing..thing..thing..thing etc |
|
|
| Report Abuse |
|
|