I'm making a crafting script. I've gotten to the point where I'm nearly done, but I need to tell the player how much ingredients they need to craft something. I have a table of recipes (shown here),
local CraftingRecp = {
["Resource"] = {5, 15, "ToolName", "Resource1Name", "Resource2Name"},
["Stone Hatchet"] = {5, 5, "Stone Hatchet", "Sticks", "Stones"},
["Stone Pickaxe"] = {3, 7, "Stone Pickaxe", "Sticks", "Stones"},
}
--there are more recipes, i just cut some off.
and I somehow wanna get (on the client) some of the info such as the Ingredient Name and Ingredient Value.
For example, Person types in "Stone Hatchet" and presses on a GUI button that reads "View Recipe". Then the local script gets the recipe's ingredients and amounts and changes the text of some buttons in the gui to that value. (FilteringEnabled is on and i'm using RemoteFunctions to craft already.)
How would I do that?
In my mind it would be something like
script.Parent.MouseButton1Click:connect(function()
game.ReplicatedStorage.GetRecipeInfo:InvokeServer("Stone Hatchet")
end)
Can someone help me out? Thanks!

2 comments
If anyone needs some pictures of the guis and the layout, here they are : https://gyazo.com/9842cc77951bceda1d1fd439223a735d https://gyazo.com/9c28e90532a8ae0b140192b09785eb00 https://gyazo.com/fb6a5b896f9e87786bb8db68b9cd313a https://gyazo.com/b4916bfaadff5b7cad1d97a7108aa1fe
if the links say not found, remove the , from the end of the url