loppyface
|
  |
| Joined: 04 Jul 2014 |
| Total Posts: 71 |
|
|
| 07 Jul 2014 08:19 AM |
SUCCESS!
lineone = "These people are admins:" admins = {"loppyface","iLikeToBeCooI"}
print(lineone,admins[1],admins[2])
I know you guys are gonna call me a noob, because I am. |
|
|
| Report Abuse |
|
|
loppyface
|
  |
| Joined: 04 Jul 2014 |
| Total Posts: 71 |
|
|
| 07 Jul 2014 08:21 AM |
Also
lineone = "These people are admins: " admins = {"loppyface","iLikeToBeCooI"}
local h = Instance.new("Hint",workspace) h.Text = ""..lineone ..admins[1] ..admins[2] |
|
|
| Report Abuse |
|
|
WebGL3D
|
  |
| Joined: 04 Sep 2013 |
| Total Posts: 28311 |
|
|
| 07 Jul 2014 08:28 AM |
Tip: table.concat(tab,div) joins the elements of the table in a string, with div in between each element Example: print(table.concat({"Hi","Bob"},", ")) > Hi, Bob
~ 1Topcop ~ Java3D ~ WebGL3D ~ Rabbit3D ~ Data3D |
|
|
| Report Abuse |
|
|
leilahcat
|
  |
| Joined: 08 Feb 2014 |
| Total Posts: 120 |
|
|
| 07 Jul 2014 11:33 AM |
admins = {"loppyface","iLikeToBeCooI"}
local h = Instance.new("Hint",workspace) h.Text = "These are the admins: "..table.concat({admins},",") |
|
|
| Report Abuse |
|
|
| |
|
leilahcat
|
  |
| Joined: 08 Feb 2014 |
| Total Posts: 120 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 21 Aug 2014 08:47 PM |
"table.concat({admins},",")" "{admins}"
... |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 21 Aug 2014 09:44 PM |
ProductFunctions = { [1] = function(plr) --Code end [2] = function(plr) --Code end [3] = function(plr) --Code end }
game:GetService("MarketplaceService").ProcessReceipt = function(receipt) ProductFunctions[receipt.ProductId](receipt.PlayerId) end
Table with the amazing use of calling code for developer products. :P |
|
|
| Report Abuse |
|
|