EggEvent.Hitbox.Touched:Connect(function(I)if I.Parent:IsA("\084\111\111\108")and I.Parent.Name==ToolRequired1 then if game.ReplicatedStorage.ItemSwitching.Value==true then I.Parent:Destroy()end EggEvent.SoundPart.Insert:Play()EggEvent.RedEgg.Transparency=0 EggEvent.LocksLeft.Value=EggEvent.LocksLeft.Value-1 script.Disabled=true EggEvent.Hitbox.RedEggHint:Destroy()end end)EggEvent.Hitbox.ClickDetector.MouseClick:Connect(function(I)if I.Backpack:FindFirstChild(ToolRequired1)then if game.ReplicatedStorage.ItemSwitching.Value==true then(I.Backpack:FindFirstChild(ToolRequired1)):Destroy()end EggEvent.SoundPart.Insert:Play()EggEvent.RedEgg.Transparency=0 EggEvent.LocksLeft.Value=EggEvent.LocksLeft.Value-1 script.Disabled=true EggEvent.Hitbox.RedEggHint:Destroy()end end)
--RedEgg--

EggEvent.Hitbox.Touched:Connect(function(hit)
	if hit.Parent:IsA("Tool") and hit.Parent.Name == ToolRequired1 then
		if game.ReplicatedStorage.ItemSwitching.Value == true then
			hit.Parent:Destroy()
		end
		EggEvent.SoundPart.Insert:Play()
		EggEvent.RedEgg.Transparency = 0
		EggEvent.LocksLeft.Value = EggEvent.LocksLeft.Value - 1
		script.Disabled = true
		EggEvent.Hitbox.RedEggHint:Destroy()
	end
end)

EggEvent.Hitbox.ClickDetector.MouseClick:Connect(function(plr)
	if plr.Backpack:FindFirstChild(ToolRequired1) then
		if game.ReplicatedStorage.ItemSwitching.Value == true then
			plr.Backpack:FindFirstChild(ToolRequired1):Destroy()
		end
		EggEvent.SoundPart.Insert:Play()
		EggEvent.RedEgg.Transparency = 0
		EggEvent.LocksLeft.Value = EggEvent.LocksLeft.Value - 1
		script.Disabled = true
		EggEvent.Hitbox.RedEggHint:Destroy()
	end
end)
