Death Block wait time

Hello Scripters, I am working on an Obby right now and noticed there is a delay on the death block. Is there any way to stop it?

Script

function onTouch(part)
local humanoid = part.Parent:FindFirstChild(“Humanoid”)
if (humanoid ~= nil) then – if a humanoid exists, then
humanoid.Health = 0 – damage the humanoid
end
end

script.Parent.Touched:connect(onTouch)

Your script is fine. Is that it or is there anything else to it? If you have this script copy + pasted into multiple kill blocks, that might have an impact on your server.

I’m pretty sure he doesn’t want to add a delay, but remove the current delay which I’m not sure why or how it’s there. There’s no wait(), meaning there should be no delay.

Are you sure? The post says something different.

No wait you’re right. I read the post wrong.

There is no delay there.

It’s okay, and yeah. I’m confused aswell as to what they mean with delay, cause I don’t see a delay either. Maybe they mean a respawn delay?

If the respawn delay is the case, go to the Players tab on the explorer and change the RespawnTime property to whatever you’d like.

Yep, that’s exactly what they meant. Now I get what they meant by delay.

this is because the kill script is running on the server, which means the lag will cause delay
one solution would be running the kill scripts locally

Sorry for the confusion, I noticed that it takes a second for the kill to happen meaning you can just jump across repeatedly and not take damage.

Yeah, there are some bugs with BasePart.Touched event.