local Brick = game.Workspace.KillBlock
local function PlayerTouched(Part)
local Parent = Part.Parent
if game.Players:GetPlayerFromCharacter(Parent) then
Parent.Humanoid.Health = 0
end
end
Brick.Touched:connect(PlayerTouched)
So I took a script from a separate question lower in the feed, but would this script still work, since I replaced the part in question with a part called "KillBlock"? if it wouldn't still work, what do I need to change to get it to work?

3 comments
Yes, this would still work.
Also, this is an XY question, so please refrain from asking about solution Y rather than problem X in the future.
Any errors?