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
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
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.
its still not doing anytihng.
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
IT DOESNT WORK IT DOESNT WORK NOTHING IS HAPPENING WHAT IS HAPPENING!!!
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
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
its enabled xddddddddddddddddddddddddddddddd
OK
THIS IS MY EXPLORER AND MY SCRIPTS
THIS IS MY LOCAL
AND THIS MY NORMAL
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