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: is there any way to retrieve specific table values in FE?

Previous Thread :: Next Thread 
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
09 May 2017 10:38 PM
script

myList = {"egg", "plant"}
game:GetService("ReplicatedStorage").shoppingList:FireServer(myList[i+1],myList[i+2])

(the i's are because I use a for loop to get the specific thing I want, but the principle remains i think. it might not be right, but i think it's conveying what i want to do)

localscript
local function shoppingList()

--what would i reference to get the specific item here
wait(1)

end
banDetails.OnClientEvent:Connect(shoppingList)

how would i retrieve specifically passed table values through to the localscript? is it possible?
Report Abuse
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
09 May 2017 10:40 PM
also ignore the banDetails.OnClientEvent thing

the name is wrong cause i simplified a few things to ask my question, but that part works

if anything just the :Connect(shoppingList) might be what i need to complete the task, but i'm not sure
Report Abuse
Raliuxz is not online. Raliuxz
Joined: 05 Feb 2016
Total Posts: 49
09 May 2017 10:45 PM
You can just send table it self through the event.


r+://639557300
Report Abuse
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
09 May 2017 10:46 PM
but if i only wanted to pass specific values/positions in the table, how would i send those and/or pick those specific ones up to reference
Report Abuse
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
09 May 2017 10:49 PM
like if i was using a for loop to send it, and i wanted [i+1], how would i go about that
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
09 May 2017 11:09 PM
idk y u would send it like that but use the arguments in the function
Report Abuse
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
09 May 2017 11:20 PM
i'm honestly pretty new to FE, so i have no clue how to go about it just yet

thanks for the advice
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