Need help with Region3

Cant seem to get Region3 working. Ive tried tons of tutorials like AlvinBloxes and others. The issue what happens is it starts to spam and break. Even thought he player is in the region it would print say not in region and it would do both at the same time. I need massive help.

note: Orb is a part

		repeat wait()
			if orb then
				local region = - (orb.Size/2), orb.Position + (orb.Size/2))
				local parts = game.Workspace:FindPartsInRegion3(region, orb)
				for _, part in pairs(parts) do
		until not orb

Not sure if the conditional check for the if orb then is exactly necessary, since the loop would keep looping until there’s not a orb remaining

You’re referencing the part.Parent of the Region3 check, right?

The orb is connected to a remote event. So when its fired it returns the orb, but the checking doesent work since I delete the orb on the server as well.