Advertisement
jAkEtheEpiCSaUcE

Dragon

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