Hi everyone! I am a developer currently programming a placement system. However, I have run into some issues. When I place the object near another object, it marks it as hit however, when I hover over the object, it does not recognize it was hit. I know I am using a depreicated version of raycasting. lol
Thanks for any help!
local castRay = Ray.new(MouseTarget.Position, MouseTarget.CFrame.LookVector*100)
local ignoreList = {MouseTarget, SpawnArea, character, Baseplate,MouseTarget.BasePart}
local hit, position = workspace:FindPartOnRayWithIgnoreList(castRay, ignoreList)
MouseTarget is the object I want the ray to originate out of.