So for the past 2 days I’ve been trying to make this raycast hit a character thats inbetween the player’s HumanoidRootPart and their lookVector. Its seems to only hit if its at a fixed distance. How would I go about doing making it hit players in between.
I’m not entirely sure what youre trying to achieve, so i assume you want a ray to fire in the HumanoidRootParts direction.
HumRoot.CFrame.lookVector is already a valid direction if im not mistaken. So you can do this for the ray:
local R = Ray.new(HumRoot.CFrame.p, HumRoot.CFrame.lookVector * 11)