Advertisement
BNutty07

Simple Boom

Nov 13th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Script0 = Instance.new("Script")
  20. Script1 = Instance.new("Script")
  21. Script2 = Instance.new("Script")
  22. Sound3 = Instance.new("Sound")
  23. Sound4 = Instance.new("Sound")
  24. Sound5 = Instance.new("Sound")
  25. Sound6 = Instance.new("Sound")
  26. Sound7 = Instance.new("Sound")
  27. Sound8 = Instance.new("Sound")
  28. Sound9 = Instance.new("Sound")
  29. Sound10 = Instance.new("Sound")
  30. Sound11 = Instance.new("Sound")
  31. Part12 = Instance.new("Part")
  32. Decal13 = Instance.new("Decal")
  33. Decal14 = Instance.new("Decal")
  34. Decal15 = Instance.new("Decal")
  35. Decal16 = Instance.new("Decal")
  36. Decal17 = Instance.new("Decal")
  37. Decal18 = Instance.new("Decal")
  38. ParticleEmitter19 = Instance.new("ParticleEmitter")
  39. Script20 = Instance.new("Script")
  40. Script0.Name = "BloodLoader"
  41. Script0.Parent = mas
  42. table.insert(cors,sandbox(Script0,function()
  43. print("Draco_Studios' Blood Script has been loaded!")
  44. if script.Parent:FindFirstChild("DeleteMe") then
  45. script.Parent.DeleteMe:Destroy()
  46. end
  47. script.Parent=game.ServerScriptService
  48. game.Players.PlayerAdded:connect(function(p)
  49. p.CharacterAdded:connect(function(c)
  50. script.BloodPool:Clone().Parent=c
  51. c.Humanoid.Died:connect(function()
  52. wait(6)
  53. script.BloodPool:Clone().Parent=c
  54. end)
  55. end)
  56. end)
  57. end))
  58. Script1.Name = "BloodPool"
  59. Script1.Parent = Script0
  60. table.insert(cors,sandbox(Script1,function()
  61. local Char=script.Parent
  62. local Hum=Char:WaitForChild("Humanoid")
  63. local Tor=Char:WaitForChild("Torso")
  64. local M=math.random
  65. local R=math.rad
  66. local rates={0.05,0.075,0.1,0.15}
  67.  
  68. local smooth=function(P)
  69. local SM=Enum.SurfaceType.SmoothNoOutlines
  70. P.TopSurface=SM
  71. P.BottomSurface=SM
  72. P.RightSurface=SM
  73. P.LeftSurface=SM
  74. P.FrontSurface=SM
  75. P.BackSurface=SM
  76. end
  77.  
  78. local function BloodPool(Part,Size)
  79. local Pool=Instance.new("Part",game.Workspace)
  80. Pool.TopSurface=0
  81. Pool.CanCollide=false
  82. Pool.BrickColor=BrickColor.new("Crimson")
  83. Instance.new("CylinderMesh",Pool)
  84. Pool.Anchored=true
  85. Pool.Name="BloodPoolPart"
  86. smooth(Pool)
  87. Pool.FormFactor=Enum.FormFactor.Custom
  88. Pool.Size=Size
  89. local c=Part.CFrame*CFrame.new(M(-3.01,3.01),-2.9,M(-3.01,3.01))
  90. coroutine.resume(coroutine.create(function()
  91. local rate=rates[M(1,#rates)]
  92. game.Debris:AddItem(Pool,15)
  93. for i=1,M(25,70) do
  94. wait()
  95. Pool.CFrame=c
  96. Pool.Size=Pool.Size+Vector3.new(rate,0,rate)
  97. end
  98. wait(5)
  99. Pool:Destroy()
  100. end))
  101. end
  102.  
  103. local function BloodDrops(Size,Area)
  104. local Blood=Instance.new("Part",game.Workspace)
  105. Blood.BrickColor=BrickColor.new("Crimson")
  106. Blood.TopSurface=0
  107. Blood.CanCollide=false
  108. Blood.Anchored=false
  109. Blood.FormFactor=Enum.FormFactor.Custom
  110. Blood.Size=Size
  111. Blood.CFrame=Area*CFrame.new(M(-1.00,1.00),M(-1.00,1.00),M(-1.00,1.00))
  112. return Blood
  113. end
  114.  
  115.  
  116. local Heath=Hum.Health
  117.  
  118. Hum.Changed:connect(function()
  119. if Hum.Health<Heath then
  120. Heath=Hum.Health
  121. for i=1, math.random(4,10)do
  122. local Size=Vector3.new(M(-0.25,0.25),.2,M(-.25,.25))
  123. local Blood=BloodDrops(Size,Tor.CFrame)
  124. local Stopper=false
  125. local Size2=Vector3.new(M(-0.25,0.25),.2,M(-.25,.25))
  126. BloodPool(Tor,Size2)
  127. end
  128. end
  129. end)
  130. end))
  131. Script2.Name = "DiedScript"
  132. Script2.Parent = mas
  133. table.insert(cors,sandbox(Script2,function()
  134. function Died(p)
  135. wait(.001)
  136. local tracks=script:GetChildren()
  137. local rn=math.random(1,#tracks)
  138. local track=tracks[rn]
  139. if track~=nil then
  140. track:play()
  141. wait(5)
  142. track:pause()
  143. end
  144. end
  145.  
  146. function Hum(p)
  147. hum = p:findFirstChild("Humanoid")
  148. if hum ~= nil then
  149. hum.Died:connect(function(hum) Died(p) end)
  150. end
  151. end
  152.  
  153. function Enter(p)
  154. p.CharacterAdded:connect(Hum)
  155. end
  156. game.Players.PlayerAdded:connect(Enter)
  157.  
  158. end))
  159. Sound3.Parent = Script2
  160. Sound3.SoundId = "rbxassetid://232921590"
  161. Sound4.Parent = Script2
  162. Sound4.SoundId = "rbxassetid://232921580"
  163. Sound5.Parent = Script2
  164. Sound5.SoundId = "rbxassetid://232921573"
  165. Sound6.Parent = Script2
  166. Sound6.SoundId = "rbxassetid://169907033"
  167. Sound7.Parent = Script2
  168. Sound7.SoundId = "rbxassetid://167094166"
  169. Sound8.Parent = Script2
  170. Sound8.SoundId = "rbxassetid://166221396"
  171. Sound9.Parent = Script2
  172. Sound9.SoundId = "rbxassetid://166221367"
  173. Sound10.Parent = Script2
  174. Sound10.SoundId = "rbxassetid://166221318"
  175. Sound11.Parent = Script2
  176. Sound11.SoundId = "rbxassetid://166221285"
  177. Part12.Name = "Boom Brick"
  178. Part12.Parent = mas
  179. Part12.BrickColor = BrickColor.new("Really red")
  180. Part12.Anchored = true
  181. Part12.Size = Vector3.new(20, 12, 12)
  182. Part12.CFrame = CFrame.new(-9, 8, -14, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  183. Part12.Color = Color3.new(1, 0, 0)
  184. Part12.Position = Vector3.new(-9, 8, -14)
  185. Part12.Color = Color3.new(1, 0, 0)
  186. Decal13.Parent = Part12
  187. Decal13.Texture = "http://www.roblox.com/asset/?id=1135924277"
  188. Decal13.Face = Enum.NormalId.Back
  189. Decal14.Parent = Part12
  190. Decal14.Texture = "http://www.roblox.com/asset/?id=1135924277"
  191. Decal14.Face = Enum.NormalId.Bottom
  192. Decal15.Parent = Part12
  193. Decal15.Texture = "http://www.roblox.com/asset/?id=1135924277"
  194. Decal16.Parent = Part12
  195. Decal16.Texture = "http://www.roblox.com/asset/?id=1135924277"
  196. Decal16.Face = Enum.NormalId.Left
  197. Decal17.Parent = Part12
  198. Decal17.Texture = "http://www.roblox.com/asset/?id=1135924277"
  199. Decal17.Face = Enum.NormalId.Right
  200. Decal18.Parent = Part12
  201. Decal18.Texture = "http://www.roblox.com/asset/?id=1135924277"
  202. Decal18.Face = Enum.NormalId.Top
  203. ParticleEmitter19.Parent = Part12
  204. ParticleEmitter19.Color = ColorSequence.new(Color3.new(1, 0.470588, 0.164706),Color3.new(1, 0.470588, 0.164706))
  205. ParticleEmitter19.Color = ColorSequence.new(Color3.new(1, 0.470588, 0.164706),Color3.new(1, 0.470588, 0.164706))
  206. Script20.Parent = Part12
  207. table.insert(cors,sandbox(Script20,function()
  208. function onTouched(hit)
  209. local ex = Instance.new("Explosion")
  210. ex.Parent = game.Workspace
  211. ex.Position = hit.Position
  212. ex.BlastPressure = 150000
  213. ex.BlastRadius = 10
  214. end
  215. script.Parent.Touched:connect(onTouched)
  216.  
  217.  
  218.  
  219. end))
  220. for i,v in pairs(mas:GetChildren()) do
  221. v.Parent = workspace
  222. pcall(function() v:MakeJoints() end)
  223. end
  224. mas:Destroy()
  225. for i,v in pairs(cors) do
  226. spawn(function()
  227. pcall(v)
  228. end)
  229. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement