Hello, I have recently been in development of my new place. And I have a very simple kill brick that has this code;
function Kill(Plr)
game.Players:GetPlayerFromCharacter(Plr.Parent).Alive.Value = false
Plr.Parent:BreakJoints()
end
script.Parent.Touched:connect(Kill)
The Alive value and such are irrelevant, they do not seem to be creating the fuss. However, sometimes when jumping on a fairly short brick located on top of this kill brick, it will just kill the player anyway. However I've also had scenarios where you can be a few studs above the kill brick, where a death should be impossible to achieve via the kill brick, yet you can still die. This has given me a thought the the script may not be faulty, just the game is lagging. However, I'm clueless on the matter, does anyone have any words of wisdom for this issue?
I wasn't sure if the tag was correct, but it seemed partially relevant, so I used it.

2 comments
Thank you, I completely forgot I needed a debounce. :P The script now pretty much works as it should, and I now think the only cause of the odd deaths I'm having is due to me touching the block, but just not seeing it. Or jumping on rotated blocks that have been CFrame'd into the kill brick cause minor issues. Either way, it works better now, thanks. :)
No problem. Comment if you need more help on this issue.