yo i managed to make a giver but now im trying to make it work on click so do you know why this script doesnt work?
local Giver = script.Parent
local Gear = script.Parent.Handgun
local idk = false
function give(Part)
local hum = Part.Parent:findFirstChild("Humanoid")
if (hum ~= nil) and idk == false then
idk = true
local Location =
game:GetService("Players"):GetPlayerFromCharacter(hum.Parent)
local New = Gear:Clone()
New.Parent = Location.Backpack
Giver.BrickColor = BrickColor.new("Really red")
wait(3)
Giver.BrickColor = BrickColor.new("Medium stone grey")
idk = false
end
end
Giver.ClickDetector.MouseClick:Connect(give)

4 comments
doesnt work
also lmao u just copied those 2 lines from the script
I forgot to edit them
fixed.