local Bot_hitboxthingi = workspace:WaitForChild("Mobs") local HITBOX_SIZE = Vector3.new(10, 10, 10) local Hitbox_oclortrnas = 0.5 local hitboxcolor1 = Color3.fromRGB(255, 0, 0) local hitbox_mat = Enum.Material.ForceField local function expandHitbox(mob) if not mob:IsA("Model") then return end local root = mob:FindFirstChild("HumanoidRootPart") if not root then return end if root:FindFirstChild("ExpandedHitbox") then return end root.Size = HITBOX_SIZE root.Transparency = Hitbox_oclortrnas root.Color = hitboxcolor1 root.Material = hitbox_mat root.CanCollide = false local tag = Instance.new("BoolValue") tag.Name = "ExpandedHitbox" tag.Parent = root end for _, mob in pairs(Bot_hitboxthingi:GetChildren()) do expandHitbox(mob) end Bot_hitboxthingi.ChildAdded:Connect(function(mob) task.wait(0.1) expandHitbox(mob) end)