Hello!
I’m having an issue getting the position in front of the player for a raycast. I’m trying to get the position a few studs away from the player’s HumanoidRootPart but the RaycastDirection is wrong and I’m unsure how to go about fixing it.
Expected Result



Actual Result
local HumanoidRootPart = Character.HumanoidRootPart
local Humanoid = Character.Humanoid
local RaycastParameters = RaycastParams.new()
RaycastParameters.FilterDescendantsInstances = {Character}
RaycastParameters.FilterType = Enum.RaycastFilterType.Blacklist
local RaycastOrigin = HumanoidRootPart.CFrame
local RaycastDirection = HumanoidRootPart.CFrame * CFrame.new(Vector3.new(0, 0, 5))
local Raycast = Workspace:Raycast(RaycastOrigin.Position, RaycastDirection.Position, RaycastParameters)