As said in the name, Im not sure how to do it, so here I am
Are you looking to raycast where the player’s camera is pointing, or the player’s character?
Where the camera is pointed. Probably should have said that
local camera = workspace.CurrentCamera
local raycastParams = RaycastParams.new()
local maxDistance = 1000
workspace:Raycast(camera.CFrame.Position, camera.CFrame.LookVector * maxDistance, raycastParams)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.