Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Kills = script.Parent:GetChildren()
- for i, v in pairs(Kills) do
- if v:IsA("Part") then
- v.Touched:Connect(function(hit)
- local humanoid = hit.Parent:FindFirstChild("Humanoid")
- if not humanoid then return end
- humanoid.Health = 0
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement