Raycast doesn't return what it should

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    The stop the Raycast from returning nil when it hits something

  2. What is the issue? Include screenshots / videos if possible!

When I raycast using the command line it’s fine, but when the script does it, it returns nil

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

Repeating the raycast 8 times until it doesn’t get nil

1 Like
  1. When you activated the ProximityPrompt, is your hitbox not facing towards the climbable wall?

  2. Depending on when and/or how you are getting your params variable in your script, calling GetTagged may not include all the parts because it is either still loading or outside the range of streaming. Consider listening for newly tagged Instances and update accordingly, or update your filter just right before you raycast.

1 Like
  1. The hitbox is a part welded to the humanoidrootpart, it faces the same direction as the character
  2. This worked, thank you very much!
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.