Didn't really do the title that well, here's an example of what I need help making.
So the StringValue = TextButton.Text which works fine, in my case the value would be "Bacon and Eggs" or something like that and there is a tool in ServerStorage called "Bacon and Eggs".
So in a nutshell what I want is for a TextButton to read the StringValue.Value which is "Bacon and Eggs" and search for "Bacon and Eggs" in ServerStorage then clone the tool into the player's backpack. The reason why I just don't do game.ServerStorage.["Bacon and Eggs"] is because I've set the script to do for each tool in ServerStorage a TextButton will be cloned and have the tool name in ServerStorage. If you need me to explain if you're confused then just ask c:
So, you basically want to clone once the text is on the TextBox? Put this in a ServerSide script, in any place really, like ServerScriptService.
game.Players.PlayerAdded:Connect(function(Player) Player.PlayerGui.Gui.TextBox.FocusLost:Connect(function(text) -- Change Gui and Textbox with the textbox parent for i,v in pairs(game.ServerStorage:GetChildren()) do if v.Name == text then v:Clone().Parent == Player.Backpack end end end) end)