I know this sounds odd but I think raycast detection is too direct. I have a raycast from the entire character (it’s a hitbox welded to the character) and the raycast works and all but I have to be facing the object DIRECTLY. This means if I am facing the part but shift lock and slightly tilt myself, the detection goes off. Is there a way to make raycast go outward and make it more reliable on including tilt? Here’s the raycast code in local script.
local raycastParams = RaycastParams.new()
raycastParams.FilterType = Enum.RaycastFilterType.Whitelist
raycastParams.FilterDescendantsInstances = {workspace.SoccerBall}
local raycastResult = workspace:Raycast(char.HitBox.Position, char.HitBox.CFrame.LookVector*5, raycastParams)
if raycastResult then
local currentPart = raycastResult.Instance
remote:FireServer(currentPart)
end