do you guys think there’s a better way to do this?
there’s nothing wrong with it i just want to know if there’s a better way to do this.
-- hitdetection--
local hit = workspace:GetPartBoundsInBox(GivenCFrame,SizeVector3,olp)
local hitsomething = false
for i,v in pairs(hit) do
if v.Parent:FindFirstChild("Humanoid") then
hitsomething = true
break
end
end
--hitdetection--
so basically, im trying to find a humanoid using the table given by the “getpartsinbounds” thing, so that if it does find one it makes the bool into true. but i already have so many “for i loops” that i think im lagging cus of it (idk im probably just imagining it).
thank you! i appreciate it