Trying to use :FindPartOnRayWithIgnoreList but :FindPartInRegion3WithIgnoreList comes up instead?

local turret = script.Parent
local RayCharles = Ray.new(turret.Position, Vector3.new(0,50,0))

while wait(1) do
	local hit, positon = game.Workspace:FindPartsInRegion3WithIgnoreList()--Won't say anything about FindPartOnRayWithIgnoreList
end

https://prnt.sc/1l43rn4

2 comments

0

FindPartsOnRay is depracated, use the new raycast system instead (https://developer.roblox.com/en-us/api-reference/function/WorldRoot/Raycast)

0

Ok Thanks