-- Obtendo uma referência à plataforma
local killpart = script.Parent
local function KillPart(part)
-- Obtendo o humanoid do personagem
local humanoid = part.Parent:FindFirstChild("Humanoid")
-- Verifica se realmente existe um humanoid
if humanoid then
humanoid.Health = 0
end
end
-- Chamando a função ao tocar
killpart.Touched:Connect(KillPart)1 views