How do I make a raycast ignore parts in a table?

I have been searching every where and I can not figure it out.

So how would I ignore all parts in a table that I have?

This is for a raycast BTW
I have no idea what Im doing lol

1 Like
local params = RaycastParams.new()
     params.IgnoreWater = true
	 params.FilterDescendantsInstances = {workspace.ModelOfPartsToIgnore, workspace.FolderOfPartsToIgnore, workspace.Part} -- place objects you want the raycast to ignore in here
	 params.FilterType = Enum.RaycastFilterType.Blacklist -- choose whitelist or blacklist

workspace:Raycast(Origin, Distance, params) -- params is the 3rd argument (raycastParams)

Raycasting (Filtering)
raycastParams

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.