Why does my raycast not working?

why does it not work

    local Hmrp_Position = HumanoidRootPart.Position
	local Hmrp_EndPosition = HumanoidRootPart.Position.CFrame.Position.lookVector * 10
	print(Hmrp_EndPosition)

Could you paste the code in here so I could edit it please? Also, FindPartOnRayWithIgnoreList and lookVector are deprecated. You should use workspace:Raycast() and LookVector with a capital L.

where is your ray cast are you using

 -- Ray.new or workspace:RayCast

Also use these backpacks to put your line of code : ```

I am pretty sure it is because u did not put 2 values in on line 32, u used a comma which means it needs 2 local values. ( and other things )

try doing player.Character.HumanoidRootPart.

I did paste the skript now you can see it

My first thought is to change MOUSE.hit.p to MOUSE.hit.Position. .p has been deprecated and now is .Position