Skip to content

Instantly share code, notes, and snippets.

@dbrud60yk
Last active September 5, 2021 13:31
-- Workspace - Part - Script
local lava = script.Parent
local function killPlayer(otherPart)
local partParent = otherPart.Parent
local humanoid = partParent:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end
lava.Touched:Connect(killPlayer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment