I was making a weapon that you can only get if you click it, not touch it
The ScrewDriver is the Main Mesh Inside the ScrewDriver (Mesh) There is a Script,ClickDetector,ScrewDriver The other screwdriver that is the child of the screwdriver is the mainweapon, a tool
local weapon = script.Parent
local Click = script.Parent.ClickDetector
local mainweapon = script.Parent.ScrewDriver
local player = game.Players.LocalPlayer
local playerlocation = game.Players:FindFirstChild(""..player.Name)
Click.MouseClick:Connect(function()
mainweapon.Parent = playerlocation
end)
But nothin is working, How can i fix this? please help
i also tried
local weapon = script.Parent
local Click = script.Parent.ClickDetector
local mainweapon = script.Parent.ScrewDriver
local player = game.Players.LocalPlayer
Click.MouseClick:Connect(function()
mainweapon.Parent = player.Name.Backpack
end)
Please Help, Advanced Thanks!

3 comments
Are you getting any errors in your Output?
the tool is a tool and has a handle right
Ill edt it