Raycasting Help Needed

	--raycasting
	local geassRayParams = RaycastParams.new()
	geassRayParams.FilterDescendantsInstances = {plr.Character}
	geassRayParams.FilterType = Enum.RaycastFilterType.Blacklist
	local geassRay = workspace:Raycast(plr.Character.HumanoidRootPart.Position, plr.Character.HumanoidRootPart.Position + Vector3.new(0, 0, 100),geassRayParams

Inside a remote event in a server script in server script service. Plr is just the player parameter from the remote event.

Essentially, what I want to do is just shoot forwards from the humanoidrootpart until it hits something, then check what that something is. But I can’t seem to figure out the proper vector garbage to make it shoot straight out of your chest. Help?

you can maybe try using lookvectors:

local geassRay = workspace:Raycast(plr.Character.HumanoidRootPart.Position, plr.Character.HumanoidRootPart.Position + plr.Character.HumanoidRootPart.CFrame.LookVector * 100,geassRayParams)

Yes, you want to use LookVectors, but you don’t want to add the LookVector to the HRP’s position. plr.Character.HumanoidRootPart.CFrame.LookVector * 100 is all you need to cast from the HRP’s LookVector, the origin argument handles the positioning.