Whenever I destroy this key to make it look like you picked it up, I destroy everything, the key, the click detector, and the script. However, when I destroy it, when you click, it pops up a profile thing and says friend soogloez or message him..


script.Parent.ClickDetector.MouseHoverEnter:connect(function(Clicker) 
		if script.Parent:FindFirstChild("SelectionBox") then
			print("googoo")
		else
	
local selection = Instance.new("SelectionBox")
	selection.Color3 = Color3.new(153, 153, 153)
	selection.Parent = Clicker.PlayerGui
	wait()
	selection.Adornee = script.Parent
	wait()
	end
end)

script.Parent.ClickDetector.MouseHoverLeave:connect(function(Clicker)
	if Clicker.PlayerGui:FindFirstChild("SelectionBox") then
		Clicker.PlayerGui.SelectionBox:Destroy()
	wait()
	end
end)

script.Parent.ClickDetector.MouseClick:connect(function(Clicker)
	local key = Clicker.Key
		key.Value = true
		wait()
		script.Parent.Transparency = 1
		wait()
		if Clicker.PlayerGui:FindFirstChild("SelectionBox").Adornee == script.Parent then
		wait()
		else
			script.Parent:Destroy()
		end
end)