Advertisement
Guest User

secret

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