Event.Hitbox.Touched:Connect(function(d)if d.Parent:IsA("\084\111\111\108")and d.Parent.Name==ToolRequired2 then if game.ReplicatedStorage.ItemSwitching.Value==true then d.Parent:Destroy()end Event.GreenGear.Transparency=0 Event.Glass.Insert:Play()Event.LocksLeft.Value=Event.LocksLeft.Value-1 script.Disabled=true end end)Event.Hitbox.ClickDetector.MouseClick:Connect(function(d)if d.Backpack:FindFirstChild(ToolRequired2)then if game.ReplicatedStorage.ItemSwitching.Value==true then(d.Backpack:FindFirstChild(ToolRequired2)):Destroy()end Event.GreenGear.Transparency=0 Event.Glass.Insert:Play()Event.LocksLeft.Value=Event.LocksLeft.Value-1 script.Disabled=true end end)
--GreenEgg--

Event.Hitbox.Touched:Connect(function(hit)
	if hit.Parent:IsA("Tool") and hit.Parent.Name == ToolRequired2 then
		if game.ReplicatedStorage.ItemSwitching.Value == true then
			hit.Parent:Destroy()
		end
		Event.GreenGear.Transparency = 0
		Event.Glass.Insert:Play()
		Event.LocksLeft.Value = Event.LocksLeft.Value - 1
		script.Disabled = true
	end
end)

Event.Hitbox.ClickDetector.MouseClick:Connect(function(plr)
	if plr.Backpack:FindFirstChild(ToolRequired2) then
		if game.ReplicatedStorage.ItemSwitching.Value == true then
			plr.Backpack:FindFirstChild(ToolRequired2):Destroy()
		end
		Event.GreenGear.Transparency = 0
		Event.Glass.Insert:Play()
		Event.LocksLeft.Value = Event.LocksLeft.Value - 1
		script.Disabled = true
	end
end)
