My plan is to make a system for when 2 objects with certain names touch eachother,
the smaller one gets “eaten” or destroyed by the big one. So basically it has to detect collision, then check the names, then check the size and then destroy the smaller one.
Just remember to check if what I said is correct! I’m on my phone and can’t verify it on studio but I’m certain that a function like that exists because I use it
You can also do 4 checks simultaneously. Each one checking each side of the circle. This is the only way I know how to know if two frames are intersecting each other
local circle = --Path to circular object
local area = math.pow( circle.AbsoluteSize.X , 2) / 2 * math.pi
game:GetService("RunService").RenderStepped:Connect(function()
--Do something with the area???
end)
I dont know it’s worth making the “hitboxes” accurate to a circle because that would slow down the game considerably more than just having the hitboxes as squares.