Advertisement
gecksad

Untitled

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