JustPaste
HomeCategoriesAboutDonateContactTerms of UsePrivacy Policy
JustPaste

Free online notepad — write and share instantly

Navigate

  • Home
  • Timeline
  • Categories

Info

  • About
  • Donate
  • Contact

Legal

  • Terms of Use
  • Privacy Policy

© 2026 JustPaste.app. All rights reserved.

Made with ♥ by JustPaste

Untitled Page | JustPaste.app
about 1 month ago1 views
👨‍💻Programming
-- 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)
← Back to timeline