Last active
September 5, 2021 13:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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