Click to get tool

Just a second, I am trying the script.
I made one myself, that works for me, try this:

local ToolNames = {"ClassicSword"}
local Storage = game:GetService("ServerStorage")



local Part = script.Parent
local ClickDetector = Part:WaitForChild("ClickDetector")

ClickDetector.MouseClick:Connect(function(Player)
	if Player and Player.Character then
		local Backpack = Player:WaitForChild("Backpack")
		for index, place in ipairs(ToolNames) do
			if(not Backpack:FindFirstChild(place)) then
				local Tool = Storage:FindFirstChild(place)
				if Tool then
					Tool:Clone().Parent = Backpack
				end
			end
		end
	end
end)

Change the sword to your tool. I just tested. And also works with multiple tools. I tried it. And the same with more than 1 player. And @Xueify was correct, we chatted in DMs, there’s no need for the character check that I added because you can’t hold a tool and click a click detector.

1 Like

If the script I posted did not work for you,
there is certainly something wrong on your side.

1 Like

No, in general there is no need for it unless he wanted one himself, hence why I stated Based on your script, here’s a new version that is fully functional. at the beginning.

1 Like

It worked! Thank you so much!!

1 Like

Great! Then please mark my answer as a solution. :slight_smile: :+1: