Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- script.Parent.Touched:Connect(function(hit)
- for _, player in ipairs(Players:GetPlayers()) do
- local character = player.Character
- if character then
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- humanoid.Health = 0
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment