At the moment, my hitbox finally works after all this time, I decided to scrap the RotatedRegion3 module for a small amount of time and build my knowledge on regular Region3 allowing me to make an actual working hitbox, but there were a few issues. When I did a hit, I’d instead only get damaged, and at death the issue would be AnimationProvider would bug out.
At the same time the combat would play even you are dead.
These scripts are inside the starterpack and once I respawn it’ll just abruptly not work no matter how much I click. I have a similar issue with my fireball where once you respawn the same thing will happen, but the function will still work.
if Action == ("Combat") then
local HitBox = HiBo:Clone()
HitBox.CFrame = Character.PrimaryPart.CFrame * CFrame.new(0, 0, -3)
local Welds = Instance.new("WeldConstraint", Character.PrimaryPart)
Welds.Part0 = HitBox
Welds.Part1 = Character.PrimaryPart
HitBox.Parent = workspace
local pos1 = HitBox.Position - (HitBox.Size/2)
local pos2 = HitBox.Position + (HitBox.Size/2)
local Re3 = Region3.new(pos1, pos2)
local HBFinder = workspace:FindPartsInRegion3(Re3, HitBox, 20)
for i, parts in pairs (HBFinder) do
if parts.Parent:FindFirstChild("Humanoid") and parts.Parent ~= Character then
elseif parts.Parent == nil then
if HBFinder.Name == Character.HumanoidRootPart and HBFinder.Name ~= Character then
elseif HBFinder.Name == HumanoidRootPart or HRP then
for i,v in next,Player.Character:GetDescendants() do
if v:IsA('Part') and v.Name =='CombatR3' and Player.Character.Humanoid.Health > 0 then
local Combatr33 = v.Name["CombatR3"]:Clone()
Combatr33.Parent = workspace
Although it does absolutely nothing for some odd reason. Not even delete the script if I’m dead.