Is their a way to ignore the character object in a hit function

I’m trying to make a script that lets the player hop over an object, I’m wondering why it wasn’t working, then I figured out that the character’s body parts were interfering with the process.

script:

function rayTouched(hit)
	print(hit)
	if hit.Name == "JumpPart" then
		root.AssemblyLinearVelocity *= Vector3.new(0, 10, 0)
		print("hopped")
	end
end

You can just do

local char = player.Character

if hit.parent ~= char then

  (Your script here)

end