I'd like to know if there is any way to ignore multiple things on raycasting ( Such as EVERY PLAYER )
LASERS AND RAYS AND LASERS AND RAYS
This question is fairly easy, I'm guessing you are using :FindPartOnRay()
, but for this situation, We'll have to use FindPartOnRayWithIgnoreList
.
FindPartOnRay
has a "ignore" parameter, but it only has power to provide 1.
FindPartOnRayWithIgnoreList
accepts a table, with all the ignored objects.
something.Event:connect(function(...) local ignore = {everything ignored here} game.Workspace:FindPartOnRayWithIgnoreList(ray, ignore) end)