Tool won't appear in backpack when clicked


no work

and yes the parent of the click script is my handle i will try it right neow

I ALREADY TRY THIS IT DO NOTHING AND not show nothing in output my script becomes a void when i do script.parent.parent :frowning:

and it still didnt do anythin xd

open your local script, and change script.Parent to script.Parent.Parent

explanation:

script.Parent = Handle
script.Parent.Parent (essentially Handle.Parent) = tool

image
i already did and its not doing anythinf

that’s the SCRIPT

your LOCAL script, open that

Have you tried manually putting the tool on your backpack? Try that. I don’t see a problem with your script and it does print so it’s probably from the tool.

image

its still not doing anytihng. :frowning:

okay, your SERVER script (clicktopickup) should look like this:

   local tool = script.Parent.Parent
   local click = tool.ClickDetector -- move your click detector from the handle into the tool

click.MouseClick:Connect(function(player)
   local clonedTool = tool:Clone()
   tool:Destroy()
   clonedTool.Parent = player.Backpack
end)

and your LOCAL script should look like this:

local UI = script:WaitForChild("DrawGui")
local tool = script.Parent.Parent
local plr = game:GetService("Players").LocalPlayer

tool.Equipped:Connect(function()
   local ScreenGui = UI:Clone()
   ScreenGui.Parent = plr.PlayerGui
end)

tool.Unequipped:Connect(function()
   plr.PlayerGui:FindFirstChild("DrawGui"):Destroy()
end)

only my local script is different i will fix that right neow :hugs: :hugs: :hugs:

1 Like

IT DOESNT WORK IT DOESNT WORK NOTHING IS HAPPENING WHAT IS HAPPENING!!! :sob:

oh my GOD

can i PLEASE see both your scripts, AND your explorer

also put a print("i work!!!") inside the Equipped, Unequipped and MouseClick functions

2 Likes

Can you check if Archivable property of the tool is enabled?

legitimate question

what does that property even do

If it’s disabled you can’t clone the object

1 Like

its enabled xddddddddddddddddddddddddddddddd

OK
image
THIS IS MY EXPLORER AND MY SCRIPTS

THIS IS MY LOCAL
image

AND THIS MY NORMAL
image

too lazy to change the print

none of the prints show up when i click

oh my god bro what is up with this

do you have like multiple tools with the same name or something???

WHY ISN’T THIS WORKING???

i have the tool and evreything under it clones 16 times but EVERYTHING is under script.parent.parent or whatever so it shouldnt really be a name issue. ROBLOX IS BULLY OHHHHHHHHHHHH :sob::sob::sob::sob::sob::sob::sob::sob::sob::sob::sob: