Hello, so i have an issue where i made a script that when we click on a tool on the ground it give it into the player backpack, but when the player receive the tool, for some reason it auto equip the tool, so i want to remove that
Can you send the script?
— WORD LIMIT
local tool = script.Parent.Parent
local click = script.Parent.ClickDetector
local function pickup(player)
tool.Parent = game.Workspace[player.Name]
tool.Name = "Copper"
end
click.MouseClick:Connect(pickup)
Try this
local tool = script.Parent.Parent
local click = script.Parent.ClickDetector
local function pickup(player)
tool.Parent = player.Backpack
tool.Name = "Copper"
end
click.MouseClick:Connect(pickup)
Mark as solution if works
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.