generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: My first table experiment!

Previous Thread :: Next Thread 
loppyface is not online. 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 is not online. 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 is online. 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 is not online. 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
soupsoupsoup3 is not online. soupsoupsoup3
Joined: 31 Jul 2013
Total Posts: 219
07 Jul 2014 11:46 AM
n00b
Report Abuse
leilahcat is not online. leilahcat
Joined: 08 Feb 2014
Total Posts: 120
21 Aug 2014 08:23 PM
what
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
21 Aug 2014 08:47 PM
"table.concat({admins},",")"
"{admins}"

...
Report Abuse
morash is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image