Anti-noclip working against scaling character

Hello!
I’ve been working on a game for a while and I stumbled across an problem. I have first the part, that when touched, scales the character down (to 0.25) and the second, which scales to 1.

The issue is, when I try to walk past any of these, the anti-noclip kind of detects it as a regular part with collision and starts to push me from the part.

The anti-noclip part from my anticheat script

while true do
		local hrp = char:WaitForChild("HumanoidRootPart")
		local firstPos = hrp.Position
		task.wait(0.15)
		local secPos = hrp.Position

		local rayParams = RaycastParams.new()
		rayParams.FilterType = Enum.RaycastFilterType.Exclude
		rayParams.FilterDescendantsInstances = {char}

		local rayResult = workspace:Raycast(firstPos, (secPos - firstPos), rayParams)

		if rayResult and rayResult.Instance.CanCollide == true then
			local params = OverlapParams.new()
			params.FilterType = Enum.RaycastFilterType.Exclude
			params.FilterDescendantsInstances = {}
			local partsResult = workspace:GetPartsInPart(rayResult.Instance, params)

			if partsResult[1] then
				hrp.CFrame = CFrame.new(firstPos)
			end
		end
	end

Any help is appreciated!

This happens because player’s primary part position is close to ground/wall and when scaling is set to (.25) player gets pushed into ground/wall, meaning player clips into wall/ground.
and then physics push player from the ground/wall, making him not clip into the ground/wall anymore.

Oh, apparently anti-noclip is not actually causing the problem. I just checked it.

And also I browsed the DevForum and I found out that the scaling character actually “teleports” the player when they touch the part on the server-side script.

Also the information you have provided to me is pretty useful, thanks!