#Why is there a mini lag when you get killed by a killingBlock?

1 messages · Page 1 of 1 (latest)

glossy spade
#

Basic Ahh Script for killing when touch.

local killingBricks = script.Parent:GetChildren()

for i, killingBrick in ipairs(killingBricks) do
    if killingBrick:IsA("BasePart") then
        killingBrick.Touched:Connect(function(basePartTouched)
            local humanoid = basePartTouched.Parent:FindFirstChild("Humanoid")
            if humanoid then
                humanoid.Health = 0 
            end
        end)
    end
end

My question is, why when the character dies (humanoid.Health = 0) there's a little lag first?
When I lower its hp to 1, it doesn't lag, it only happens when it dies.

sweet vortex
glossy spade
#

I know, It doesn't have to be with the code

#

But this also happens on other typical obbies

sweet vortex
#

But then again I could also be wrong

glossy spade
#

I don't think I'm the problem

glossy spade
#

alr so

#

avatar freezes when dying

#

I don't know why

#

it isn't a lag

glossy spade
#

It was because of a Roblox bug that had been happening to everyon