Posted 18 November 2013 - 04:35 PM
I am planning on making a Chat based teleport system with miscperipherals chatbox and a command block, so all the user has to say is "Teleport to playername" and it will teleport them to said player
I wish to get the playername they want to teleport out of that string, and need a bit of help doing it
I tried putting it into a table first, IE
So can anyone tell me how to seperate the string by word and insert it into a table?
thanks!
I wish to get the playername they want to teleport out of that string, and need a bit of help doing it
I tried putting it into a table first, IE
a = "teleport to playername"
tab = {}
table.insert(tab,a)
print(tab[1],tab[2],tab[3])
Sadly this only put the entire string on tab[1](which i honestly expected)So can anyone tell me how to seperate the string by word and insert it into a table?
thanks!