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: TABLES?!

Previous Thread :: Next Thread 
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
11 Sep 2015 05:28 PM
How would I do this

I want to be able to have a table where say there's a list of things you can search, and data for each of those

how would I make a search function? (besides lots of if statements)


what siggy
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
11 Sep 2015 05:30 PM
qqqq


what siggy
Report Abuse
CaptainGector is not online. CaptainGector
Joined: 02 May 2014
Total Posts: 487
11 Sep 2015 05:31 PM
Start by offering 10k for the script, then give us as many stinkin details as you can possible think up.
Report Abuse
76km is not online. 76km
Joined: 14 Aug 2015
Total Posts: 5455
11 Sep 2015 05:31 PM
You can search anything in a table.
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
11 Sep 2015 05:32 PM
Use string indeces (or a dictionary as they ccall it)
local tab = {["Grocery"] = "nothing"}

http://wiki.roblox.com/index.php?title=Table#Creating_a_dictionary
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
11 Sep 2015 05:33 PM
You want something that searches through a table?

local PizzaToppings = {"ant", "pickle", "goo", "cat"}

for index = 1, #PizzaToppings do

end

This iterates through the terrible

#TABLE means number of items in (table)

#PizzaToppings will be the number of items in PizzaToppings
So that would be 4

So it would iterate from 1, 4
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
11 Sep 2015 05:38 PM
How would I get a textbox's text, take the string, see if that is in the table and if so return a number?


what siggy
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