#hitbox being in the wrong spot

1 messages · Page 1 of 1 (latest)

torpid galleon
#
    
function Hitbox:HitboxCreation(humrp, dmg, size, Pos)
    
    local userChar = humrp.parent
    
    local DebrisService = game:GetService("Debris")
    
    local hitBoxPart = Instance.new('Part')
    hitBoxPart.Name = "hitBoxPart"
    hitBoxPart.Anchored = true
    hitBoxPart.CanCollide = false
    hitBoxPart.Size = size
    hitBoxPart.Position = Pos
    hitBoxPart.Rotation = humrp.Rotation
    hitBoxPart.Parent = workspace
    hitBoxPart.Transparency = 0.5
    hitBoxPart.CastShadow = false
    
    DebrisService:AddItem(hitBoxPart, 4)
            
    local foundParts = workspace:GetPartsInPart(hitBoxPart)
    
    for _, v in foundParts do
        if v.Parent:FindFirstChild("Humanoid") and userChar ~= v.Parent then
            local HL = Instance.new("Highlight")
            HL.Parent = v.Parent
            HL.FillColor = Color3.new(1, 1, 1)
            HL.OutlineTransparency = 1
            DebrisService:AddItem(HL, 0.3)
            v.Parent.Humanoid:TakeDamage(dmg)
            break
        end
    end
    
end

return Hitbox```
undone hazel
#

its cus ur walking

torpid galleon
glad mango
torpid galleon
#

i hate 1 + 1

deep adder
torpid galleon
torpid galleon
deep adder
#

❤️

torpid galleon
deep adder
#

theres prolly some solid equation for it

torpid galleon
deep adder
#

Assemblylinearvelocity

torpid galleon
#

im shit at math barely passing itcrying

deep adder
#

what grade ru in

torpid galleon
torpid galleon
# deep adder what grade ru in

did a work around by making it disable your controls 0.23 seconds before it actually fires the server to make the hitbox im so smart