local char = script.Parent
local mobs = workspace.mobs
local hrp = char:WaitForChild("HumanoidRootPart")
local mobchildren = mobs:GetChildren()
local function getmobinrange()
local rangesize = Vector3.new(6, 6, 9)
local range = Instance.new("Part")
range.Anchored = true
range.CanCollide = false
range.CanQuery = true
range.CanTouch = false
range.Size = rangesize
range.CFrame = script.Parent.HumanoidRootPart.CFrame * CFrame.new(Vector3.new(0, 0, -2.5))
range.BrickColor = BrickColor.new("Black")
range.Transparency = 0.75 --hitbox bs remember to change
range.Parent = script.Parent
local weld = Instance.new("WeldConstraint")
weld.Part0 = range
weld.Part1 = hrp
weld.Parent = range
--local params = OverlapParams.new()
--params.FilterType = Enum.RaycastFilterType.Include
--params.FilterDescendantsInstances = {mobchildren}
while true do
wait()
local towercframe = script.Parent.HumanoidRootPart.CFrame * CFrame.new(Vector3.new(0, 0, -2.5))
range.CFrame = towercframe
local somethingtouchedrange = workspace:GetPartBoundsInBox(towercframe, rangesize)
print(somethingtouchedrange)
end
end
getmobinrange()
** You are now Level 7! **