Why doesn't this script give the player that is in front of me?

try this

                    if Raycast and Raycast.Instance:IsDescendantOf(v.Character) then
                        if DistanceCheck(TargetHRP, PlayerHrp, player, v) then
                            Create_ProximityPrompt(v)
                        end