Advertisement
EmeraldSlash

Explode on Death [ROBLOX]

Nov 16th, 2015
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. -- put into workspace
  2. -- made by EmeraldSlash, 17/11/15
  3.  
  4. function explode(char)
  5.     local e = Instance.new("Explosion")
  6.     e.Position = char.Torso.Position
  7.     e.Parent = game.Workspace
  8. end
  9.  
  10. game.Players.PlayerAdded:connect(function(p)
  11.     p.CharacterAdded:connect(function(char)
  12.         local human = char:WaitForChild("Humanoid")
  13.         human.Died:connect(function()
  14.             explode(char)
  15.         end)
  16.     end)
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement