So I currently use raycasting as a way to change the position of the player.
Here is the script for it:
Summary
function latch()
local origin = HRP.Position
local direction = HRP.CFrame.LookVector * REACH
local result = Workspace:Raycast(origin, direction, rayParams)
if not result then return end
latchingToWall = result.Normal
wait(0.5)
latchingToWall = nil
end
Basically what I want to know is if I am able to RayCast in every direction.
Specifically I want to cast a ray from the LookVector, UpVector, -UpVector
at the same time.
Edit:
Also I am not sure what results this will return, but I am assuming that I would be able to find the first result? Then use that for the remainder of the function