Honestly, I was doing well, trying to find new methods for hitboxes. Yet, after a day, both my hitboxes seemed to not work, at all. The general hitbox doesn’t work for some odd reason? Yet, no error is being printed?
I’ll send the script, but if you need even more information/help for insight on the script, I will send a file showing the general/full combat. (Even if it gets stolen it’s not like it was working )
local Hitbox = Meshes.Hitbox:Clone()
Hitbox.Parent = Folder
Hitbox.CFrame = Humrp.CFrame * CFrame.new(0,0,-2)
local Weld = Instance.new("ManualWeld")
Weld.Part0 = Hitbox
Weld.Part1 = Humrp
Weld.C0 = Weld.Part0.CFrame:ToObjectSpace(Weld.Part1.CFrame)
Weld.Parent = Weld.Part0
--[[local pos1 = Hitbox.Position - (Hitbox.Size/2)
local pos2 = Hitbox.Position + (Hitbox.Size/2)
local Re3 = Region3.new(pos1, pos2)]]
local Blacklist = OverlapParams.new()
Blacklist.FilterType = Enum.RaycastFilterType.Blacklist
Blacklist.FilterDescendantsInstances = {Character}
local HumanoidFound = false
--[[Character:GetAttributeChangedSignal("CanAttack"):Connect(function(Active)
Active = true
if Active == true then
Hum.WalkSpeed = 11
print(Hum.WalkSpeed)
Active = false
elseif Active == false then
Hum.WalkSpeed = 13
print(Hum.WalkSpeed)
end
Active = false
end)]]
local HBFinder = workspace:GetPartBoundsInBox(Hitbox.CFrame, Hitbox.Size, Blacklist)
Debris:AddItem(Hitbox, 0.3)
for i, parts in pairs (HBFinder) do
local humanoid = parts.Parent:FindFirstChild("Humanoid")
if humanoid and humanoid.Health > 0 then --The error is proclaimed to be located here
HumanoidFound = true
That’s generally where I’d say an error would exist, but I maybe wrong.
Things to add:
I was working on my vfx, which managed to work
I then tinkered with my guard-break part of the script, and it stopped working in that moment.
(I might revert it to a previous version, could help me)
Downloaded a reverted version, and only one of the characters are actually able to attack? It works in a sense, but not in the sense that I like.
After a combo from the other character that was able to attack, the character was slowly, but surely able to consistently dish out hits. So, the issue is really weird to me now.