memberhero

magic scythe

Apr 16th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.49 KB | None | 0 0
  1.  
  2. wait(1 / 60)
  3. Effects = { }
  4. local Player = game.Players.localPlayer
  5. local Character = Player.Character
  6. local effects = Instance.new('Model', Character)
  7. effects.Name = "Effects"
  8. local Humanoid = Character.Humanoid
  9. local mouse = Player:GetMouse()
  10. local m = Instance.new('Model', Character)
  11. m.Name = "WeaponModel"
  12. local LeftArm = Character["Left Arm"]
  13. local RightArm = Character["Right Arm"]
  14. local LeftLeg = Character["Left Leg"]
  15. local RightLeg = Character["Right Leg"]
  16. local Head = Character.Head
  17. local Torso = Character.Torso
  18. local cam = game.Workspace.CurrentCamera
  19. local RootPart = Character.HumanoidRootPart
  20. local RootJoint = RootPart.RootJoint
  21. local equipped = false
  22. local attack = false
  23. local Anim = 'Idle'
  24. local idle = 0
  25. local attacktype = 1
  26. local vt = Vector3.new
  27. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  28. local velocity = RootPart.Velocity.y
  29. local sine = 0
  30. local change = 1
  31. local mana = 0
  32. local it =Instance.new
  33.  
  34. local grabbed = false
  35. local cf = CFrame.new
  36. local mr = math.rad
  37. local angles = CFrame.Angles
  38. local ud = UDim2.new
  39. local c3 = Color3.new
  40.  
  41. local NeckCF = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  42.  
  43. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  44. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  45. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  46.  
  47. RSH, LSH = nil, nil
  48.  
  49. RW = Instance.new("Weld")
  50. LW = Instance.new("Weld")
  51.  
  52. RH = Torso["Right Hip"]
  53. LH = Torso["Left Hip"]
  54.  
  55. RSH = Torso["Right Shoulder"]
  56. LSH = Torso["Left Shoulder"]
  57.  
  58. RSH.Parent = nil
  59. LSH.Parent = nil
  60.  
  61. RW.Name = "RW"
  62. RW.Part0 = Torso
  63. RW.C0 = cf(1.5, 0.5, 0)
  64. RW.C1 = cf(0, 0.5, 0)
  65. RW.Part1 = RightArm
  66. RW.Parent = Torso
  67.  
  68. LW.Name = "LW"
  69. LW.Part0 = Torso
  70. LW.C0 = cf(-1.5, 0.5, 0)
  71. LW.C1 = cf(0, 0.5, 0)
  72. LW.Part1 = LeftArm
  73. LW.Parent = Torso
  74.  
  75. function clerp(a, b, t)
  76. return a:lerp(b, t)
  77. end
  78.  
  79.  
  80. local RbxUtility = LoadLibrary("RbxUtility")
  81. local Create = RbxUtility.Create
  82.  
  83. function RemoveOutlines(part)
  84. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  85. end
  86.  
  87. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  88. local Part = Create("Part"){
  89. Parent = Parent,
  90. Reflectance = Reflectance,
  91. Transparency = Transparency,
  92. CanCollide = false,
  93. Locked = true,
  94. BrickColor = BrickColor.new(tostring(BColor)),
  95. Name = Name,
  96. Size = Size,
  97. Material = Material,
  98. }
  99. RemoveOutlines(Part)
  100. return Part
  101. end
  102.  
  103. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  104. local Msh = Create(Mesh){
  105. Parent = Part,
  106. Offset = OffSet,
  107. Scale = Scale,
  108. }
  109. if Mesh == "SpecialMesh" then
  110. Msh.MeshType = MeshType
  111. Msh.MeshId = MeshId
  112. end
  113. return Msh
  114. end
  115.  
  116. ArtificialHB = Instance.new("BindableEvent", script)
  117. ArtificialHB.Name = "Heartbeat"
  118. script:WaitForChild("Heartbeat")
  119. frame = 1 / 30
  120. tf = 0
  121. allowframeloss = true
  122. tossremainder = false
  123. lastframe = tick()
  124. script.Heartbeat:Fire()
  125. game:GetService("RunService").Heartbeat:connect(function(s, p)
  126.  
  127. tf = tf + s
  128. if frame <= tf then
  129. if allowframeloss then
  130. script.Heartbeat:Fire()
  131. lastframe = tick()
  132. else
  133. for i = 1, math.floor(tf / frame) do
  134. script.Heartbeat:Fire()
  135. end
  136. lastframe = tick()
  137. end
  138. if tossremainder then
  139. tf = 0
  140. else
  141. tf = tf - frame * math.floor(tf / frame)
  142. end
  143. end
  144. end
  145. )
  146. swait = function(num)
  147.  
  148. if num == 0 or num == nil then
  149. ArtificialHB.Event:wait()
  150. else
  151. for i = 0, num do
  152. ArtificialHB.Event:wait()
  153. end
  154. end
  155. end
  156.  
  157.  
  158. function CreateWeld(Parent, Part0, Part1, C0, C1)
  159. local Weld = Create("Weld"){
  160. Parent = Parent,
  161. Part0 = Part0,
  162. Part1 = Part1,
  163. C0 = C0,
  164. C1 = C1,
  165. }
  166. return Weld
  167. end
  168.  
  169. function rayCast(Position, Direction, Range, Ignore)
  170. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  171. end
  172.  
  173. function CreateSound(id, par, vol, pit)
  174. coroutine.resume(coroutine.create(function()
  175. local sou = Instance.new("Sound", par or workspace)
  176. sou.Volume = vol
  177. sou.Pitch = pit or 1
  178. sou.SoundId = id
  179. swait()
  180. sou:play()
  181. game:GetService("Debris"):AddItem(sou, 6)
  182. end))
  183. end
  184.  
  185. Handle=CreatePart(m,Enum.Material.SmoothPlastic,0,1,"Sand blue","Handle",Vector3.new(0.399999976, 1.98000026, 0.300000012))
  186. HandleWeld=CreateWeld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.171703339, -0.00845432281, 1.05079269, 0.999912977, 0.00131422468, -0.0131317414, -0.0131096533, -0.015600008, -0.999792337, -0.00151880702, 0.999877512, -0.0155814216))
  187. CreateMesh("CylinderMesh",Handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  188. FakeHandle=CreatePart(m,Enum.Material.SmoothPlastic,0,1,"Sand blue","FakeHandle",Vector3.new(0.399999976, 1.98000026, 0.300000012))
  189. FakeHandleWeld=CreateWeld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000012, 0, 0, 0, 0.99999994, 2.87400326e-010, 0, 2.87400326e-010, 1.00000012))
  190. CreateMesh("CylinderMesh",FakeHandle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  191. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Pastel Blue","Part",Vector3.new(0.219999999, 0.539999902, 0.219999999))
  192. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00999641418, 2.71751785, -0.00159263611, 1.00000012, 0, 0, 0, 1, -4.89586455e-007, 0, 4.90248567e-007, 1.00000012))
  193. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  194. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.449999869, 0.710000277))
  195. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, 1.87192869, -0.623038769, -1.00000012, 1.13621354e-007, -1.12690032e-007, -1.5925616e-007, -0.76604408, 0.642788231, -1.3038516e-008, 0.642788053, 0.766044021))
  196. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  197. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.230000168, 0.470000088))
  198. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.678504348, -3.19653034, -1.00000012, -3.81842256e-008, 1.5553087e-007, 1.55414455e-007, 1.18868593e-006, 1, -3.7252903e-008, 1, -1.188022e-006))
  199. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  200. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.220000163, 0.360000074))
  201. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00539636612, -2.75015545, 1.30182314, 0.999971151, 0.000330297276, -0.00759611651, 0.00462766644, 0.766258419, 0.642515957, 0.00603280962, -0.642532408, 0.766234696))
  202. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  203. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.239999875, 0.220000207))
  204. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00539493561, 2.73895788, -1.0421896, 0.999971211, 0.000330418348, -0.00759610767, -0.00462756725, -0.766258478, -0.642515838, -0.00603288133, 0.642532289, -0.766234815))
  205. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  206. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Sand blue","Part",Vector3.new(0.399999976, 3.67000008, 0.300000012))
  207. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.29153442e-006, -1.6777854, -0.0237259865, 1.00000012, 0, 0, 0, 0.99619472, 0.0871556178, 5.82076609e-011, -0.0871556103, 0.996194839))
  208. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  209. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.259999871, 0.690000236))
  210. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.76837158e-007, -4.44096231, -0.484997451, -1.00000012, 1.14552677e-007, -1.21537596e-007, 1.41561031e-007, 0.965925634, -0.258819908, 8.80099833e-008, -0.258819878, -0.965925694))
  211. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  212. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Sand blue","Part",Vector3.new(0.399999976, 0.540000021, 0.300000012))
  213. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-006, -3.15672684, -0.282786548, 1.00000012, 0, 0, 0, 0.996194661, -0.0871556774, 2.32830644e-010, 0.0871556625, 0.996194839))
  214. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  215. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.27000016, 0.550000191))
  216. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 4.42526388, -1.03425908, 1.00000012, 0, 0, 0, -0.965925813, 0.258819133, 0, -0.258819103, -0.965925932))
  217. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  218. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.360000163, 0.840000153))
  219. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, 3.72886276, -1.63047957, 1.00000012, 0, 0, 0, -1.00000012, 6.56293196e-007, 0, -6.56982593e-007, -1.00000012))
  220. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  221. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Sand blue","Part",Vector3.new(0.399999976, 0.850000024, 0.300000012))
  222. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, -2.91184044, 1.72197342, 1.00000012, 0, 0, 0, 0.819152057, 0.573576689, 0, -0.57357657, 0.819151938))
  223. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  224. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.360000163, 0.970000029))
  225. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.398318052, -2.67175436, 1.00000012, 0, 0, 0, -8.78675564e-007, -1, 0, 1.00000012, -8.77947969e-007))
  226. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  227. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Sand blue","Part",Vector3.new(0.239999995, 0.259999931, 0.319999993))
  228. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00999879837, -3.93248463, 0.748408318, 1.00000012, 0, 0, 0, 1, -4.89586455e-007, 0, 4.90248567e-007, 1.00000012))
  229. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  230. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.460000157, 1.1500001))
  231. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 4.28005934, -0.422626019, 1.00000012, 0, 0, 9.31322575e-010, -0.819152296, 0.573576212, 0, -0.573576093, -0.819152355))
  232. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  233. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.449999869, 0.520000219))
  234. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -4.27859831, 1.23466301, 1.00000012, 0, 0, 0, 0.819152117, -0.57357645, 9.31322575e-010, 0.573576391, 0.819152176))
  235. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  236. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.259999871, 0.78000021))
  237. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, -4.43847418, 1.65982461, 1.00000012, 0, 0, 0, 0.965925753, -0.258819282, 0, 0.258819282, 0.965925872))
  238. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  239. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.440000176, 0.450000167))
  240. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, 3.62456226, -1.78776872, 1.00000012, 0, 0, 0, -0.984807849, -0.173647866, 0, 0.173647851, -0.984807968))
  241. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  242. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.220000163, 0.360000074))
  243. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.90734863e-006, 2.38940191, -2.60514045, -1.00000012, -8.47503543e-008, 3.51574272e-008, 8.94069672e-008, -0.819151878, 0.573576808, -1.95577741e-008, 0.573576689, 0.819151938))
  244. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  245. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.400000155, 0.420000017))
  246. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.38418579e-006, 1.38498998, -3.13907766, 1.00000012, 0, 0, 0, -0.500000298, -0.866025329, 0, 0.866025209, -0.500000358))
  247. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  248. Part=CreatePart(m,Enum.Material.Neon,0,0,"Teal","Part",Vector3.new(0.25, 0.25, 0.25))
  249. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00999879837, -3.21248627, -1.13159263, 1.00000012, 0, 0, 0, 1, -4.89586455e-007, 0, 4.90248567e-007, 1.00000012))
  250. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  251. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.239999875, 0.340000212))
  252. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, -2.40059805, 2.92477083, -1.00000012, -8.47503543e-008, 2.95694917e-008, -8.66129994e-008, 0.819152117, -0.573576331, 2.42143869e-008, -0.573576272, -0.819152236))
  253. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  254. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Sand blue","Part",Vector3.new(0.399999976, 0.540000021, 0.300000012))
  255. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, -2.84173918, -2.17655039, 1.00000012, 0, 0, 9.31322575e-010, 0.766045034, -0.642787158, 0, 0.64278692, 0.766044974))
  256. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  257. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.460000157, 1.84000015))
  258. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-006, 4.10026407, -1.10925746, 1.00000012, 0, 0, 0, -0.965925813, 0.258819133, 0, -0.258819103, -0.965925932))
  259. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  260. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.449999869, 0.520000219))
  261. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-006, -4.09880209, 2.26629663, 1.00000012, 0, 0, 0, 0.965925753, -0.258819282, 0, 0.258819282, 0.965925872))
  262. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  263. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.360000163, 0.710000157))
  264. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, 2.63581657, -2.70031881, 1.00000012, 0, 0, 0, -0.819152534, -0.573576093, 4.65661287e-010, 0.573575974, -0.819152415))
  265. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  266. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Sand blue","Part",Vector3.new(0.239999995, 0.259999931, 0.319999993))
  267. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0099978447, -2.65302324, 0.261572838, 1.00000012, 0, 0, 0, 0.939692616, 0.342020303, 2.32830644e-010, -0.342020243, 0.939692736))
  268. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  269. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Pastel Blue","Part",Vector3.new(0.439999998, 0.249999925, 0.439999998))
  270. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-006, 2.57250786, -0.00159060955, 1.00000012, 0, 0, 0, 1, -4.89586455e-007, 0, 4.90248567e-007, 1.00000012))
  271. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  272. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Sand blue","Part",Vector3.new(0.399999976, 0.470000029, 0.300000012))
  273. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, -1.62717199, 3.46052504, 1.00000012, 0, 0, 0, 0.258818895, 0.965926051, 0, -0.965925932, 0.258818895))
  274. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  275. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Sand blue","Part",Vector3.new(0.239999995, 0.259999931, 0.319999993))
  276. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00999975204, -3.81249046, -0.941592574, 1.00000012, 0, 0, 0, 1, -4.89586455e-007, 0, 4.90248567e-007, 1.00000012))
  277. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  278. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.360000163, 0.900000095))
  279. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, 0.0184775591, -2.90349102, 1.00000012, 0, 0, 2.32830644e-010, -0.0871563628, -0.99619472, 0, 0.99619472, -0.0871563926))
  280. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  281. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Sand blue","Part",Vector3.new(0.399999976, 0.470000029, 0.300000012))
  282. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-006, 1.69540644, 2.2838316, 1.00000012, 0, 0, 0, -0.707107127, 0.707106531, 0, -0.707106471, -0.707107246))
  283. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  284. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Sand blue","Part",Vector3.new(0.399999976, 0.540000021, 0.300000012))
  285. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, -2.10930538, -3.27099419, 1.00000012, 0, 0, -4.65661287e-010, 0.422618419, -0.906307757, 0, 0.906307638, 0.422618449))
  286. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  287. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Cyan","Part",Vector3.new(0.219999999, 0.329999864, 2.67000031))
  288. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.76837158e-007, -0.158611894, -1.86818981, -1.00000012, 1.76951289e-008, -1.46217644e-007, -1.46101229e-007, 1.19263859e-006, 1, 1.86264515e-008, 0.99999994, -1.19276592e-006))
  289. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  290. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.360000163, 1.07000005))
  291. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, 1.19499111, -3.09407806, 1.00000012, 0, 0, 0, -0.500000298, -0.866025329, 0, 0.866025209, -0.500000358))
  292. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  293. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.360000163, 1.00000012))
  294. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, 2.78988075, -2.44753766, 1.00000012, 0, 0, 0, -0.906308174, -0.422617465, 0, 0.422617376, -0.906308234))
  295. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  296. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Sand blue","Part",Vector3.new(0.399999976, 5.51000023, 0.300000012))
  297. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-006, -0.185009003, -8.34465027e-007, 1.00000012, 0, 0, 0, 0.99999994, 2.87400326e-010, 0, 2.87400326e-010, 1.00000012))
  298. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  299. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Storm blue","Part",Vector3.new(0.219999999, 0.410000175, 0.640000105))
  300. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-006, -1.44318247, -1.80669498, 1.00000012, 0, 0, 0, 0.499999285, -0.866025925, 0, 0.866025805, 0.499999285))
  301. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  302. Hitbox=CreatePart(m,Enum.Material.SmoothPlastic,0,1,"Sand blue","Hitbox",Vector3.new(0.399999976, 1.98000026, 4.19000006))
  303. HitboxWeld=CreateWeld(m,FakeHandle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0432858467, -3.24210644, 1.43164659, 1.00000012, 0, 0, 0, 0.99999994, 2.87400326e-010, 0, 2.87400326e-010, 1.00000012))
  304. CreateMesh("CylinderMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  305.  
  306. local function getclosest(obj, distance)
  307. local last, lastx = distance + 1
  308. for i, v in pairs(workspace:GetChildren()) do
  309. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  310. local t = v.Torso
  311. local dist = (t.Position - obj.Position).magnitude
  312. if dist <= distance then
  313. if dist < last then
  314. last = dist
  315. lastx = v
  316. end
  317. end
  318. end
  319. end
  320. return lastx
  321. end
  322.  
  323. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  324. if hit.Parent==nil then
  325. return
  326. end
  327. local h=hit.Parent:FindFirstChild("Humanoid")
  328. for _,v in pairs(hit.Parent:children()) do
  329. if v:IsA("Humanoid") then
  330. h=v
  331. end
  332. end
  333. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  334. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  335. end
  336. if hit.Parent.className=="Hat" then
  337. hit=hit.Parent.Parent:findFirstChild("Head")
  338. end
  339. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  340. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  341. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  342. return
  343. end]]
  344. -- hs(hit,1.2)
  345. local c=Instance.new("ObjectValue")
  346. c.Name="creator"
  347. c.Value=game:service("Players").LocalPlayer
  348. c.Parent=h
  349. game:GetService("Debris"):AddItem(c,.5)
  350. local Damage=math.random(minim,maxim)
  351. -- h:TakeDamage(Damage)
  352. local blocked=false
  353. local block=hit.Parent:findFirstChild("Block")
  354. if block~=nil then
  355. print(block.className)
  356. if block.className=="NumberValue" then
  357. if block.Value>0 then
  358. blocked=true
  359. if decreaseblock==nil then
  360. block.Value=block.Value-1
  361. end
  362. end
  363. end
  364. if block.className=="IntValue" then
  365. if block.Value>0 then
  366. blocked=true
  367. if decreaseblock~=nil then
  368. block.Value=block.Value-1
  369. end
  370. end
  371. end
  372. end
  373. if blocked==false then
  374. -- h:TakeDamage(Damage)
  375. HitHealth=h.Health
  376. h.Health=h.Health-Damage
  377.  
  378. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Lost Soul" then
  379. print("gained spree")
  380. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
  381. end
  382. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  383. else
  384. h.Health=h.Health-(Damage/2)
  385. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  386. end
  387.  
  388. if Type=="Knockdown" then
  389. local hum=hit.Parent.Humanoid
  390. hum.PlatformStand=true
  391. coroutine.resume(coroutine.create(function(HHumanoid)
  392. swait(1)
  393. HHumanoid.PlatformStand=false
  394. end),hum)
  395. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  396. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  397. local bodvol=Instance.new("BodyVelocity")
  398. bodvol.velocity=angle*knockback
  399. bodvol.P=5000
  400. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  401. bodvol.Parent=hit
  402. local rl=Instance.new("BodyAngularVelocity")
  403. rl.P=3000
  404. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  405. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  406. rl.Parent=hit
  407. game:GetService("Debris"):AddItem(bodvol,.5)
  408. game:GetService("Debris"):AddItem(rl,.5)
  409. elseif Type=="Snare" then
  410. Charge=Charge+1
  411. coroutine.resume(coroutine.create(function(Part,Hum)
  412. swait(30)
  413. for i=1,5 do
  414. swait(5)
  415. CreateSound("rbxasset://sounds\\unsheath.wav",hit,1,2)
  416. MoonEffect(BrickColor.new("White"),hit.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,2,.5,.5,.5,0.07)
  417. newdam=math.random(1,5)
  418. if blocked==false then
  419. Hum:TakeDamage(newdam)
  420. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  421. else
  422. Hum:TakeDamage(newdam/2)
  423. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  424. end
  425. end
  426. end),hit,h)
  427. elseif Type=="Normal" then
  428. local vp=Instance.new("BodyVelocity")
  429. vp.P=500
  430. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  431. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  432. if KnockbackType==1 then
  433. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  434. elseif KnockbackType==2 then
  435. vp.velocity=Property.CFrame.lookVector*knockback
  436. end
  437. if knockback>0 then
  438. vp.Parent=hit.Parent.Torso
  439. end
  440. game:GetService("Debris"):AddItem(vp,.5)
  441. elseif Type=="Up" then
  442. local bodyVelocity=Instance.new("BodyVelocity")
  443. bodyVelocity.velocity=vt(0,60,0)
  444. bodyVelocity.P=5000
  445. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  446. bodyVelocity.Parent=hit
  447. game:GetService("Debris"):AddItem(bodyVelocity,1)
  448. local rl=Instance.new("BodyAngularVelocity")
  449. rl.P=3000
  450. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  451. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  452. rl.Parent=hit
  453. game:GetService("Debris"):AddItem(rl,.5)
  454. elseif Type=="Snare" then
  455. local bp=Instance.new("BodyPosition")
  456. bp.P=2000
  457. bp.D=100
  458. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  459. bp.position=hit.Parent.Torso.Position
  460. bp.Parent=hit.Parent.Torso
  461. game:GetService("Debris"):AddItem(bp,1)
  462. elseif Type=="Target" then
  463. local Targetting = false
  464. if Targetting==false then
  465. ZTarget=hit.Parent.Torso
  466. coroutine.resume(coroutine.create(function(Part)
  467. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  468. swait(5)
  469. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  470. end),ZTarget)
  471. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  472. local targetgui=Instance.new("BillboardGui")
  473. targetgui.Parent=ZTarget
  474. targetgui.Size=UDim2.new(10,100,10,100)
  475. local targ=Instance.new("ImageLabel")
  476. targ.Parent=targetgui
  477. targ.BackgroundTransparency=1
  478. targ.Image="rbxassetid://234376725"
  479. targ.Size=UDim2.new(1,0,1,0)
  480. cam.CameraType="Scriptable"
  481. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  482. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  483. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  484. Targetting=true
  485. RocketTarget=ZTarget
  486. for i=1,Property do
  487. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  488. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  489. swait()
  490. end
  491. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  492. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  493. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  494. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  495. end
  496. Targetting=false
  497. RocketTarget=nil
  498. targetgui.Parent=nil
  499. cam.CameraType="Custom"
  500. end
  501. end
  502. local debounce=Instance.new("BoolValue")
  503. debounce.Name="DebounceHit"
  504. debounce.Parent=hit.Parent
  505. debounce.Value=true
  506. game:GetService("Debris"):AddItem(debounce,Delay)
  507. c=Instance.new("ObjectValue")
  508. c.Name="creator"
  509. c.Value=Player
  510. c.Parent=h
  511. game:GetService("Debris"):AddItem(c,.5)
  512.  
  513. end
  514. end
  515.  
  516.  
  517. function ShowDamage(Pos, Text, Time, Color)
  518. local Rate = (1 / 30)
  519. local Pos = (Pos or Vector3.new(0, 0, 0))
  520. local Text = (Text or "")
  521. local Time = (Time or 2)
  522. local Color = (Color or Color3.new(1, 0, 0))
  523. local EffectPart = CreatePart(workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  524. EffectPart.Anchored = true
  525. local BillboardGui = Instance.new("BillboardGui")
  526. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  527. BillboardGui.Adornee = EffectPart
  528. local TextLabel = Instance.new("TextLabel")
  529. TextLabel.BackgroundTransparency = 1
  530. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  531. TextLabel.Text = Text
  532. TextLabel.TextColor3 = Color
  533. TextLabel.TextScaled = true
  534. TextLabel.Font = Enum.Font.ArialBold
  535. TextLabel.Parent = BillboardGui
  536. BillboardGui.Parent = EffectPart
  537. game.Debris:AddItem(EffectPart, (Time + 0.1))
  538. EffectPart.Parent = game:GetService("Workspace")
  539. Delay(0, function()
  540. local Frames = (Time / Rate)
  541. for Frame = 1, Frames do
  542. wait(Rate)
  543. local Percent = (Frame / Frames)
  544. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  545. TextLabel.TextTransparency = Percent
  546. end
  547. if EffectPart and EffectPart.Parent then
  548. EffectPart:Destroy()
  549. end
  550. end)
  551. end
  552.  
  553. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  554. for _,c in pairs(workspace:children()) do
  555. local hum=c:findFirstChild("Humanoid")
  556. if hum~=nil then
  557. local head=c:findFirstChild("Torso")
  558. if head~=nil then
  559. local targ=head.Position-Part.Position
  560. local mag=targ.magnitude
  561. if mag<=magni and c.Name~=Player.Name then
  562. --Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,nil,1)
  563. Damagefunc(head, head, mindam,maxdam, knock, Type, RootPart, .1, "Hit2", 1)
  564. end
  565. end
  566. end
  567. end
  568. end
  569.  
  570.  
  571.  
  572. --[[Effect Functions]]--
  573.  
  574. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  575. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  576. prt.Anchored = true
  577. prt.CFrame = cframe
  578. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  579. game:GetService("Debris"):AddItem(prt, 10)
  580. if Type == 1 or Type == nil then
  581. table.insert(Effects, {
  582. prt,
  583. "Block1",
  584. delay,
  585. x3,
  586. y3,
  587. z3,
  588. msh
  589. })
  590. elseif Type == 2 then
  591. table.insert(Effects, {
  592. prt,
  593. "Block2",
  594. delay,
  595. x3,
  596. y3,
  597. z3,
  598. msh
  599. })
  600. end
  601. end
  602.  
  603. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  604. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  605. prt.Anchored = true
  606. prt.CFrame = cframe
  607. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  608. game:GetService("Debris"):AddItem(prt, 10)
  609. table.insert(Effects, {
  610. prt,
  611. "Cylinder",
  612. delay,
  613. x3,
  614. y3,
  615. z3,
  616. msh
  617. })
  618. end
  619.  
  620. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  621. local prt=CreatePart(workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  622. prt.Anchored=true
  623. prt.CFrame=cframe
  624. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  625. game:GetService("Debris"):AddItem(prt,2)
  626. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  627. for i=0,1,delay do
  628. swait()
  629. Part.Transparency=i
  630. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  631. end
  632. Part.Parent=nil
  633. end),prt,msh,(math.random(0,1)+math.random())/5)
  634. end
  635.  
  636. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  637. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  638. prt.Anchored = true
  639. prt.CFrame = cframe
  640. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  641. game:GetService("Debris"):AddItem(prt, 10)
  642. table.insert(Effects, {
  643. prt,
  644. "Cylinder",
  645. delay,
  646. x3,
  647. y3,
  648. z3,
  649. msh
  650. })
  651. end
  652.  
  653. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  654. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  655. prt.Anchored = true
  656. prt.CFrame = cframe
  657. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  658. game:GetService("Debris"):AddItem(prt, 10)
  659. table.insert(Effects, {
  660. prt,
  661. "Cylinder",
  662. delay,
  663. x3,
  664. y3,
  665. z3,
  666. msh
  667. })
  668. end
  669.  
  670. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  671. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  672. prt.Anchored = true
  673. prt.CFrame = cframe
  674. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  675. game:GetService("Debris"):AddItem(prt, 10)
  676. table.insert(Effects, {
  677. prt,
  678. "Cylinder",
  679. delay,
  680. x3,
  681. y3,
  682. z3,
  683. msh
  684. })
  685. end
  686.  
  687.  
  688. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  689. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  690. prt.Anchored = true
  691. prt.CFrame = cframe
  692. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  693. game:GetService("Debris"):AddItem(prt, 10)
  694. table.insert(Effects, {
  695. prt,
  696. "Cylinder",
  697. delay,
  698. x3,
  699. y3,
  700. z3,
  701. msh
  702. })
  703. end
  704.  
  705. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  706. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  707. prt.Anchored = true
  708. prt.CFrame = cframe
  709. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  710. game:GetService("Debris"):AddItem(prt, 10)
  711. table.insert(Effects, {
  712. prt,
  713. "Cylinder",
  714. delay,
  715. x3,
  716. y3,
  717. z3,
  718. msh
  719. })
  720. end
  721.  
  722. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  723. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  724. prt.Anchored = true
  725. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  726. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  727. local num = math.random(10, 50) / 1000
  728. game:GetService("Debris"):AddItem(prt, 10)
  729. table.insert(Effects, {
  730. prt,
  731. "Shatter",
  732. num,
  733. prt.CFrame,
  734. math.random() - math.random(),
  735. 0,
  736. math.random(50, 100) / 100
  737. })
  738. end
  739. --[[ V = The CFraming of the part]]--
  740. --[[EXAMPLE: ExampleWeld.C0 = clerp(ExampleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) ]]--
  741. --[[ ^ = The Rotations of the part]]--
  742.  
  743. --[[ ^ = The Rotations of the part]]--
  744.  
  745. local nr=NumberRange.new
  746. local ns=NumberSequence.new
  747. local cs=ColorSequence.new
  748. local nsk=NumberSequenceKeypoint.new
  749. --[[Particles]]--
  750. function particle(parent,col1,col2,lightemis,size,texture,transparency,zoffset,accel,drag,ltp,velinher,emisdir,enabled,lifetime,rate,rotation,rotspeed,speed,velspread)
  751. local fp=it("ParticleEmitter")
  752. fp.Parent=parent
  753. fp.Color=cs(col1,col2)
  754. fp.LightEmission=lightemis
  755. fp.Size=size
  756. fp.Texture=texture
  757. fp.Transparency=transparency
  758. fp.ZOffset=zoffset
  759. fp.Acceleration=accel
  760. fp.Drag=drag
  761. fp.LockedToPart=ltp
  762. fp.VelocityInheritance=velinher
  763. fp.EmissionDirection=emisdir
  764. fp.Enabled=enabled
  765. fp.Lifetime=lifetime
  766. fp.Rate=rate
  767. fp.Rotation=rotation
  768. fp.RotSpeed=rotspeed
  769. fp.Speed=speed
  770. fp.VelocitySpread=velspread
  771. return fp
  772. end
  773.  
  774.  
  775.  
  776. sizeseq=ns({nsk(0,4),nsk(.027,8.5),nsk(.184,9),nsk(1,10)})
  777. transseq=ns({nsk(0,.375),nsk(.4,1),nsk(1,1)})
  778. local icicleparti1=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.2,sizeseq,"http://www.roblox.com/asset/?id=329766994",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),15,nr(-360,360),nr(-30,30),nr(3),20)
  779. sizeseq=ns({nsk(0,5),nsk(.025,7.7),nsk(.192,9),nsk(1,10)})
  780. transseq=ns({nsk(0,.8),nsk(.3,1),nsk(1,1)})
  781. local icicleparti2=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.3,sizeseq,"http://www.roblox.com/asset/?id=241594419",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),80,nr(-360,360),nr(-30,30),nr(3),20)
  782. sizeseq=ns({nsk(0,.328),nsk(.075,3.11),nsk(.206,4.97),nsk(1,10)})
  783. transseq=ns({nsk(0,.363),nsk(.107,1),nsk(1,1)})
  784.  
  785.  
  786. --[[Attack Function]]--
  787.  
  788. function TriOrbs()
  789. --for i=1,math.random(1,4)
  790. local dacf=Torso.CFrame*angles(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  791. local dacf2=Torso.CFrame*angles(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  792. local dacf3=Torso.CFrame*angles(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  793. local icepart1=CreatePart(effects,"SmoothPlastic",0,0,BrickColor.new("Toothpaste"),"Ice",vt()) icepart1.Anchored=true
  794. i1msh=CreateMesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  795. icepart1.CFrame=dacf
  796. local partic1=icicleparti2:Clone() partic1.Parent=icepart1 partic1.Enabled=true
  797. for i=0,1,0.1 do
  798. swait()
  799. icepart1.CFrame=dacf
  800. dacf=dacf*cf(0,math.random(400,800)/10,0)
  801. end
  802. local spread=vt((math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16)*(icepart1.Position-(icepart1.Position+vt(0,-1,0))).magnitude/100
  803. local TheHit=mouse.Hit.p
  804. local MouseLook=cf((icepart1.Position+TheHit)/2,TheHit+spread)
  805. local hit,pos = rayCast(icepart1.Position,MouseLook.lookVector,999,Character)
  806. local target1,distance1=rayCast(icepart1.Position,MouseLook.lookVector,999,Character)
  807. --local target1,distance1=findNearestTorso(icepart1.Position)
  808. local test1,dist1=mouse.Hit.p
  809. local pos1=nil
  810. local refpart1=CreatePart(effects,"SmoothPlastic",0,1,BrickColor.new("Toothpaste"),"Ref",vt()) refpart1.Anchored=true
  811. if target1~=nil then
  812. --pos1=target1.Position
  813. refpart1.CFrame=cf(pos)*cf(math.random(-5,5),5,math.random(-5,5))
  814. end
  815. local move=40
  816. for i=0,1,0.1 do
  817. swait()
  818. move=40-40*i
  819. if hit~=nil then
  820. refpart1.CFrame=cf(refpart1.Position,pos)
  821. SphereEffect(BrickColor.new("Toothpaste"),icepart1.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
  822. icepart1.CFrame=dacf
  823. dacf=dacf*cf(0,move,0)
  824. end
  825. end
  826. local laser1=CreatePart(effects,"SmoothPlastic",0,0,BrickColor.new("Toothpaste"),"Effect",vt())
  827. laser1.Anchored=true
  828. local lmsh1=CreateMesh("SpecialMesh",laser1,"Head","",vt(0,0,0),vt(10,1,10))
  829. local ref=CreatePart(effects,"SmoothPlastic",0,1,BrickColor.new("Black"),"Reference",vt())
  830. ref.Anchored=true
  831. ref.CFrame=cf(0,0,0)
  832. game:GetService("Debris"):AddItem(ref,1)
  833. local ref1=CreatePart(effects,"SmoothPlastic",0,1,BrickColor.new("Black"),"Reference",vt())
  834. ref1.Anchored=true
  835. ref1.CFrame=cf(0,0,0)
  836. game:GetService("Debris"):AddItem(ref1,5)
  837. local ice1=0
  838. for i=0,3,0.05 do
  839. swait()
  840. ice1=ice1+1
  841. if hit~=nil then
  842. if i>1 then
  843. refpart1.CFrame=refpart1.CFrame*cf(0,0,-1.5)
  844. end
  845. local cfnew=cf(icepart1.Position,refpart1.Position)
  846. local hit1,pos1=rayCast(icepart1.Position,cfnew.lookVector,9999,Character)
  847. local mag1=(icepart1.Position-pos).magnitude
  848. laser1.CFrame=CFrame.new((icepart1.Position+pos1)/2,pos1)*angles(1.57,0,0)
  849. lmsh1.Scale=vt(10,mag1*5,10)
  850. BlockEffect(BrickColor.new("Toothpaste"),cf(pos1),5,5,5,5,5,5,.1,1)
  851. ref.CFrame=cf(pos1)
  852. MagniDamage(ref,5,8,14,0,"Normal")
  853. ref1.CFrame=cf(ref.Position)
  854. if ice1%2==0 then
  855. CreateSound("http://www.roblox.com/asset/?id=333476017",ref1,.3,1.4)
  856. end
  857. end
  858. end
  859. if hit~=nil then
  860. local pos1=laser1.CFrame
  861. local x1=lmsh1.Scale.X local y1=lmsh1.Scale.Y local z1=lmsh1.Scale.Z
  862. HeadEffect(BrickColor.new("Toothpaste"),pos1,x1,y1,z1,1,1,1,.1)
  863. end
  864. SphereEffect(BrickColor.new("Toothpaste"),cf(icepart1.Position),100,100,100,5,5,5,.2)
  865. icepart1.Parent=nil
  866. refpart1.Parent=nil
  867. laser1.Parent=nil
  868. ref.Parent=nil
  869. end
  870.  
  871.  
  872. function Finale()
  873. attack = true
  874. CreateSound("http://www.roblox.com/asset/?id=320557487",RootPart,1,1)
  875. local con = Hitbox.Touched:connect(function(hit)
  876. Damagefunc(Hitbox, hit, 15, 25, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://199149221", .8)
  877. end)
  878. for i = 0, 1, 0.1 do
  879. swait()
  880. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  881. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  882. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), .3)
  883. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(10), math.rad(0)), .3)
  884. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  885. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  886. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  887. end
  888. CreateSound("http://www.roblox.com/asset/?id=338586331",RootPart,1,1)
  889. local orb=CreatePart(Character,"SmoothPlastic",0,0.5,BrickColor.new("Teal"),"Orb",vt())
  890. orb.Anchored=true
  891. local omsh=CreateMesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(1,1,1))
  892. orb.CFrame=RootPart.CFrame*cf(0,1,-7.5)
  893. local orb2=CreatePart(Character,"SmoothPlastic",0,0.5,BrickColor.new("Toothpaste"),"Orb",vt())
  894. orb2.Anchored=true
  895. local omsh2=CreateMesh("SpecialMesh",orb2,"Sphere","",vt(0,0,0),vt(1,1,1))
  896. orb2.CFrame=RootPart.CFrame*cf(0,1,-7.6)
  897. CreateSound("http://www.roblox.com/asset/?id=235097614",orb,1,1)
  898. coroutine.resume(coroutine.create(function()
  899. coroutine.resume(coroutine.create(function()
  900. for i = 0,5,.5 do
  901. swait()
  902. omsh2.Scale=Vector3.new(10*i,1,1)
  903. end
  904. for i = 0,50,10 do
  905. swait()
  906. omsh2.Scale=Vector3.new(50,1*i,1)
  907. end
  908. end))
  909. for i = 0,10,1 do
  910. swait()
  911. omsh.Scale=Vector3.new(10*i,1,1)
  912. end
  913. for i = 0,50,10 do
  914. swait()
  915. omsh.Scale=Vector3.new(100,1*i,1)
  916. end
  917. end))
  918.  
  919. for i = 0, 1, 0.2 do
  920. swait()
  921. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  922. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  923. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), .3)
  924. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-80), math.rad(10), math.rad(0)), .3)
  925. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  926. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  927. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(20),math.rad(-20)),.2)
  928. end
  929. for i = 0, 1, 0.1 do
  930. swait()
  931. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  932. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  933. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), .3)
  934. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-80), math.rad(10), math.rad(0)), .3)
  935. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  936. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  937. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(20),math.rad(-20)),.2)
  938. end
  939. shoottrail2(mouse,orb2)
  940. for i=0,1,.1 do
  941. swait()
  942. end
  943. coroutine.resume(coroutine.create(function()
  944. for i = 0,1,.1 do
  945. swait()
  946. orb2.Transparency=i
  947. orb.Transparency=i
  948. end
  949. orb.Parent=nil
  950. orb2.Parent=nil
  951. end))
  952. con:disconnect()
  953. attack = false
  954. end
  955.  
  956.  
  957. function attackone()
  958. attack = true
  959. CreateSound("http://www.roblox.com/asset/?id=320557487",RootPart,1,1)
  960. local con = Hitbox.Touched:connect(function(hit)
  961. Damagefunc(Hitbox, hit, 15, 25, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://199149221", .8)
  962. end)
  963. for i = 0, 1, 0.1 do
  964. swait()
  965. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  966. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  967. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), .3)
  968. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(10), math.rad(0)), .3)
  969. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  970. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  971. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  972. end
  973. CreateSound("http://www.roblox.com/asset/?id=338586331",RootPart,1,1)
  974. for i = 0, 1, 0.2 do
  975. swait()
  976. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  977. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  978. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), .3)
  979. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-80), math.rad(10), math.rad(0)), .3)
  980. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  981. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  982. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(20),math.rad(-20)),.2)
  983. end
  984. con:disconnect()
  985. attack = false
  986. end
  987.  
  988. local snund = false
  989. function attacktwo()
  990. attack = true
  991. snund=true
  992. CreateSound("http://www.roblox.com/asset/?id=320557537",RootPart,1,1)
  993. local con = Hitbox.Touched:connect(function(hit)
  994. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Snare", RootPart, .2, "rbxassetid://199149221", .8)
  995. end)
  996. for i = 0, 1, 0.1 do
  997. swait()
  998. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0-360*i)), .3)
  999. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  1000. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), .3)
  1001. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(10), math.rad(0)), .3)
  1002. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1003. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1004. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1005. end
  1006. CreateSound("http://www.roblox.com/asset/?id=338586299",RootPart,1,1)
  1007. for i = 0, 1, 0.05 do
  1008. swait()
  1009. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(40),math.rad(0),math.rad(-70)),0.3)
  1010. Torso.Neck.C0 = clerp(Torso.Neck.C0,NeckCF *angles(math.rad(-20),math.rad(-30),math.rad(70)),.3)
  1011. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)),0.3)
  1012. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3)
  1013. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(-30)),0.3)
  1014. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3)
  1015. end
  1016. snund=false
  1017. con:disconnect()
  1018. attack = false
  1019. end
  1020.  
  1021. function attackthree()
  1022. attack = true
  1023. CreateSound("http://www.roblox.com/asset/?id=320557563",RootPart,1,1)
  1024. local con = Hitbox.Touched:connect(function(hit)
  1025. Damagefunc(Hitbox, hit, 10, 25, math.random(1, 5), "Snare", RootPart, .2, "rbxassetid://199149221", .8)
  1026. end)
  1027. for i = 0, 1, 0.1 do
  1028. swait()
  1029. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(40),math.rad(0),math.rad(-70)),0.3)
  1030. Torso.Neck.C0 = clerp(Torso.Neck.C0,NeckCF *angles(math.rad(-20),math.rad(-30),math.rad(70)),.3)
  1031. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)),0.3)
  1032. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3)
  1033. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(-30)),0.3)
  1034. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3)
  1035. end
  1036. Torso.Velocity=Head.CFrame.lookVector*100
  1037. CreateSound("http://www.roblox.com/asset/?id=338586331",RootPart,1,.8)
  1038. for i = 0, 1, 0.05 do
  1039. swait()
  1040. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  1041. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  1042. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), .3)
  1043. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(10), math.rad(0)), .3)
  1044. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1045. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1046. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1047. end
  1048. con:disconnect()
  1049. attack = false
  1050. end
  1051.  
  1052. local prep = false
  1053. function Luna()
  1054. attack = true
  1055. prep=true
  1056. CreateSound("http://www.roblox.com/asset/?id=315746833",RootPart,1,1)
  1057. SphereEffect(BrickColor.new("White"),RootPart.CFrame,1,1,1,5,5,5,.06)
  1058. MoonEffect(BrickColor.new("Pastel light blue"),RootPart.CFrame*cf(0,2,0),1,1,1,.5,.5,.5,.06)
  1059. while prep==true do
  1060. swait()
  1061. for i = 0, 1, 0.1 do
  1062. swait()
  1063. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(40),math.rad(0),math.rad(-70)),0.3)
  1064. Torso.Neck.C0 = clerp(Torso.Neck.C0,NeckCF *angles(math.rad(0),math.rad(-30),math.rad(70)),.3)
  1065. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(150)),0.3)
  1066. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3)
  1067. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(-30)),0.3)
  1068. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3)
  1069. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(90),math.rad(0-360*i),math.rad(90)),.2)
  1070. end
  1071. end
  1072.  
  1073. end
  1074. function LunarStrike()
  1075. prep=false
  1076. local con = Hitbox.Touched:connect(function(hit)
  1077. Damagefunc(Hitbox, hit, 20, 35, math.random(1, 5), "Snare", RootPart, .2, "rbxassetid://199149221", .8)
  1078. end)
  1079. CreateSound("http://www.roblox.com/asset/?id=315744661",RootPart,1,1)
  1080. SpecialEffect(BrickColor.new("White"),RootPart.CFrame,1,1,1,3,3,3,.08)
  1081. SpecialEffect(BrickColor.new("Pastel light blue"),RootPart.CFrame,1,1,1,3,3,3,.07)
  1082. RingEffect(BrickColor.new("Pastel blue-green"),RootPart.CFrame*cf(0,0,-5)*angles(math.rad(10,150),0,0),3,3,1,3,3,0,.07)
  1083. Torso.Velocity=Head.CFrame.lookVector*300
  1084. for i = 0, 1, 0.1 do
  1085. swait()
  1086. MagniDamage(RootPart,10,10,15,10,"Knockdown")
  1087. -- CylinderEffect(BrickColor.new("Pastel light blue"),RootPart.CFrame*angles(1.57,0,0),1,5,1,3,5,3,.07)
  1088. SphereEffect(BrickColor.new("Pastel blue-green"),RootPart.CFrame,1,1,1,3,3,3,.08)
  1089. RingEffect(BrickColor.new("Pastel blue-green"),RootPart.CFrame*cf(0,1,0),1,1,1,1,1,0,.07)
  1090. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0-360*i)), .3)
  1091. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  1092. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), .3)
  1093. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(10), math.rad(0)), .3)
  1094. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1095. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1096. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1097. end
  1098. SphereEffect(BrickColor.new("Pastel blue-green"),RootPart.CFrame*cf(0,0,-10)*angles(0,0,math.rad(80,130)),1,1,1,1,15,1,.06)
  1099. con:disconnect()
  1100. attack = false
  1101. end
  1102.  
  1103. spread=0
  1104. range=50
  1105. rangepower=25
  1106. function shoottrail3(mouse,baseprt)
  1107. coroutine.resume(coroutine.create(function(v)
  1108. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-mouse.Hit.p).magnitude/100
  1109. local dir = CFrame.new((baseprt.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  1110. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  1111. local rangepos = range*50
  1112. local function drawtrail(From,To)
  1113. local effectsmsh = Instance.new("SpecialMesh")
  1114. effectsmsh.Scale = Vector3.new(1,1,1)
  1115. effectsmsh.Name = "Mesh"
  1116. effectsmsh.MeshType = "Sphere"
  1117. effectsmsh.Scale=Vector3.new(5,5,5)
  1118. local effectsg = Instance.new("Part")
  1119. --effectsg.formFactor = 3
  1120. effectsg.CanCollide = false
  1121. effectsg.Name = "Eff"
  1122. effectsg.Material="Neon"
  1123. effectsg.Locked = true
  1124. effectsg.Anchored = true
  1125. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1126. effectsg.Parent = workspace
  1127. effectsmsh.Parent = effectsg
  1128. effectsg.BrickColor = BrickColor.new("Teal")
  1129. effectsg.Reflectance = 0
  1130.  
  1131. --particle.RotSpeed=NumberRange.new(20,20)
  1132. --particle.Rotation=NumberRange.new(180,180)
  1133. local LP = From
  1134. local point1 = To
  1135. local mg = (LP - point1).magnitude
  1136. effectsmsh.Scale = Vector3.new(5,50,50)
  1137. effectsg.CFrame=CFrame.new((LP+point1)/2,point1)
  1138. MoonEffect(BrickColor.new("Toothpaste"),effectsg.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,.5,.5,.5,.07)
  1139. coroutine.resume(coroutine.create(function()
  1140. swait()
  1141. effectsg.Parent = nil
  1142. end))
  1143. end
  1144. local newpos = baseprt.Position
  1145. local inc = rangepower/10
  1146. repeat
  1147. swait()
  1148. rangepos = rangepos - 10
  1149. --dir = dir * CFrame.Angles(math.rad(-1),0,0)
  1150. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1151. drawtrail(newpos,pos)
  1152. local list = game.Workspace:children()
  1153. local torso = nil
  1154. local dist = 20
  1155. local temp = nil
  1156. local human = nil
  1157. local temp2 = nil
  1158. for x = 1, #list do
  1159. temp2 = list[x]
  1160. if (temp2.className == "Model") and (temp2.Name~=Character.Name) then
  1161. temp = temp2:findFirstChild("Torso")
  1162. human = temp2:findFirstChild("Humanoid")
  1163. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1164. if (temp.Position - pos).magnitude < dist then
  1165. torso = temp
  1166. dist = (temp.Position - pos).magnitude
  1167. end
  1168. end
  1169. end
  1170. end
  1171. if torso~=nil then
  1172. dir=CFrame.new(pos,torso.Position)
  1173. end
  1174. newpos = newpos + (dir.lookVector * inc)
  1175. if hit ~= nil then
  1176. rangepos = 0
  1177. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1178. hum = hit.Parent.Humanoid
  1179. tTorso=hit.Parent.Torso
  1180. --Damagefunc1(hit,20,30)
  1181. MagniDamage(hit,10,10,15,0,"Knockdown")
  1182. attackdebounce=false
  1183. --ADmg(hum,hit)
  1184. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1185. hum = hit.Parent.Parent.Humanoid
  1186. tTorso=hit.Parent.Parent.Torso
  1187. MagniDamage(hit.Parent.Parent.Torso,10,10,15,0,"Knockdown")
  1188. --Damagefunc1(hit.Parent.Parent.Torso,20,30)
  1189. attackdebounce=false
  1190. --ADmg(hum,hit)
  1191. end
  1192. for i=1,math.random(3,6) do
  1193. BreakEffect(BrickColor.new("Teal"),CFrame.new(newpos),0.5,math.random(5,20),0.5)
  1194. end
  1195. CreateSound("http://roblox.com/asset/?id=3264793",hit,1,math.random()+math.random()+1)
  1196. SphereEffect(BrickColor.new("Teal"),CFrame.new(newpos),2,2,2,3,3,3,.07)
  1197. BlockEffect(BrickColor.new("Teal"),CFrame.new(newpos),2,2,2,2,2,2,.07,1)
  1198. MoonEffect(BrickColor.new("Teal"),CFrame.new(newpos),2,2,2,.5,.5,.5,.07)
  1199. end
  1200. until rangepos <= 0
  1201. end))
  1202. end
  1203.  
  1204. function shoottrail2(mouse,baseprt)
  1205. coroutine.resume(coroutine.create(function(v)
  1206. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-mouse.Hit.p).magnitude/100
  1207. local dir = CFrame.new((baseprt.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  1208. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  1209. local rangepos = range*50
  1210. local function drawtrail(From,To)
  1211. local effectsmsh = Instance.new("SpecialMesh")
  1212. effectsmsh.Scale = Vector3.new(1,1,1)
  1213. effectsmsh.Name = "Mesh"
  1214. effectsmsh.MeshType = "Sphere"
  1215. effectsmsh.Scale=Vector3.new(5,5,5)
  1216. local effectsg = Instance.new("Part")
  1217. --effectsg.formFactor = 3
  1218. effectsg.CanCollide = false
  1219. effectsg.Name = "Eff"
  1220. effectsg.Material="Neon"
  1221. effectsg.Locked = true
  1222. effectsg.Anchored = true
  1223. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1224. effectsg.Parent = workspace
  1225. effectsmsh.Parent = effectsg
  1226. effectsg.BrickColor = BrickColor.new("Teal")
  1227. effectsg.Reflectance = 0
  1228. --particle.RotSpeed=NumberRange.new(20,20)
  1229. --particle.Rotation=NumberRange.new(180,180)
  1230. local LP = From
  1231. local point1 = To
  1232. local mg = (LP - point1).magnitude
  1233. effectsmsh.Scale = Vector3.new(50,50,50)
  1234. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1235. RingEffect(BrickColor.new("Toothpaste"),effectsg.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,2,2,2,.07)
  1236.  
  1237. coroutine.resume(coroutine.create(function()
  1238. swait()
  1239. effectsg.Parent = nil
  1240. end))
  1241. end
  1242. local newpos = baseprt.Position
  1243. local inc = rangepower/10
  1244. repeat
  1245. swait()
  1246. rangepos = rangepos - 10
  1247. --dir = dir * CFrame.Angles(math.rad(-1),0,0)
  1248. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1249. drawtrail(newpos,pos)
  1250. local list = game.Workspace:children()
  1251. local torso = nil
  1252. local dist = 100
  1253. local temp = nil
  1254. local human = nil
  1255. local temp2 = nil
  1256. --[[ for x = 1, #list do
  1257. temp2 = list[x]
  1258. if (temp2.className == "Model") and (temp2.Name~=Character.Name) then
  1259. temp = temp2:findFirstChild("Torso")
  1260. human = temp2:findFirstChild("Humanoid")
  1261. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1262. if (temp.Position - pos).magnitude < dist then
  1263. torso = temp
  1264. dist = (temp.Position - pos).magnitude
  1265. end
  1266. end
  1267. end
  1268. end]]
  1269. if torso~=nil then
  1270. dir=CFrame.new(pos,torso.Position)
  1271. end
  1272. newpos = newpos + (dir.lookVector * inc)
  1273. if hit ~= nil then
  1274. rangepos = 0
  1275. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1276. hum = hit.Parent.Humanoid
  1277. tTorso=hit.Parent.Torso
  1278. --Damagefunc1(hit,20,30)
  1279. MagniDamage(hit,20,30,55,20,"Knockdown")
  1280. attackdebounce=false
  1281. --ADmg(hum,hit)
  1282. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1283. hum = hit.Parent.Parent.Humanoid
  1284. tTorso=hit.Parent.Parent.Torso
  1285. MagniDamage(hit.Parent.Parent.Torso,20,30,55,0,"Knockdown")
  1286. --Damagefunc1(hit.Parent.Parent.Torso,20,30)
  1287. attackdebounce=false
  1288. --ADmg(hum,hit)
  1289. end
  1290. for i=1,math.random(3,6) do
  1291. BreakEffect(BrickColor.new("Teal"),CFrame.new(newpos),0.5,math.random(5,20),0.5)
  1292. end
  1293. CreateSound("http://roblox.com/asset/?id=3264793",hit,1,math.random()+math.random()+1)
  1294. local refpart1=CreatePart(Workspace,"SmoothPlastic",0,1,BrickColor.new("Toothpaste"),"Ref",vt())
  1295. refpart1.Anchored=true
  1296. refpart1.CFrame=cf(newpos)
  1297. game.Debris:AddItem(refpart1,.5)
  1298. MagniDamage(refpart1,20,30,55,0,"Knockdown")
  1299. SphereEffect(BrickColor.new("Teal"),CFrame.new(newpos),2,2,2,13,13,13,.07)
  1300. BlockEffect(BrickColor.new("Teal"),CFrame.new(newpos),2,2,2,12,12,12,.07,1)
  1301. MoonEffect(BrickColor.new("Teal"),CFrame.new(newpos),2,2,2,.5,.5,.5,.07)
  1302. end
  1303. until rangepos <= 0
  1304. end))
  1305. end
  1306.  
  1307.  
  1308. function Comet()
  1309. attack=true
  1310. for i = 0, 1, 0.1 do
  1311. swait()
  1312. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-40),math.rad(0),math.rad(-70)),0.3)
  1313. Torso.Neck.C0 = clerp(Torso.Neck.C0,NeckCF *angles(math.rad(40),math.rad(0),math.rad(70)),.3)
  1314. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(150)),0.3)
  1315. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.3)
  1316. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  1317. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3)
  1318. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(90),math.rad(0-360*i),math.rad(90)),.2)
  1319. end
  1320. for i = 0, 1, 0.1 do
  1321. swait()
  1322. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-40),math.rad(0),math.rad(-70)),0.3)
  1323. Torso.Neck.C0 = clerp(Torso.Neck.C0,NeckCF *angles(math.rad(40),math.rad(0),math.rad(70)),.3)
  1324. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(150)),0.3)
  1325. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3)
  1326. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  1327. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3)
  1328. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(90),math.rad(0-360*i),math.rad(90)),.2)
  1329. end
  1330. MoonEffect(BrickColor.new("Pastel light blue"),RootPart.CFrame*cf(0,2,0),1,1,1,.5,.5,.5,.06)
  1331. SphereEffect(BrickColor.new("Pastel light blue"),Handle.CFrame,2,2,2,3,5,3,.05)
  1332. coroutine.resume(coroutine.create(function()
  1333. for i, v in pairs(m:children()) do
  1334. if (v:IsA("BasePart")) then
  1335. v.Transparency=1
  1336. end
  1337. end
  1338. end))
  1339. CreateSound("http://www.roblox.com/asset/?id=233091161",RightArm,1,1)
  1340. shoottrail3(mouse,RightArm)
  1341. for i = 0, 1, 0.1 do
  1342. swait()
  1343. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(40),math.rad(0),math.rad(70)),0.3)
  1344. Torso.Neck.C0 = clerp(Torso.Neck.C0,NeckCF *angles(math.rad(-40),math.rad(30),math.rad(-70)),.3)
  1345. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(100), math.rad(100)),0.3)
  1346. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3)
  1347. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),0.3)
  1348. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(0)),0.3)
  1349. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.2)
  1350. end
  1351.  
  1352. SphereEffect(BrickColor.new("Pastel light blue"),Handle.CFrame,2,2,2,3,5,3,.05)
  1353. coroutine.resume(coroutine.create(function()
  1354. for i, v in pairs(m:children()) do
  1355. if (v:IsA("BasePart")) then
  1356. v.Transparency=0
  1357. end
  1358. Handle.Transparency=1
  1359. Hitbox.Transparency=1
  1360. FakeHandle.Transparency=1
  1361. end
  1362. end))
  1363. attack=false
  1364. end
  1365. function Eclipse()
  1366. attack=true
  1367. for i = 0,1,.1 do
  1368. swait()
  1369. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * angles(math.rad(50), math.rad(-50), math.rad(-50)), .3)
  1370. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-50), math.rad(0), math.rad(60)), .3)
  1371. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1372. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
  1373. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1374. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
  1375. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1376. end
  1377. for i = 0,1,.1 do
  1378. swait()
  1379. if i == .4 then
  1380. coroutine.resume(coroutine.create(function()
  1381. for i, v in pairs(Character:children()) do
  1382. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1383. v.Transparency=1
  1384. end
  1385. if (v:IsA("Hat")) then
  1386. v.Handle.Transparency=1
  1387. end
  1388. Head.face.Transparency=1
  1389. end
  1390. for i, v in pairs(m:children()) do
  1391. if (v:IsA("BasePart")) then
  1392. v.Transparency=1
  1393. end
  1394. end
  1395. end))
  1396. RingEffect(BrickColor.new("Teal"),Torso.CFrame*angles(math.rad(50),math.rad(0),math.rad(0)),2,2,1,1,1,0,0.07)
  1397. end
  1398. Torso.Velocity=RootPart.CFrame.lookVector*75
  1399. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
  1400. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-50), math.rad(0), math.rad(0)), .3)
  1401. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1402. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
  1403. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1404. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
  1405. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1406. end
  1407. for i = 1,8,1 do
  1408. local ef=CreatePart(workspace,"SmoothPlastic",0,1,BrickColor.new("Black"),"Effect",vt())
  1409. ef.Anchored=true
  1410. ef.CFrame=RootPart.CFrame*cf(0,0,-7.5*i)
  1411. CreateSound("http://www.roblox.com/asset/?id=231917788",ef,1,1)
  1412. MagniDamage(ef,12,20,35,10,"Knockdown")
  1413. --SphereEffect(BrickColor.new("Black"),ef.CFrame*angles(0,0,0),50,50,50,-5,-5,-5,0.08)
  1414. game:GetService("Debris"):AddItem(ef,.5)
  1415. SphereEffect(BrickColor.new("Teal"),ef.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.5,5,.5,0.03)
  1416. end
  1417. RootPart.CFrame=RootPart.CFrame*cf(0,0,-35)
  1418.  
  1419. coroutine.resume(coroutine.create(function()
  1420. for i, v in pairs(Character:children()) do
  1421. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1422. v.Transparency=0
  1423. end
  1424. if (v:IsA("Hat")) then
  1425. v.Handle.Transparency=0
  1426. end
  1427. Head.face.Transparency=0
  1428. end
  1429. for i, v in pairs(m:children()) do
  1430. if (v:IsA("BasePart")) then
  1431. v.Transparency=0
  1432. end
  1433. end
  1434. Hitbox.Transparency=1
  1435. Handle.Transparency=1
  1436. FakeHandle.Transparency=1
  1437. end))
  1438. RootPart.CFrame=RootPart.CFrame*cf(0,0,-35)
  1439. for i = 0,1,.1 do
  1440. swait()
  1441. if i == .1 then
  1442. coroutine.resume(coroutine.create(function()
  1443. for i, v in pairs(Character:children()) do
  1444. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1445. v.Transparency=0
  1446. end
  1447. if (v:IsA("Hat")) then
  1448. v.Handle.Transparency=0
  1449. end
  1450. Head.face.Transparency=0
  1451. end
  1452. for i, v in pairs(m:children()) do
  1453. if (v:IsA("BasePart")) then
  1454. v.Transparency=0
  1455. end
  1456. Handle.Transparency=1
  1457. FakeHandle.Transparency=1
  1458. Hitbox.Transparency=1
  1459. end
  1460. end))
  1461. RingEffect(BrickColor.new("Teal"),Torso.CFrame*angles(math.rad(50),math.rad(0),math.rad(0)),2,2,1,1,1,0,0.07)
  1462. end
  1463. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -5, -1) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
  1464. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-50), math.rad(0), math.rad(0)), .3)
  1465. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1466. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
  1467. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1468. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
  1469. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1470. end
  1471.  
  1472. attack=false
  1473. end
  1474.  
  1475. --[[Attacks]]--
  1476.  
  1477. mouse.Button1Down:connect(function()
  1478. if attack == false and attacktype == 1 then
  1479. attacktype=2
  1480. attackone()
  1481. elseif attack == false and attacktype == 2 then
  1482. attacktype=3
  1483. attacktwo()
  1484. elseif attack == false and attacktype == 3 then
  1485. attacktype=1
  1486. attackthree()
  1487. end
  1488. end)
  1489.  
  1490. mouse.KeyDown:connect(function(k)
  1491. k = k:lower()
  1492. if attack == false and k == 'z' then
  1493. Luna()
  1494. elseif attack == false and k == 'x' then
  1495. Comet()
  1496. elseif attack == false and k == 'c' then
  1497. Eclipse()
  1498. elseif attack == false and k == 'v' then
  1499. Finale()
  1500. elseif attack == false and k == 'b' then
  1501. TriOrbs()
  1502. end
  1503. end)
  1504.  
  1505. mouse.KeyUp:connect(function(k)
  1506. k = k:lower()
  1507. if attack == true and k == 'z' then
  1508. LunarStrike()
  1509. prep=false
  1510. end
  1511. end)
  1512.  
  1513. --[[Movement Detection]]--
  1514.  
  1515. while true do
  1516. swait()
  1517. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1518. velocity = RootPart.Velocity.y
  1519. sine = sine + change
  1520. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1521. if equipped == true or equipped == false then
  1522. if RootPart.Velocity.y > 1 and hit == nil then
  1523. Anim = "Jump"
  1524. if attack == false then
  1525. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1526. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1527. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1528. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1529. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1530. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1531. end
  1532. elseif RootPart.Velocity.y < -1 and hit == nil then
  1533. Anim = "Fall"
  1534. if attack == false then
  1535. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(5), math.rad(0)), .3)
  1536. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1537. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  1538. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(10), math.rad(0)), .3)
  1539. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1540. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(10)), .3)
  1541. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1542. end
  1543. elseif Torsovelocity < 1 and hit ~= nil then
  1544. Anim = "Idle"
  1545. if attack == false then
  1546. change = 1
  1547. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(5), math.rad(-50)), .3)
  1548. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(60)), .3)
  1549. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1550. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
  1551. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  1552. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
  1553. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1554. end
  1555. elseif Torsovelocity > 2 and hit ~= nil then
  1556. Anim = "Walk"
  1557. if attack == false then
  1558. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1559. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(10)), .3)
  1560. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(50)), .3)
  1561. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1562. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1563. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1564. end
  1565. end
  1566. end
  1567. if #Effects > 0 then
  1568. for e = 1, #Effects do
  1569. if Effects[e] ~= nil then
  1570. local Thing = Effects[e]
  1571. if Thing ~= nil then
  1572. local Part = Thing[1]
  1573. local Mode = Thing[2]
  1574. local Delay = Thing[3]
  1575. local IncX = Thing[4]
  1576. local IncY = Thing[5]
  1577. local IncZ = Thing[6]
  1578. if Thing[1].Transparency <= 1 then
  1579. if Thing[2] == "Block1" then
  1580. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1581. Mesh = Thing[1].Mesh
  1582. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1583. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1584. elseif Thing[2] == "Block2" then
  1585. Thing[1].CFrame = Thing[1].CFrame
  1586. Mesh = Thing[7]
  1587. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1588. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1589. elseif Thing[2] == "Cylinder" then
  1590. Mesh = Thing[1].Mesh
  1591. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1592. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1593. elseif Thing[2] == "Blood" then
  1594. Mesh = Thing[7]
  1595. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1596. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1597. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1598. elseif Thing[2] == "Elec" then
  1599. Mesh = Thing[1].Mesh
  1600. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1601. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1602. elseif Thing[2] == "Disappear" then
  1603. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1604. elseif Thing[2] == "Shatter" then
  1605. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1606. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1607. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1608. Thing[6] = Thing[6] + Thing[5]
  1609. end
  1610. else
  1611. Part.Parent = nil
  1612. table.remove(Effects, e)
  1613. end
  1614. end
  1615. end
  1616. end
  1617. end
  1618. end
  1619.  
  1620. script = nil
Add Comment
Please, Sign In to add comment