local u=game.Lighting:findFirstChild(tostring(itemname))local q=script.Parent enabled=true function onClick(h)if h.Backpack:findFirstChild(tostring(itemname))==nil and enabled==true then enabled=false q.BrickColor=BrickColor.new("\066\108\097\099\107")local S=u:clone()S.Parent=h.Backpack wait(9)enabled=true q.BrickColor=BrickColor.new("\066\108\097\099\107")end end script.Parent.ClickDetector.MouseClick:connect(onClick)
------------------------------------------------------------------------------------

local item = game.Lighting:findFirstChild(tostring(itemname))
local trigger = script.Parent

enabled = true

function onClick(plyr)
	if plyr.Backpack:findFirstChild(tostring(itemname)) == nil and enabled == true then
		enabled = false

		trigger.BrickColor = BrickColor.new("Black")

		local itemclone = item:clone()
		itemclone.Parent = plyr.Backpack

		wait(9)

		enabled = true
		trigger.BrickColor = BrickColor.new("Black")
	end
end

script.Parent.ClickDetector.MouseClick:connect(onClick)
