Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.Touched:Connect(function(Hit)
- if Hit.Parent:FindFirstChild("Humanoid") then
- local character = Hit.Parent
- local player = game.Players:GetPlayerFromCharacter(character)
- if player.Character then
- player.Character.Humanoid.Health = 0
- end
- end
- end)
Advertisement
Advertisement