Elunis


SUBMITTED BY: Pamlau

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

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

FORMAT: Lua

SIZE: 78.4 kB

HITS: 384

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

comments powered by Disqus