This script is inside a part that is supposed to give you a special hammer, but it wont print the message. (I just use the message to see how far the script gets when fired)
local ClickDetector = script.Parent:WaitForChild("ClickDetector")
local p = game.Players.LocalPlayer
local backpack = p:WaitForChild("Backpack")
local Tool = game.ReplicatedStorage:FindFirstChild("Carbonite Hammer")
script.Parent.MouseClick:connect(function()
print("Working") --This never gets printed
--local Backpack = player:WaitForChild("Backpack")
--local Tool = Storage:FindFirstChild("Carbonite Hammer")
local nTool = Tool:clone()
nTool.parent = backpack
--script:Destroy()
end)
What am i doing wrong?

1 comment
Oki, thanks!