Hi. So I’ve run into an issue. My script that I’ve been using for my hitboxes has a major bug that just… happens. I have no idea why and it shouldn’t be doing this. So basically, the hitboxes script only detects a single player at a time even though I want an AoE hitbox. Here’s what I’m using to detect the player in the hitbox:
for i,v in pairs(workspace:GetPartsInPart(script.Parent)) do
if v.Parent:FindFirstChild("Humanoid") and v.Parent.Name ~= script.Parent.User.Value and v.Parent:FindFirstChild("1Hit"..script.Parent.User.Value) == nil then
local x = Instance.new("IntValue", v.Parent)
x.Name = "1Hit"..script.Parent.User.Value
game.Debris:AddItem(x, 2)
If anyone could help that would be huge. Thank you!
So overlap functions have a max parts counter in them that you can change using the OverlapParams.
But I did read that the default value was no limit. But there is a FilterDescendantsInstances parameter that you definitely should be specifying for performance.