In an actual server, sometimes the touched event
doesn't seem to fire when a player holds down the jump button. A basic kill brick would look like this in a server script inside of the kill brick,
script.Parent.Touched:connect(function(part) if not part.Parent:FindFirstChild("Humanoid") then return end script.Parent:BreakJoints() end)
The above works however, when a player jumps on the brick very fast on an online game the brick will not kill the player. Is there any other way of killing a player reliably on an server, a laggy one?
I would like to only use one brick, with on script. However, if this is not possible, feel free to tell me.
Thank you.
yes but the roblox obby template the kill bricks have the insta death no chance heres the script for it
script.Parent.Touched:connect(function(hit) if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.Health = 0 end end)
A quite reliable way, is adding an invisible non-collidable AREA block, above the kill brick, about 0.5 to 3 studs high, and adding the script to that block instead. By doing this, the player can NOT jump away from the block, as they are already INSIDE it!