Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1.  
  2. local snap = owner.Name
  3. local plr = game:GetService("Players")[snap]
  4. local char = plr.Character
  5.  
  6. plr.Chatted:connect(function(msg)
  7.  
  8. if msg:sub(1, 5):lower():match('snap ') then
  9.  
  10. for i, v in pairs(game.Players:GetPlayers()) do
  11. if v.Name:lower():match(msg:sub(6):lower()) then
  12.  
  13. snap = v.Name
  14. plr = game.Players[snap]
  15. char = plr.Character
  16.  
  17. char.Humanoid.Health = 0
  18.  
  19. local parts = {
  20. char["Head"],
  21. char["Torso"],
  22. char["Right Arm"],
  23. char["Left Arm"],
  24. char["Right Leg"],
  25. char["Left Leg"]
  26. }
  27.  
  28. char:WaitForChild("Humanoid").Died:Connect(function()
  29.  
  30. local sound = Instance.new("Sound")
  31. sound.Pitch = 1.5
  32. sound.SoundId = "rbxassetid://222163605"
  33. sound.Parent = char["HumanoidRootPart"]
  34. sound.Volume = 3
  35. sound.Looped = false
  36. sound:Play()
  37.  
  38. for i, v in pairs(parts) do wait(.2)
  39. spawn(function()
  40. char["Head"]["face"].Transparency = 1
  41.  
  42. local particle = Instance.new("ParticleEmitter")
  43. particle.EmissionDirection = Enum.NormalId.Right
  44. particle.Acceleration = Vector3.new(15, 25, 0)
  45. particle.Lifetime = NumberRange.new(1)
  46. particle.Texture = "rbxassetid://877346883"
  47. particle.Speed = NumberRange.new(10)
  48. particle.Enabled = false
  49. particle.LightEmission = 5
  50. particle.Drag = 2
  51. particle.Rotation = NumberRange.new(-50, 25)
  52. particle.Color = ColorSequence.new(v.Color, v.Color)
  53. particle.Transparency = NumberSequence.new({
  54. NumberSequenceKeypoint.new(0, 1),
  55. NumberSequenceKeypoint.new(0.5, 0),
  56. NumberSequenceKeypoint.new(1, 1)
  57. })
  58. particle.SpreadAngle = Vector2.new(-25, 25)
  59. particle.RotSpeed = NumberRange.new(-50, 100)
  60. particle.LightInfluence = 1
  61. particle.Size = NumberSequence.new({
  62. NumberSequenceKeypoint.new(0, 0),
  63. NumberSequenceKeypoint.new(1, 0.5)
  64. })
  65. particle.Rate = 1000
  66. particle.Parent = v
  67.  
  68. local particle2 = Instance.new("ParticleEmitter")
  69. particle2.EmissionDirection = Enum.NormalId.Right
  70. particle2.Acceleration = Vector3.new(15, 25, 0)
  71. particle2.Lifetime = NumberRange.new(1)
  72. particle2.Texture = "rbxassetid://877346883"
  73. particle2.Speed = NumberRange.new(10)
  74. particle2.Enabled = false
  75. particle2.LightEmission = 5
  76. particle2.Drag = 2
  77. particle2.Rotation = NumberRange.new(-50, 25)
  78. particle2.Color = ColorSequence.new(v.Color, v.Color)
  79. particle2.Transparency = NumberSequence.new({
  80. NumberSequenceKeypoint.new(0, 1),
  81. NumberSequenceKeypoint.new(0.5, 0),
  82. NumberSequenceKeypoint.new(1, 1)
  83. })
  84. particle2.SpreadAngle = Vector2.new(-25, 25)
  85. particle2.RotSpeed = NumberRange.new(-50, 100)
  86. particle2.LightInfluence = 1
  87. particle2.Size = NumberSequence.new({
  88. NumberSequenceKeypoint.new(0, 0.125),
  89. NumberSequenceKeypoint.new(1, 0.125)
  90. })
  91. particle2.Rate = 1000
  92. particle2.Parent = v
  93.  
  94. local particle3 = Instance.new("ParticleEmitter")
  95. particle3.EmissionDirection = Enum.NormalId.Right
  96. particle3.Acceleration = Vector3.new(15, 25, 0)
  97. particle3.Lifetime = NumberRange.new(1)
  98. particle3.Speed = NumberRange.new(10)
  99. particle3.Color = ColorSequence.new(v.Color, v.Color)
  100. particle3.Texture = "rbxassetid://363275192"
  101. particle3.LightEmission = 1
  102. particle3.Transparency = NumberSequence.new({
  103. NumberSequenceKeypoint.new(0, 1),
  104. NumberSequenceKeypoint.new(0.5, 0),
  105. NumberSequenceKeypoint.new(1, 1)
  106. })
  107. particle3.Rate = 50
  108. particle3.LightInfluence = 1
  109. particle3.Size = NumberSequence.new({
  110. NumberSequenceKeypoint.new(0, 5),
  111. NumberSequenceKeypoint.new(0.5, 0),
  112. NumberSequenceKeypoint.new(1, 5)
  113. })
  114. particle3.Drag = 2
  115. particle3.Parent = v
  116.  
  117. for i = 1, 10 do
  118.  
  119. v.Transparency = i / 10
  120.  
  121. wait()
  122.  
  123. particle.Enabled = true
  124.  
  125. particle2.Enabled = true
  126.  
  127. particle3.Enabled = true
  128.  
  129. end
  130.  
  131. particle.Enabled = false
  132.  
  133. particle2.Enabled = false
  134.  
  135. particle3.Enabled = false
  136. end)
  137. end
  138.  
  139. end)
  140.  
  141. end
  142. end
  143.  
  144. end
  145.  
  146. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement