Advertisement
astronaut32

self destruct

Sep 7th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Playerm = game.workspace.PabloRV.Head
  2.  
  3. local Player = game.Workspace.PabloRV
  4.  
  5.  
  6. function HealthChanged(h)
  7.         if Player.Humanoid.Health < 50 then
  8.                 Player["Body Colors"].HeadColor = BrickColor.new("Bright red")
  9.         end
  10. end
  11.  
  12. Player.Humanoid.HealthChanged:connect(HealthChanged) do
  13. for X = 1, math.huge, 0.1 do
  14.         wait()
  15.         game.Workspace.PabloRV.Torso.Neck.C0 = CFrame.new(0,1.5,0) * CFrame.fromAxisAngle(Vector3.new(0,1,0), X) --Change 'YOURNAMEHERE' to your name
  16.         game.Workspace.PabloRV.Torso.Neck.C1 = CFrame.new(0,0,0) --Change 'YOURNAMEHERE' to your name.
  17. game.Workspace.PabloRV.Torso.Neck.C0 = CFrame.new(0,1.5,0) * CFrame.fromAxisAngle(Vector3.new(0,1,0), X) --Change 'YOURNAMEHERE' to your name
  18.         game.Workspace.PabloRV.Torso.Neck.C1 = CFrame.new(0,0,0) --Change 'YOURNAMEHERE' to your name.
  19. game.Workspace.PabloRV.Torso.Neck.C0 = CFrame.new(0,1.5,0) * CFrame.fromAxisAngle(Vector3.new(0,1,0), X) --Change 'YOURNAMEHERE' to your name
  20.         game.Workspace.PabloRV.Torso.Neck.C1 = CFrame.new(0,0,0) --Change 'YOURNAMEHERE' to your name.
  21. game.Workspace.PabloRV.Torso.Neck.C0 = CFrame.new(0,1.5,0) * CFrame.fromAxisAngle(Vector3.new(0,1,0), X) --Change 'YOURNAMEHERE' to your name
  22.         game.Workspace.PabloRV.Torso.Neck.C1 = CFrame.new(0,0,0) --Change 'YOURNAMEHERE' to your name.
  23. game.Workspace.PabloRV.Torso.Neck.C0 = CFrame.new(0,1.5,0) * CFrame.fromAxisAngle(Vector3.new(0,1,0), X) --Change 'YOURNAMEHERE' to your name
  24.         game.Workspace.PabloRV.Torso.Neck.C1 = CFrame.new(0,0,0) --Change 'YOURNAMEHERE' to your name.
  25. end
  26.  
  27. if Player.humanoid.died then do
  28.         Instance.new("Explosion", Playerm.Torso) end
  29. end
  30. function onKeyPress(inputObject, gameProcessedEvent)
  31.         if inputObject.KeyCode == Enum.KeyCode.Q then
  32.                 print("Blowing up now.") --This will appear in the 'Output' view. This is replaceable and unnecessary.
  33. Instance.new("Explosion", Playerm)
  34. end
  35. end
  36. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement