Kaemi

Untitled

May 29th, 2016
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 36.10 KB | None | 0 0
  1. -- Black Dragon --
  2. -- Local Script --
  3. -- Its cool, breathes fire and all dat --
  4. --Leaked by KotixPL
  5.  
  6. pcall(function ()
  7. for i,v in pairs(script:GetChildren()) do
  8. if v:IsA('StringValue') then
  9. v.Value = ''
  10. v:Destroy()
  11. end
  12. end
  13. end)
  14. script.Parent = nil
  15. local _ = game.Players.LocalPlayer
  16. local dawn = false
  17. local up = true
  18. local fromup = 1
  19. local fire = false
  20. local ice = false
  21. local heal = false
  22. local col1 = BrickColor.new("Really black")
  23. local col2 = BrickColor.new("Institutional white")
  24. repeat wait() until _ ~= nil
  25. local mouse = _:GetMouse()
  26. local BlackMagic = Instance.new("Model", workspace)
  27. BlackMagic.Name = ""
  28. length = 3
  29. away = 2
  30. gap = 0
  31. segs = 40
  32. distance = length/3
  33. speed = 1
  34. Wave = 0
  35. part1 = Instance.new("Part")
  36. part1.BrickColor = BrickColor.Green()
  37. part1.Transparency = 0
  38. part1.Locked = true
  39. part1.Size = Vector3.new(1,1,1)
  40. part1.Anchored = true
  41. part1.CanCollide = true
  42. part1.Parent = nil
  43. part1.Name = "Part1"
  44. part1.TopSurface = "Smooth"
  45. part1.BottomSurface = "Smooth"
  46. local Tail = {}
  47. local Tail2 = {}
  48. local part0 = Instance.new("Part")
  49. part0.BrickColor = col1
  50. part0.TopSurface = 0
  51. part0.BottomSurface = 0
  52. part0.Locked = true
  53. part0.FormFactor = "Symmetric"
  54. part0.Size = Vector3.new(3,3,4)
  55. part0.Anchored = true
  56. part0.Shape = 1
  57. part0.CanCollide = true
  58. part0.Parent = nil
  59. part0.Name = "Part0"
  60. local A = Instance.new("SpecialMesh")
  61. A.MeshType = "Brick"
  62. A.Parent = part0
  63. A.Name = "Mesh"
  64. A.Scale = Vector3.new(1.1, 1.1, 1.1)
  65. local part1 = Instance.new("Part")
  66. part1.BrickColor = col2
  67. part1.TopSurface = 0
  68. part1.BottomSurface = 0
  69. part1.Locked = true
  70. part1.FormFactor = "Symmetric"
  71. part1.Size = Vector3.new(1,2,1)
  72. part1.Anchored = true
  73. part1.Shape = 1
  74. part1.CanCollide = true
  75. part1.Parent = nil
  76. part1.Name = "Part1"
  77. local A2 = Instance.new("SpecialMesh")
  78. A2.MeshId = "http://www.roblox.com/asset/?id=19326912"
  79. A2.Parent = part1
  80. A2.Scale = Vector3.new(3,1,1)
  81. A2.Name = "Mesh"
  82. for p = 1,segs do
  83. Tail[p] = part0:Clone()
  84. Tail[p].Parent = nil
  85. Tail[p].Name = "Part"..p
  86. Tail[p].CFrame = CFrame.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  87. Tail[p].Mesh.Scale = Vector3.new(1.1 - (p/1000), 1.4 - (p/1000), 1.1 - (p/1000))
  88. Tail2[p] = part1:Clone()
  89. Tail2[p].Size = Vector3.new(1,2,1)
  90. Tail2[p].BrickColor = col2
  91. Tail2[p].Parent = nil
  92. Tail2[p].Name = "Limb"..p
  93. Tail2[p].CFrame = CFrame.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  94. end
  95. for z=26,28 do
  96. Tail[z].Mesh.Scale = Tail[z].Mesh.Scale - Vector3.new(0.1,0.1,0.1)
  97. Tail2[z].Mesh.Scale = Tail2[z].Mesh.Scale - Vector3.new(0.5,0.1,0.1)
  98. end
  99. for z=29,31 do
  100. Tail[z].Mesh.Scale = Tail[z].Mesh.Scale - Vector3.new(0.2,0.2,0.2)
  101. Tail2[z].Mesh.Scale = Tail2[z].Mesh.Scale - Vector3.new(1,0.2,0.2)
  102. end
  103. for z=32,34 do
  104. Tail[z].Mesh.Scale = Tail[z].Mesh.Scale - Vector3.new(0.3,0.3,0.3)
  105. Tail2[z].Mesh.Scale = Tail2[z].Mesh.Scale - Vector3.new(1.5,0.3,0.3)
  106. end
  107. for z=35,37 do
  108. Tail[z].Mesh.Scale = Tail[z].Mesh.Scale - Vector3.new(0.4,0.4,0.4)
  109. Tail2[z].Mesh.Scale = Tail2[z].Mesh.Scale - Vector3.new(2,0.4,0.4)
  110. end
  111. for z=38,40 do
  112. Tail[z].Mesh.Scale = Tail[z].Mesh.Scale - Vector3.new(0.5,0.5,0.5)
  113. Tail2[z].Mesh.Scale = Tail2[z].Mesh.Scale - Vector3.new(2.5,0.5,0.5)
  114. end
  115. limb6 = part1:clone()
  116. limb6.Size = Vector3.new(1,1,1)
  117. limb6.BrickColor = col2
  118. limb6.Name = "Head4"
  119. limb6.Mesh.Scale = Vector3.new(3,4,4)
  120. limb7 = part0:clone()
  121. limb7.Size = Vector3.new(1,2,3)
  122. limb7.BrickColor = col1
  123. limb7.Name = "Head3"
  124. limb7.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  125. limb8 = part0:clone()
  126. limb8.Size = Vector3.new(1,1,4)
  127. limb8.BrickColor = col2
  128. limb8.Name = "horn1"
  129. limb8.Mesh.Scale = Vector3.new(3.5,3.5,3.5)
  130. limb8.Mesh.MeshType = 'FileMesh'
  131. limb8.Mesh.MeshId = 'http://www.roblox.com/asset/?id=20518365'
  132. limb9 = part0:clone()
  133. limb9.Size = Vector3.new(1,1,4)
  134. limb9.BrickColor = col2
  135. limb9.Name = "horn2"
  136. limb9.Mesh.Scale = Vector3.new(3.5,3.5,3.5)
  137. limb9.Mesh.MeshType = 'FileMesh'
  138. limb9.Mesh.MeshId = 'http://www.roblox.com/asset/?id=20518365'
  139. limb10 = part0:clone()
  140. limb10.Size = Vector3.new(2,2,5)
  141. limb10.BrickColor = col1
  142. limb10.Name = "Head2"
  143. limb10.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  144. limb11 = part0:clone()
  145. limb11.Size = Vector3.new(1,2,1)
  146. limb11.BrickColor = col1
  147. limb11.Name = "Leg1"
  148. limb11.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  149. limb12 = part0:clone()
  150. limb12.Size = Vector3.new(1,2,1)
  151. limb12.BrickColor = col1
  152. limb12.Name = "Leg2"
  153. limb12.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  154. limb13 = part0:clone()
  155. limb13.Size = Vector3.new(1,2,1)
  156. limb13.BrickColor = col1
  157. limb13.Name = "Leg3"
  158. limb13.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  159. limb14 = part0:clone()
  160. limb14.Size = Vector3.new(1,2,1)
  161. limb14.BrickColor = col1
  162. limb14.Name = "Leg4"
  163. limb14.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  164. limb15 = part0:clone()
  165. limb15.Size = Vector3.new(1,2,1)
  166. limb15.BrickColor = col1
  167. limb15.Name = "Leg5"
  168. limb15.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  169. limb16 = part0:clone()
  170. limb16.Size = Vector3.new(1,2,1)
  171. limb16.BrickColor = col1
  172. limb16.Name = "Leg6"
  173. limb16.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  174. limb17 = part0:clone()
  175. limb17.Size = Vector3.new(1,2,1)
  176. limb17.BrickColor = col1
  177. limb17.Name = "Leg7"
  178. limb17.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  179. limb18 = part0:clone()
  180. limb18.Size = Vector3.new(1,2,1)
  181. limb18.BrickColor = col1
  182. limb18.Name = "Leg8"
  183. limb18.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  184. limb41 = part0:clone()
  185. limb41.Size = Vector3.new(1,1,1)
  186. limb41.BrickColor = col2
  187. limb41.Name = "TailEnd"
  188. limb41.Mesh.Scale = Vector3.new(1.5,4,1.5)
  189. limb41.Mesh.MeshType = "FileMesh"
  190. limb41.Mesh.MeshId = "http://www.roblox.com/asset/?id=25212400"
  191. local main = part0:Clone()
  192. main.Name = "Head"
  193. main.Size = Vector3.new(3, 4, 4)
  194. main.Transparency = 0
  195. main.Anchored = true
  196. main.BrickColor = col1
  197. main.TopSurface = 0
  198. main.BottomSurface = 0
  199. pos = Instance.new("BodyVelocity", main)
  200. stay = Instance.new("BodyGyro", main)
  201. pos.maxForce = Vector3.new(100000,100000,100000)
  202. stay.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  203. stay.cframe = CFrame.new(0,0,0)
  204. function onButton1Down(mouse)
  205. local player = game.Players.LocalPlayer
  206. if player == nil then return end
  207. if player ~= nil then
  208. player.Parent = nil
  209. end
  210. print("trigger")
  211. if main.Parent ~= BlackMagic then
  212. main.Parent = BlackMagic
  213. limb6.Parent = BlackMagic
  214. limb7.Parent = BlackMagic
  215. limb8.Parent = BlackMagic
  216. limb9.Parent = BlackMagic
  217. limb10.Parent = BlackMagic
  218. limb11.Parent = BlackMagic
  219. limb12.Parent = BlackMagic
  220. limb13.Parent = BlackMagic
  221. limb14.Parent = BlackMagic
  222. limb15.Parent = BlackMagic
  223. limb16.Parent = BlackMagic
  224. limb17.Parent = BlackMagic
  225. limb18.Parent = BlackMagic
  226. limb41.Parent = BlackMagic
  227. end
  228. -- find the best cf
  229. me = BlackMagic
  230. workspace.CurrentCamera.CameraSubject = main
  231. workspace.CurrentCamera.CameraType = "Track"
  232. for p = 1,segs do
  233. Tail[p].Parent = me
  234. Tail2[p].Parent = me
  235. end
  236. part1 = Tail[1]
  237. follow = true
  238. while follow do
  239. Wave = Wave + 0.02
  240. distance = length/3
  241. mousehit = mouse.Hit.p
  242. if (main.Position - mousehit).magnitude >speed then
  243. main_mousehit = (main.Position - mousehit).unit*speed
  244. else
  245. main_mousehit = (main.Position - mousehit).unit*1
  246. end
  247. start1 = main.Position-main_mousehit
  248. main.CFrame = CFrame.new(start1.x, start1.y, start1.z)
  249. p1pos = part1.Position
  250. start1_p1pos = (start1 - p1pos).unit
  251. spreadp1 = start1_p1pos*(distance+away)
  252. part1.CFrame = CFrame.new(start1-spreadp1, start1)
  253. main.CFrame=Tail[1].CFrame*CFrame.new(0,0.5,-4)*CFrame.fromEulerAnglesXYZ(-math.pi/5,0,0)
  254. Wave = Wave + 0.02
  255. pc = main.CFrame
  256. starti = main.Position-(pc.lookVector*distance)
  257. pipos = Tail[1].Position
  258. starti_pipos = (starti - pipos).unit
  259. spreadpi = starti_pipos*(distance+gap)
  260. Tail[1].CFrame = CFrame.new(starti-spreadpi, starti) + (part0.CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6)/4
  261. --[[
  262. for i = 1,39 do
  263. wait()
  264. print("p2c = Tail["..i.."].CFrame\
  265. start3 = Tail["..i.."].Position-(p2c.lookVector*distance)\
  266. p3pos = Tail["..(i+1).."].Position\
  267. start3_p3pos = (start3 - p3pos).unit\
  268. spreadp3 = start3_p3pos*(distance+gap)\
  269. Tail["..(i+1).."].CFrame = CFrame.new(start3-spreadp3, start3 - Vector3.new(0,math.sin(Wave*6+"..((i-1)/100)..")/4,0) ) + Vector3.new(0,math.sin(Wave*6+"..((i)/100)..")/4,0)\
  270. " )
  271. end
  272. ]]
  273. p2c = Tail[1].CFrame start3 = Tail[1].Position-(p2c.lookVector*distance) p3pos = Tail[2].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[2].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[1].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0)/4 ) + (Tail[2].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.01)/4
  274. p2c = Tail[2].CFrame start3 = Tail[2].Position-(p2c.lookVector*distance) p3pos = Tail[3].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[3].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[2].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.01)/4 ) + (Tail[3].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.02)/4
  275. p2c = Tail[3].CFrame start3 = Tail[3].Position-(p2c.lookVector*distance) p3pos = Tail[4].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[4].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[3].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.02)/4 ) + (Tail[4].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.03)/4
  276. p2c = Tail[4].CFrame start3 = Tail[4].Position-(p2c.lookVector*distance) p3pos = Tail[5].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[5].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[4].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.03)/4 ) + (Tail[5].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.04)/4
  277. p2c = Tail[5].CFrame start3 = Tail[5].Position-(p2c.lookVector*distance) p3pos = Tail[6].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[6].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[5].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.04)/4 ) + (Tail[6].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.05)/4
  278. p2c = Tail[6].CFrame start3 = Tail[6].Position-(p2c.lookVector*distance) p3pos = Tail[7].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[7].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[6].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.05)/4 ) + (Tail[7].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.06)/4
  279. p2c = Tail[7].CFrame start3 = Tail[7].Position-(p2c.lookVector*distance) p3pos = Tail[8].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[8].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[7].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.06)/4 ) + (Tail[8].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.07)/4
  280. p2c = Tail[8].CFrame start3 = Tail[8].Position-(p2c.lookVector*distance) p3pos = Tail[9].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[9].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[8].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.07)/4 ) + (Tail[9].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.08)/4
  281. p2c = Tail[9].CFrame start3 = Tail[9].Position-(p2c.lookVector*distance) p3pos = Tail[10].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[10].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[9].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.08)/4 ) + (Tail[10].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.09)/4
  282. p2c = Tail[10].CFrame start3 = Tail[10].Position-(p2c.lookVector*distance) p3pos = Tail[11].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[11].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[10].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.09)/4 ) + (Tail[11].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.1)/4
  283. p2c = Tail[11].CFrame start3 = Tail[11].Position-(p2c.lookVector*distance) p3pos = Tail[12].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[12].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[11].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.1)/4 ) + (Tail[12].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.11)/4
  284. p2c = Tail[12].CFrame start3 = Tail[12].Position-(p2c.lookVector*distance) p3pos = Tail[13].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[13].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[12].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.11)/4 ) + (Tail[13].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.12)/4
  285. p2c = Tail[13].CFrame start3 = Tail[13].Position-(p2c.lookVector*distance) p3pos = Tail[14].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[14].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[13].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.12)/4 ) + (Tail[14].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.13)/4
  286. p2c = Tail[14].CFrame start3 = Tail[14].Position-(p2c.lookVector*distance) p3pos = Tail[15].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[15].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[14].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.13)/4 ) + (Tail[15].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.14)/4
  287. p2c = Tail[15].CFrame start3 = Tail[15].Position-(p2c.lookVector*distance) p3pos = Tail[16].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[16].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[15].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.14)/4 ) + (Tail[16].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.15)/4
  288. p2c = Tail[16].CFrame start3 = Tail[16].Position-(p2c.lookVector*distance) p3pos = Tail[17].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[17].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[16].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.15)/4 ) + (Tail[17].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.16)/4
  289. p2c = Tail[17].CFrame start3 = Tail[17].Position-(p2c.lookVector*distance) p3pos = Tail[18].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[18].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[17].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.16)/4 ) + (Tail[18].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.17)/4
  290. p2c = Tail[18].CFrame start3 = Tail[18].Position-(p2c.lookVector*distance) p3pos = Tail[19].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[19].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[18].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.17)/4 ) + (Tail[19].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.18)/4
  291. p2c = Tail[19].CFrame start3 = Tail[19].Position-(p2c.lookVector*distance) p3pos = Tail[20].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[20].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[19].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.18)/4 ) + (Tail[20].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.19)/4
  292. p2c = Tail[20].CFrame start3 = Tail[20].Position-(p2c.lookVector*distance) p3pos = Tail[21].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[21].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[20].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.19)/4 ) + (Tail[21].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.2)/4
  293. p2c = Tail[21].CFrame start3 = Tail[21].Position-(p2c.lookVector*distance) p3pos = Tail[22].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[22].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[21].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.2)/4 ) + (Tail[22].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.21)/4
  294. p2c = Tail[22].CFrame start3 = Tail[22].Position-(p2c.lookVector*distance) p3pos = Tail[23].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[23].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[22].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.21)/4 ) + (Tail[23].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.22)/4
  295. p2c = Tail[23].CFrame start3 = Tail[23].Position-(p2c.lookVector*distance) p3pos = Tail[24].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[24].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[23].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.22)/4 ) + (Tail[24].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.23)/4
  296. p2c = Tail[24].CFrame start3 = Tail[24].Position-(p2c.lookVector*distance) p3pos = Tail[25].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[25].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[24].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.23)/4 ) + (Tail[25].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.24)/4
  297. p2c = Tail[25].CFrame start3 = Tail[25].Position-(p2c.lookVector*distance) p3pos = Tail[26].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[26].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[25].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.24)/4 ) + (Tail[26].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.25)/4
  298. p2c = Tail[26].CFrame start3 = Tail[26].Position-(p2c.lookVector*distance) p3pos = Tail[27].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[27].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[26].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.25)/4 ) + (Tail[27].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.26)/4
  299. p2c = Tail[27].CFrame start3 = Tail[27].Position-(p2c.lookVector*distance) p3pos = Tail[28].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[28].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[27].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.26)/4 ) + (Tail[28].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.27)/4
  300. p2c = Tail[28].CFrame start3 = Tail[28].Position-(p2c.lookVector*distance) p3pos = Tail[29].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[29].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[28].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.27)/4 ) + (Tail[29].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.28)/4
  301. p2c = Tail[29].CFrame start3 = Tail[29].Position-(p2c.lookVector*distance) p3pos = Tail[30].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[30].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[29].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.28)/4 ) + (Tail[30].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.29)/4
  302. p2c = Tail[30].CFrame start3 = Tail[30].Position-(p2c.lookVector*distance) p3pos = Tail[31].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[31].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[30].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.29)/4 ) + (Tail[31].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.3)/4
  303. p2c = Tail[31].CFrame start3 = Tail[31].Position-(p2c.lookVector*distance) p3pos = Tail[32].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[32].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[31].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.3)/4 ) + (Tail[32].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.31)/4
  304. p2c = Tail[32].CFrame start3 = Tail[32].Position-(p2c.lookVector*distance) p3pos = Tail[33].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[33].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[32].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.31)/4 ) + (Tail[33].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.32)/4
  305. p2c = Tail[33].CFrame start3 = Tail[33].Position-(p2c.lookVector*distance) p3pos = Tail[34].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[34].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[33].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.32)/4 ) + (Tail[34].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.33)/4
  306. p2c = Tail[34].CFrame start3 = Tail[34].Position-(p2c.lookVector*distance) p3pos = Tail[35].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[35].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[34].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.33)/4 ) + (Tail[35].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.34)/4
  307. p2c = Tail[35].CFrame start3 = Tail[35].Position-(p2c.lookVector*distance) p3pos = Tail[36].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[36].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[35].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.34)/4 ) + (Tail[36].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.35)/4
  308. p2c = Tail[36].CFrame start3 = Tail[36].Position-(p2c.lookVector*distance) p3pos = Tail[37].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[37].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[36].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.35)/4 ) + (Tail[37].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.36)/4
  309. p2c = Tail[37].CFrame start3 = Tail[37].Position-(p2c.lookVector*distance) p3pos = Tail[38].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[38].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[37].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.36)/4 ) + (Tail[38].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.37)/4
  310. p2c = Tail[38].CFrame start3 = Tail[38].Position-(p2c.lookVector*distance) p3pos = Tail[39].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[39].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[38].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.37)/4 ) + (Tail[39].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.38)/4
  311. p2c = Tail[39].CFrame start3 = Tail[39].Position-(p2c.lookVector*distance) p3pos = Tail[40].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[40].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[39].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.38)/4 ) + (Tail[40].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.39)/4
  312. for i=1,40 do
  313. Tail2[i].CFrame = Tail[i].CFrame * CFrame.new(0,2,0) *CFrame.Angles(-3.8,-1.5,2)
  314. end
  315. limb8.CFrame = main.CFrame * CFrame.new(-1,1.5,4)
  316. limb9.CFrame = limb8.CFrame * CFrame.new(2,0,0)
  317. limb10.CFrame = main.CFrame - Vector3.new(0,2,0)
  318. limb10.CFrame = limb10.CFrame * CFrame.Angles(-0.25,0,0)
  319. limb6.CFrame = main.CFrame * CFrame.new(0,-1.5,0)
  320. limb6.CFrame = limb6.CFrame*CFrame.Angles(2,0,0)
  321. limb7.CFrame = limb10.CFrame * CFrame.new(0,1.5,-1)
  322. limb41.CFrame = (Tail[40].CFrame * CFrame.new(0,0,5))* CFrame.Angles(math.rad(90),0,0)
  323. back2 = Tail[10].CFrame
  324. limb11.CFrame = back2 * CFrame.new(1,-2,0) * CFrame.Angles(2.5,0,0)
  325. limb12.CFrame = back2 * CFrame.new(-1,-2,0) * CFrame.Angles(2.5,0,0)
  326. limb13.CFrame = limb11.CFrame * CFrame.new(0,1.5 ,0.8) * CFrame.Angles(-2.2,0,0)
  327. limb14.CFrame = limb12.CFrame * CFrame.new(0,1.5 ,0.8) * CFrame.Angles(-2.2,0,0)
  328. back3 = Tail[25].CFrame
  329. limb15.CFrame = back3 * CFrame.new(1,-2,0) * CFrame.Angles(-2.5,0,0)
  330. limb16.CFrame = back3 * CFrame.new(-1,-2,0) * CFrame.Angles(-2.5,0,0)
  331. limb17.CFrame = limb15.CFrame * CFrame.new(0,0.8 ,-0.8) * CFrame.Angles(-1.5,0,0)
  332. limb18.CFrame = limb16.CFrame * CFrame.new(0,0.8 ,-0.8) * CFrame.Angles(-1.5,0,0)
  333. wait()
  334. end
  335. end
  336. function onButton1Up(mouse)
  337. follow = false
  338. end
  339. function chat()
  340. ChatColor = "Green"
  341. if main ~= nil then
  342. _.Chatted:connect(function(Message)game:GetService("Chat"):Chat(workspace:findFirstChild("").Head,Message,Enum.ChatColor[ChatColor]) end)
  343. end
  344. end
  345. chat()
  346. function keys(key)
  347. key:lower()
  348. if key == "f" then
  349. if fire == false then
  350. fire = true
  351. end
  352. elseif key == "g" then
  353. if ice == false then
  354. ice = true
  355. end
  356. elseif key == "h" then
  357. if heal == false then
  358. heal = true
  359. end
  360. elseif key == "r" then
  361. BlackMagic.Parent = workspace
  362. BlackMagic:MakeJoints()
  363. repeat wait() until BlackMagic ~= nil
  364. BlackMagic.Parent = workspace
  365. BlackMagic:MakeJoints()
  366. main.Parent = BlackMagic
  367. limb6.Parent = BlackMagic
  368. limb7.Parent = BlackMagic
  369. limb8.Parent = BlackMagic
  370. limb9.Parent = BlackMagic
  371. limb10.Parent = BlackMagic
  372. limb11.Parent = BlackMagic
  373. limb12.Parent = BlackMagic
  374. limb13.Parent = BlackMagic
  375. limb14.Parent = BlackMagic
  376. limb15.Parent = BlackMagic
  377. limb16.Parent = BlackMagic
  378. limb17.Parent = BlackMagic
  379. limb18.Parent = BlackMagic
  380. limb41.Parent = BlackMagic
  381. for i=1,40 do
  382. Tail[i].Parent = BlackMagic
  383. Tail2[i].Parent = BlackMagic
  384. end
  385. main.Anchored = true
  386. limb6.Anchored = true
  387. limb7.Anchored = true
  388. limb8.Anchored = true
  389. limb9.Anchored = true
  390. limb10.Anchored = true
  391. limb11.Anchored = true
  392. limb12.Anchored = true
  393. limb13.Anchored = true
  394. limb14.Anchored = true
  395. limb15.Anchored = true
  396. limb16.Anchored = true
  397. limb17.Anchored = true
  398. limb18.Anchored = true
  399. limb41.Anchored = true
  400. for i=1,40 do
  401. Tail[i].Anchored = true
  402. Tail2[i].Anchored = true
  403. end
  404. main.Transparency = 0
  405. limb6.Transparency = 0
  406. limb7.Transparency = 0
  407. limb8.Transparency = 0
  408. limb9.Transparency = 0
  409. limb10.Transparency = 0
  410. limb11.Transparency = 0
  411. limb12.Transparency = 0
  412. limb13.Transparency = 0
  413. limb14.Transparency = 0
  414. limb15.Transparency = 0
  415. limb16.Transparency = 0
  416. limb17.Transparency = 0
  417. limb18.Transparency = 0
  418. limb41.Transparency = 0
  419. for i=1,40 do
  420. Tail[i].Transparency = 0
  421. Tail2[i].Transparency = 0
  422. end
  423. main.BrickColor = col1
  424. limb6.BrickColor = col2
  425. limb7.BrickColor = col1
  426. limb8.BrickColor = col2
  427. limb9.BrickColor = col2
  428. limb10.BrickColor = col1
  429. limb11.BrickColor = col1
  430. limb12.BrickColor = col1
  431. limb13.BrickColor = col1
  432. limb14.BrickColor = col1
  433. limb15.BrickColor = col1
  434. limb16.BrickColor = col1
  435. limb17.BrickColor = col1
  436. limb18.BrickColor = col1
  437. limb41.BrickColor = col2
  438. for i=1,40 do
  439. Tail[i].BrickColor = col1
  440. Tail2[i].BrickColor = col2
  441. end
  442. BlackMagic:MakeJoints()
  443. chat()
  444. end
  445. end
  446. function keyss()
  447. if fire == true then
  448. fire = false
  449. end
  450. if ice == true then
  451. ice = false
  452. end
  453. if heal == true then
  454. heal = false
  455. end
  456. end
  457. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  458. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  459. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  460. mouse.KeyDown:connect(keys)
  461. mouse.KeyUp:connect(keyss)
  462. while true do
  463. wait()
  464. for i,v in pairs(BlackMagic:GetChildren()) do
  465. if v.Name ~= "Breeze" and v.Name ~= "Flame" and v.Name ~= "Heal" then
  466. for i,d in pairs(v:GetChildren()) do
  467. if d.ClassName ~= "SpecialMesh" then
  468. d:Destroy()
  469. end
  470. end
  471. end
  472. end
  473. Stuff = Workspace:GetChildren()
  474. for i = 1 , #Stuff do
  475. Stuff2 = Stuff[i]:GetChildren()
  476. for i = 1 , #Stuff2 do
  477. Stuff3 = Stuff2[i]:GetChildren()
  478. for i = 1 , #Stuff3 do
  479. if Stuff3[i].className == "ForceField" then
  480. Stuff3[i]:Remove()
  481. end
  482. end
  483. if Stuff2[i].className == "ForceField" then
  484. Stuff2[i]:Remove()
  485. end
  486. end
  487. end
  488. if fire == true then
  489. Flame = Instance.new("Part")
  490. Instance.new("Fire",Flame)
  491. Flame.Parent = BlackMagic
  492. Flame.Anchored = true
  493. Flame.BrickColor = BrickColor.new("Silver")
  494. Flame.CanCollide = false
  495. Flame.Name = "Flame"
  496. Color = math.random(1, 3)
  497. if Color == 1 then
  498. Flame.BrickColor = BrickColor.new(21)
  499. else
  500. if Color == 2 then
  501. Flame.BrickColor = BrickColor.new(24)
  502. end
  503. if Color == 3 then
  504. Flame.BrickColor = BrickColor.new(105)
  505. end
  506. end
  507. Flame.Locked = true
  508. Flame.Shape = "Ball"
  509. Flame.Transparency = 0
  510. Flame.Size = Vector3.new(1, 1, 1)
  511. Flame.TopSurface = "Smooth"
  512. Flame.BottomSurface = "Smooth"
  513. Flame.CFrame = main.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), 0)*CFrame.Angles(math.rad(-90),0,math.rad(180))
  514. FlameMesh = Instance.new("SpecialMesh")
  515. FlameMesh.MeshType = "FileMesh"
  516. FlameMesh.MeshId = "http://www.roblox.com/asset/?id=25212400"
  517. FlameMesh.Parent = Flame
  518. FlameMesh.Scale = Vector3.new(1, 1, 1)
  519. end
  520. if heal == true then
  521. Heal = Instance.new("Part")
  522. local fire = Instance.new("Fire",Heal)
  523. fire.Color = Color3.new(0/255,255/255,0/255)
  524. Heal.Parent = BlackMagic
  525. Heal.Anchored = true
  526. Heal.BrickColor = BrickColor.new("Br. blueish green")
  527. Heal.CanCollide = false
  528. Heal.Name = "Heal"
  529. Color = math.random(1, 3)
  530. if Color == 1 then
  531. Heal.BrickColor = BrickColor.new(28)
  532. else
  533. if Color == 2 then
  534. Heal.BrickColor = BrickColor.new(37)
  535. end
  536. if Color == 3 then
  537. Heal.BrickColor = BrickColor.new(119)
  538. end
  539. end
  540. Heal.Locked = true
  541. Heal.Shape = "Ball"
  542. Heal.Transparency = 0
  543. Heal.Size = Vector3.new(1, 1, 1)
  544. Heal.TopSurface = "Smooth"
  545. Heal.BottomSurface = "Smooth"
  546. Heal.CFrame = main.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), 0)*CFrame.Angles(math.rad(-90),0,math.rad(180))
  547. HealMesh = Instance.new("SpecialMesh")
  548. HealMesh.MeshType = "FileMesh"
  549. HealMesh.MeshId = "http://www.roblox.com/asset/?id=25212400"
  550. HealMesh.Parent = Heal
  551. HealMesh.Scale = Vector3.new(1, 1, 1)
  552. end
  553. if ice == true then
  554. Breeze = Instance.new("Part")
  555. local fire = Instance.new("Fire",Breeze)
  556. fire.Color = Color3.new(0/255,255/255,255/255)
  557. Breeze.Parent = BlackMagic
  558. Breeze.Anchored = true
  559. Breeze.BrickColor = BrickColor.new("White")
  560. Breeze.CanCollide = false
  561. Breeze.Name = "Breeze"
  562. Color = math.random(1, 3)
  563. if Color == 1 then
  564. Breeze.BrickColor = BrickColor.new(23)
  565. else
  566. if Color == 2 then
  567. Breeze.BrickColor = BrickColor.new(42)
  568. end
  569. if Color == 3 then
  570. Breeze.BrickColor = BrickColor.new(43)
  571. end
  572. end
  573. Breeze.Locked = true
  574. Breeze.Shape = "Ball"
  575. Breeze.Transparency = 0
  576. Breeze.Size = Vector3.new(1, 1, 1)
  577. Breeze.TopSurface = "Smooth"
  578. Breeze.BottomSurface = "Smooth"
  579. Breeze.CFrame = main.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), 0)*CFrame.Angles(math.rad(-90),0,math.rad(180))
  580. BreezeMesh = Instance.new("SpecialMesh")
  581. BreezeMesh.MeshType = "FileMesh"
  582. BreezeMesh.MeshId = "http://www.roblox.com/asset/?id=25212400"
  583. BreezeMesh.Parent = Breeze
  584. BreezeMesh.Scale = Vector3.new(1, 1, 1)
  585. end
  586. Stuff = BlackMagic:GetChildren()
  587. for i = 1 , #Stuff do
  588. if Stuff[i].className == "Part" then
  589. if Stuff[i].Name == "Shadow" then
  590. Stuff[i].Transparency = Stuff[i].Transparency + 0.2
  591. if Stuff[i].Transparency >= 1 then
  592. Stuff[i]:Remove()
  593. end
  594. end
  595. if Stuff[i].Name == "Flame" then
  596. local p = Stuff[i].CFrame * CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  597. Stuff[i].Mesh.Scale = Stuff[i].Mesh.Scale + Vector3.new(1, 1, 1)
  598. pcall(function () Stuff[i].Fire.Size = Stuff[i].Fire.Size + 1 end)
  599. Stuff[i].Transparency = Stuff[i].Transparency + 0.0785
  600. Stuff[i].CFrame = p
  601. Stuff[i].CFrame = Stuff[i].CFrame * CFrame.new(0,math.random(-5, -3),0)
  602. Stuff2 = Workspace:GetChildren()
  603. for ii = 1 , #Stuff2 do
  604. if Stuff2[ii].className == "Part" then
  605. if (Stuff[i].Position-Stuff2[ii].Position).magnitude <= Stuff[i].Mesh.Scale.X then
  606. if Stuff2[ii].Name ~= "Base" then
  607. Stuff2[ii].Anchored = false
  608. Stuff2[ii].Material = "Concrete"
  609. Stuff2[ii].BrickColor = BrickColor.new("Silver")
  610. Stuff2[ii]:BreakJoints()
  611. Stuff2[ii].Reflectance = 0
  612. end
  613. end
  614. end
  615. if Stuff2[ii].className == "Model" and Stuff2[ii].Name ~= "" then
  616. local Torso = Stuff2[ii]:findFirstChild("Torso")
  617. local Humanoid = Stuff2[ii]:findFirstChild("Humanoid")
  618. if Humanoid ~= nil and Torso ~= nil then
  619. if (Stuff[i].Position-Torso.Position).magnitude <= Stuff[i].Mesh.Scale.X then
  620. Humanoid.MaxHealth = 100
  621. Damage = 15
  622. Humanoid:TakeDamage(Damage)
  623. Parts = Humanoid.Parent:GetChildren()
  624. for i = 1 , #Parts do
  625. if Parts[i].className == "Part" then
  626. Parts[i].BrickColor = BrickColor.new("Silver")
  627. Parts[i].Material = "Concrete"
  628. Parts[i].Reflectance = 0
  629. Parts[i].Anchored = false
  630. if Humanoid.Health <= 0 then
  631. Parts[i]:BreakJoints()
  632. end
  633. end
  634. end
  635. end
  636. end
  637. end
  638. end
  639. if Stuff[i].Fire.Size >= 15 then
  640. Stuff[i]:Remove()
  641. end
  642. end
  643. if Stuff[i].Name == "Breeze" then
  644. local p = Stuff[i].CFrame * CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  645. Stuff[i].Mesh.Scale = Stuff[i].Mesh.Scale + Vector3.new(1, 1, 1)
  646. pcall(function () Stuff[i].Fire.Size = Stuff[i].Fire.Size + 1 end)
  647. Stuff[i].Transparency = Stuff[i].Transparency + 0.0785
  648. Stuff[i].CFrame = p
  649. Stuff[i].CFrame = Stuff[i].CFrame * CFrame.new(0,math.random(-5, -3),0)
  650. Stuff2 = Workspace:GetChildren()
  651. for ii = 1 , #Stuff2 do
  652. if Stuff2[ii].className == "Part" then
  653. if (Stuff[i].Position-Stuff2[ii].Position).magnitude <= Stuff[i].Mesh.Scale.X then
  654. if Stuff2[ii].Name ~= "Base" then
  655. Stuff2[ii].BrickColor = BrickColor.new("Light blue")
  656. Stuff2[ii].Anchored = true
  657. Stuff2[ii].Reflectance = 0.1
  658. Stuff2[ii].Material = "Ice"
  659. end
  660. end
  661. end
  662. if Stuff2[ii].className == "Model" and Stuff2[ii].Name ~= "" then
  663. local Torso = Stuff2[ii]:findFirstChild("Torso")
  664. local Humanoid = Stuff2[ii]:findFirstChild("Humanoid")
  665. if Humanoid ~= nil and Torso ~= nil then
  666. if (Stuff[i].Position-Torso.Position).magnitude <= Stuff[i].Mesh.Scale.X then
  667. Humanoid.MaxHealth = 100
  668. Damage = 10
  669. Humanoid:TakeDamage(Damage)
  670. Parts = Humanoid.Parent:GetChildren()
  671. for i = 1 , #Parts do
  672. if Parts[i].className == "Part" then
  673. Parts[i].BrickColor = BrickColor.new("Light blue")
  674. Parts[i].Anchored = true
  675. Parts[i].Reflectance = 0.1
  676. Parts[i].Material = "Ice"
  677. end
  678. end
  679. end
  680. end
  681. end
  682. end
  683. end
  684. if Stuff[i]:findFirstChild("Fire") ~= nil then
  685. if Stuff[i]:findFirstChild("Fire").Size >= 15 then
  686. Stuff[i]:Remove()
  687. end
  688. end
  689. if Stuff[i].Name == "Heal" then
  690. local p = Stuff[i].CFrame * CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  691. Stuff[i].Mesh.Scale = Stuff[i].Mesh.Scale + Vector3.new(1, 1, 1)
  692. pcall(function () Stuff[i].Fire.Size = Stuff[i].Fire.Size + 1 end)
  693. Stuff[i].Transparency = Stuff[i].Transparency + 0.0785
  694. Stuff[i].CFrame = p
  695. Stuff[i].CFrame = Stuff[i].CFrame * CFrame.new(0,math.random(-5, -3),0)
  696. Stuff2 = Workspace:GetChildren()
  697. for ii = 1 , #Stuff2 do
  698. if Stuff2[ii].className == "Part" then
  699. if (Stuff[i].Position-Stuff2[ii].Position).magnitude <= Stuff[i].Mesh.Scale.X then
  700. if Stuff2[ii].Name ~= "Base" then
  701. Stuff2[ii].BrickColor = BrickColor.new("Bright green")
  702. Stuff2[ii].Anchored = false
  703. Stuff2[ii].Material = "Grass"
  704. end
  705. end
  706. end
  707. if Stuff2[ii].className == "Model" and Stuff2[ii].Name ~= "" then
  708. local Torso = Stuff2[ii]:findFirstChild("Torso")
  709. local Humanoid = Stuff2[ii]:findFirstChild("Humanoid")
  710. if Humanoid ~= nil and Torso ~= nil then
  711. if (Stuff[i].Position-Torso.Position).magnitude <= Stuff[i].Mesh.Scale.X then
  712. Healness = 10
  713. Humanoid.Health = Humanoid.Health + Healness;
  714. Parts = Humanoid.Parent:GetChildren()
  715. for i = 1 , #Parts do
  716. if Parts[i].className == "Part" then
  717. Parts[i].Anchored = false
  718. Parts[i].Reflectance = 0
  719. Parts[i].Material = "Plastic"
  720. end
  721. end
  722. end
  723. end
  724. end
  725. end
  726. end
  727. if Stuff[i]:findFirstChild("Fire") ~= nil then
  728. if Stuff[i]:findFirstChild("Fire").Size >= 15 then
  729. Stuff[i]:Remove()
  730. end
  731. end
  732. end
  733. end
  734. end
Add Comment
Please, Sign In to add comment