local name = script.Parent.Parent.ItemName
local resources = script.Parent.Parent.Resources
if script.Parent.MouseButton1Down then
function bow()
if name.Text == "Bow" then
print("Bow Given")
elseif name.Text == "Select a Item" then
print("Not Enough Materials")
end
end
bow()
end
This is my script, I'm just testing out a crafting GUI and when I test the game it immedietaly prints Not Enough Materials and when I click the 'Craft' button (which should run the script again) nothing new prints, even though it should since the name.text is Bow.
Any Help is appreciated.

1 comment
Thank you! It worked!