Elunis


SUBMITTED BY: Pamlau

DATE: March 8, 2017, 10:14 a.m.

UPDATED: March 8, 2017, 10:14 a.m.

FORMAT: Lua

SIZE: 78.3 kB

HITS: 367

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

comments powered by Disqus