|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 09 May 2017 11:09 PM |
| idk y u would send it like that but use the arguments in the function |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|