Advertisement
Dark_EccentricYT

Untitled

Jan 28th, 2017
831
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.75 KB | None | 0 0
  1. wait(0.016666666666667)
  2. Effects = {}
  3. local Player = game.Players.localPlayer
  4. local Character = Player.Character
  5. coroutine.resume(coroutine.create(function()
  6. repeat
  7. until Character:FindFirstChild("Animate")
  8. Character.Animate:Remove()
  9. end
  10. ))
  11. local Humanoid = Character.Humanoid
  12. local mouse = Player:GetMouse()
  13. local m = Instance.new("Model", Character)
  14. xenabled = true
  15. cenabled = true
  16. venabled = true
  17. zenabled = true
  18. m.Name = "WeaponModel"
  19. local LeftArm = Character["Left Arm"]
  20. local RightArm = Character["Right Arm"]
  21. local LeftLeg = Character["Left Leg"]
  22. local RightLeg = Character["Right Leg"]
  23. local Head = Character.Head
  24. local Torso = Character.Torso
  25. local it = Instance.new
  26. local mana = 100
  27. local mananum = 0
  28. local cam = game.Workspace.CurrentCamera
  29. local RootPart = Character.HumanoidRootPart
  30. local RootJoint = RootPart.RootJoint
  31. local equipped = false
  32. local attack = false
  33. local Anim = "Idle"
  34. local idle = 0
  35. local attacktype = 1
  36. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  37. local velocity = RootPart.Velocity.y
  38. local sine = 0
  39. local change = 1
  40. local grabbed = false
  41. local cf = CFrame.new
  42. local mr = math.rad
  43. local angles = CFrame.Angles
  44. local ud = UDim2.new
  45. local c3 = Color3.new
  46. local vt = Vector3.new
  47. local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  48. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  49. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  50. local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0))
  51. RSH = nil
  52. RW = Instance.new("Weld")
  53. LW = Instance.new("Weld")
  54. RH = Torso["Right Hip"]
  55. LH = Torso["Left Hip"]
  56. RSH = Torso["Right Shoulder"]
  57. LSH = Torso["Left Shoulder"]
  58. RSH.Parent = nil
  59. LSH.Parent = nil
  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. LW.Name = "LW"
  67. LW.Part0 = Torso
  68. LW.C0 = cf(-1.5, 0.5, 0)
  69. LW.C1 = cf(0, 0.5, 0)
  70. LW.Part1 = LeftArm
  71. LW.Parent = Torso
  72. clerp = function(a, b, t)
  73. return a:lerp(b, t)
  74. end
  75.  
  76. ArtificialHB = Instance.new("BindableEvent", script)
  77. ArtificialHB.Name = "Heartbeat"
  78. script:WaitForChild("Heartbeat")
  79. frame = 0.016666666666667
  80. tf = 0
  81. allowframeloss = false
  82. tossremainder = false
  83. lastframe = tick()
  84. script.Heartbeat:Fire()
  85. game:GetService("RunService").Heartbeat:connect(function(s, p)
  86. tf = tf + s
  87. if frame <= tf then
  88. if allowframeloss then
  89. script.Heartbeat:Fire()
  90. lastframe = tick()
  91. else
  92. for i = 1, math.floor(tf / frame) do
  93. script.Heartbeat:Fire()
  94. end
  95. lastframe = tick()
  96. end
  97. if tossremainder then
  98. tf = 0
  99. else
  100. tf = tf - frame * math.floor(tf / frame)
  101. end
  102. end
  103. end
  104. )
  105. swait = function(num)
  106. if num == 0 or num == nil then
  107. ArtificialHB.Event:wait()
  108. else
  109. for i = 0, num do
  110. ArtificialHB.Event:wait()
  111. end
  112. end
  113. end
  114.  
  115. pwait = function(num)
  116. if num == 0 or num == nil then
  117. game:service("RunService").Heartbeat:wait(0)
  118. else
  119. for i = 0, num do
  120. game:service("RunService").Heartbeat:wait(0)
  121. end
  122. end
  123. end
  124.  
  125. local RbxUtility = LoadLibrary("RbxUtility")
  126. local Create = RbxUtility.Create
  127. RemoveOutlines = function(part)
  128. part.TopSurface = 10
  129. end
  130.  
  131. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  132. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  133. RemoveOutlines(Part)
  134. return Part
  135. end
  136.  
  137. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  138. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  139. if Mesh == "SpecialMesh" then
  140. Msh.MeshType = MeshType
  141. Msh.MeshId = MeshId
  142. end
  143. return Msh
  144. end
  145.  
  146. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  147. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  148. return Weld
  149. end
  150.  
  151. Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Handle", Vector3.new(0.256618977, 0.513238013, 0.256619006))
  152. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.061750412, 0.0278501511, 1.0341754, -1, -7.10542736e-015, 5.96046377e-008, 5.96046377e-008, -2.08616228e-007, 1, 5.32906755e-015, 1, 2.08616228e-007))
  153. FakeHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "FakeHandle", Vector3.new(3.28472281, 0.256618977, 0.256619006))
  154. FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.105093956, -0.0199890137, -0.0300004482, -1.03316026e-007, -1, -8.94069387e-008, 1, -1.03316026e-007, -1.44479731e-014, 5.21080312e-015, -8.94069387e-008, 1))
  155. CreateMesh("SpecialMesh", FakeHandle, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000012))
  156. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(4.49472284, 0.256618977, 0.256619006))
  157. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.710092068, -0.0199890137, -0.0300000906, -1.03316026e-007, -1, -8.94069387e-008, 1, -1.03316026e-007, -1.44479731e-014, 5.21080312e-015, -8.94069387e-008, 1))
  158. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000012))
  159. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.975152254, 0.20529519))
  160. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0300002098, -0.133047104, -1.54444218, -1.57369371e-007, -4.17232457e-007, 1, -0.965925872, 0.258818954, -4.40194583e-008, -0.258818954, -0.965925872, -4.4374579e-007))
  161. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.769857407, 1, 1))
  162. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.20529522, 0.461914182, 0.359266639))
  163. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.80496454, -0.0199890137, -0.0300019979, -1.03316026e-007, -1, 0, 1, -1.03316026e-007, -1.17834379e-014, 1.1783437e-014, 0, 1))
  164. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000012))
  165. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Teal", "Part", Vector3.new(0.200000003, 0.513238013, 0.200000003))
  166. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0299994946, -1.41456223, -1.86634827, 1.37678768e-007, -2.08616243e-007, 1, -0.707106888, -0.70710665, -5.01603168e-008, 0.707106709, -0.707106888, -2.44867579e-007))
  167. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.769857407, 1, 0.769856989))
  168. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.975152254, 0.20529519))
  169. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0300002098, 0.188333511, -1.55925751, -4.22219841e-008, -4.76837158e-007, 1, -0.965925813, -0.258819073, -1.64197857e-007, 0.258819073, -0.965925872, -4.49661485e-007))
  170. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Teal", "Part", Vector3.new(0.200000003, 0.513238013, 0.200000003))
  171. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0299998522, 1.66497517, -1.23850822, 5.33850972e-008, 5.96046164e-008, -1, 0.707106948, 0.70710659, 7.98957771e-008, 0.70710659, -0.707106948, -4.39787584e-009))
  172. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.769857407, 1, 0.769856989))
  173. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Teal", "Part", Vector3.new(0.200000003, 0.513238013, 0.200000003))
  174. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0300006866, 1.67763519, -1.2258482, -1.15202361e-007, -4.17232485e-007, 1, -0.707106769, 0.707106769, 2.13567517e-007, -0.707106829, -0.707106769, -3.76488288e-007))
  175. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.769857407, 1, 0.769856989))
  176. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.20529522, 0.461914182, 0.359266639))
  177. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.58858728, -0.0199890137, -0.0300019979, -1.03316026e-007, -1, 0, 1, -1.03316026e-007, -1.17834379e-014, 1.1783437e-014, 0, 1))
  178. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000012))
  179. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Teal", "Part", Vector3.new(0.200000003, 0.256618977, 0.256619006))
  180. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0299985409, -0.0199890137, -2.18907928, -4.37113954e-008, 0, -1, 1, -5.96046306e-008, -4.37113954e-008, -5.96046306e-008, -1, 0))
  181. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.769857407, 1, 0.800000012))
  182. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.513238072, 0.20529519))
  183. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0299994946, 0.182710648, -2.2025485, -4.22219664e-008, 0, -1, 0.965925813, -0.258819193, -4.07832914e-008, -0.258819193, -0.965925813, 1.09278488e-008))
  184. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.769857407, 1, 1))
  185. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Teal", "Part", Vector3.new(0.200000003, 0.513238013, 0.200000003))
  186. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0299996138, -1.4272213, -1.85368919, -1.99496043e-007, 2.68220873e-007, -1, 0.707106829, -0.707106829, -3.30725811e-007, -0.707106769, -0.707106829, -4.85958083e-008))
  187. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.769857407, 1, 0.769856989))
  188. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.513238072, 0.20529519))
  189. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0300005674, 0.242616653, -2.21860123, -4.22219841e-008, -4.76837158e-007, 1, -0.965925813, -0.258819073, -1.64197857e-007, 0.258819073, -0.965925872, -4.49661485e-007))
  190. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.769857407, 1, 1))
  191. RingMesh = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "RingMesh", Vector3.new(0.513237953, 0.513238013, 0.513238013))
  192. RingMeshWeld = CreateWeld(m, FakeHandle, RingMesh, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.599939346, -1.72953081, -0.0197352171, -1, 2.10600447e-007, 1.19248886e-008, -2.10600462e-007, -1, 0, 1.19248886e-008, 0, 1))
  193. CreateMesh("SpecialMesh", RingMesh, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.513237953, 0.513238013, 0.513238013))
  194. RingMesh = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "RingMesh", Vector3.new(0.513237953, 0.513238013, 0.513238013))
  195. RingMeshWeld = CreateWeld(m, FakeHandle, RingMesh, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.544584274, -1.72953081, -0.0197352171, -1, 2.10600447e-007, 1.19248886e-008, -2.10600462e-007, -1, 0, 1.19248886e-008, 0, 1))
  196. CreateMesh("SpecialMesh", RingMesh, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.513237953, 0.513238013, 0.513238013))
  197. RingMesh = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "RingMesh", Vector3.new(0.513237953, 0.513238013, 0.513238013))
  198. RingMeshWeld = CreateWeld(m, FakeHandle, RingMesh, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0348472595, 3.20683551, -0.0197354555, -1, 2.10600447e-007, 1.19248886e-008, -2.10600462e-007, -1, 0, 1.19248886e-008, 0, 1))
  199. CreateMesh("SpecialMesh", RingMesh, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.513237953, 0.513238013, 2.56619))
  200. Tip = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Tip", Vector3.new(0.513237953, 0.513238013, 0.513238013))
  201. TipWeld = CreateWeld(m, FakeHandle, Tip, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0148487091, -2.17605066, -0.0197348595, -1, 2.10600447e-007, 1.19248886e-008, -2.10600462e-007, -1, 0, 1.19248886e-008, 0, 1))
  202. CreateMesh("SpecialMesh", Tip, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.02647591, 1.02647603, 2.56619))
  203. Handle = CreatePart(m, Enum.Material.Neon, 0, 1, "Toothpaste", "Handle", Vector3.new(0.570000172, 0.470000178, 0.570000172))
  204. HandleWeld = CreateWeld(m, Character.Head, Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0200500488, -0.0350050926, -0.11493969, -1, 0, 0, 0, 1, 0, 0, 0, -1))
  205. Ball1 = CreatePart(m, Enum.Material.Neon, 0, 0, "Toothpaste", "Ball1", Vector3.new(0.570000172, 0.570000172, 0.570000172))
  206. Ball1Weld = CreateWeld(m, Handle, Ball1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.600000381, 0.564999819, -0.70000124, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  207. CreateMesh("SpecialMesh", Ball1, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  208. Ball3 = CreatePart(m, Enum.Material.Neon, 0, 0, "Toothpaste", "Ball3", Vector3.new(0.570000172, 0.570000172, 0.570000172))
  209. Ball3Weld = CreateWeld(m, Handle, Ball3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.699998856, 0.564999819, -0.70000124, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  210. CreateMesh("SpecialMesh", Ball3, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  211. Ball4 = CreatePart(m, Enum.Material.Neon, 0, 0, "Toothpaste", "Ball4", Vector3.new(0.570000172, 0.570000172, 0.570000172))
  212. Ball4Weld = CreateWeld(m, Handle, Ball4, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.10000038, 0.0649995804, -9.53674316e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  213. CreateMesh("SpecialMesh", Ball4, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  214. Ball5 = CreatePart(m, Enum.Material.Neon, 0, 0, "Toothpaste", "Ball5", Vector3.new(0.570000172, 0.570000172, 0.570000172))
  215. Ball5Weld = CreateWeld(m, Handle, Ball5, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.699998856, -0.635000229, 0.699998856, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  216. CreateMesh("SpecialMesh", Ball5, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  217. Ball6 = CreatePart(m, Enum.Material.Neon, 0, 0, "Toothpaste", "Ball6", Vector3.new(0.570000172, 0.570000172, 0.570000172))
  218. Ball6Weld = CreateWeld(m, Handle, Ball6, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0999984741, -1.43500042, 0.599998951, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  219. CreateMesh("SpecialMesh", Ball6, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  220. Ball7 = CreatePart(m, Enum.Material.Neon, 0, 0, "Toothpaste", "Ball7", Vector3.new(0.570000172, 0.570000172, 0.570000172))
  221. Ball7Weld = CreateWeld(m, Handle, Ball7, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.700000763, -0.635000229, 0.699998856, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  222. CreateMesh("SpecialMesh", Ball7, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  223. Ball2 = CreatePart(m, Enum.Material.Neon, 0, 0, "Toothpaste", "Ball2", Vector3.new(0.570000172, 0.570000172, 0.570000172))
  224. Ball2Weld = CreateWeld(m, Handle, Ball2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 1.16499972, -1.00000143, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  225. CreateMesh("SpecialMesh", Ball2, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  226. Ball8 = CreatePart(m, Enum.Material.Neon, 0, 0, "Toothpaste", "Ball8", Vector3.new(0.570000172, 0.570000172, 0.570000172))
  227. Ball8Weld = CreateWeld(m, Handle, Ball8, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.10000038, 0.0649995804, -9.53674316e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  228. CreateMesh("SpecialMesh", Ball8, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  229. rayCast = function(Position, Direction, Range, Ignore)
  230. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  231. end
  232.  
  233. local fengui = it("GuiMain")
  234. fengui.Parent = Player.PlayerGui
  235. fengui.Name = "WeaponGUI"
  236. local fenframe = it("Frame")
  237. fenframe.Parent = fengui
  238. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  239. fenframe.BackgroundTransparency = 1
  240. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  241. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  242. fenframe.Position = UDim2.new(0.4, 0, 0.1, 0)
  243. local fenbarmana1 = it("TextLabel")
  244. fenbarmana1.Parent = fenframe
  245. fenbarmana1.Text = " "
  246. fenbarmana1.BackgroundTransparency = 0
  247. fenbarmana1.BackgroundColor3 = Color3.new(0, 0, 0)
  248. fenbarmana1.SizeConstraint = "RelativeXY"
  249. fenbarmana1.TextXAlignment = "Center"
  250. fenbarmana1.TextYAlignment = "Center"
  251. fenbarmana1.Position = UDim2.new(0, 0, 0, 0)
  252. fenbarmana1.Size = UDim2.new(4, 0, 0.2, 0)
  253. local fenbarmana2 = it("TextLabel")
  254. fenbarmana2.Parent = fenframe
  255. fenbarmana2.Text = " "
  256. fenbarmana2.BackgroundTransparency = 0
  257. fenbarmana2.BackgroundColor3 = Torso.Color
  258. fenbarmana2.SizeConstraint = "RelativeXY"
  259. fenbarmana2.TextXAlignment = "Center"
  260. fenbarmana2.TextYAlignment = "Center"
  261. fenbarmana2.Position = UDim2.new(0, 0, 0, 0)
  262. fenbarmana2.Size = UDim2.new(4 * mana / 100, 0, 0.2, 0)
  263. local fenbarmana3 = it("TextLabel")
  264. fenbarmana3.Parent = fenframe
  265. fenbarmana3.Text = " "
  266. fenbarmana3.BackgroundTransparency = 0
  267. fenbarmana3.BackgroundColor3 = Color3.new(Col1, Col2, Col3)
  268. fenbarmana3.SizeConstraint = "RelativeXY"
  269. fenbarmana3.TextXAlignment = "Center"
  270. fenbarmana3.TextYAlignment = "Center"
  271. fenbarmana3.Position = UDim2.new(0, 0, 0, 0)
  272. fenbarmana3.Size = UDim2.new(0, 0, 0.2, 0)
  273. local fenbarmana4 = it("TextLabel")
  274. fenbarmana4.Parent = fenframe
  275. fenbarmana4.Text = "Energy(" .. mana .. ")"
  276. fenbarmana4.BackgroundTransparency = 1
  277. fenbarmana4.BackgroundColor3 = Color3.new(0, 0, 0)
  278. fenbarmana4.SizeConstraint = "RelativeXY"
  279. fenbarmana4.TextXAlignment = "Center"
  280. fenbarmana4.TextYAlignment = "Center"
  281. fenbarmana4.Position = UDim2.new(0, 0, -0.3, 0)
  282. fenbarmana4.Size = UDim2.new(4, 0, 0.2, 0)
  283. fenbarmana4.FontSize = "Size9"
  284. fenbarmana4.TextStrokeTransparency = 0
  285. fenbarmana4.TextColor = BrickColor.new("White")
  286. local fengui = it("GuiMain")
  287. fengui.Parent = Player.PlayerGui
  288. fengui.Name = "WeaponGUI"
  289. local fenframe1 = it("TextLabel")
  290. fenframe1.Parent = fengui
  291. fenframe1.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  292. fenframe1.BackgroundTransparency = 0.3
  293. fenframe1.BorderSizePixel = 5
  294. fenframe1.BorderColor3 = Color3.new(1, 1, 1)
  295. fenframe1.Size = UDim2.new(0.05, 0, 0.1, 0)
  296. fenframe1.Position = UDim2.new(0.325, 0, 0.7, 0)
  297. fenframe1.Text = "Z"
  298. fenframe1.TextWrapped = true
  299. fenframe1.FontSize = 7
  300. fenframe1.TextColor3 = Color3.new(1, 1, 1)
  301. local fenframe1a = it("TextLabel")
  302. fenframe1a.Parent = fengui
  303. fenframe1a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  304. fenframe1a.BackgroundTransparency = 0.3
  305. fenframe1a.BorderSizePixel = 5
  306. fenframe1a.BorderColor3 = Color3.new(1, 1, 1)
  307. fenframe1a.Size = UDim2.new(0.05, 0, 0.1, 0)
  308. fenframe1a.Position = UDim2.new(0.325, 0, 0.7, 0)
  309. fenframe1a.Text = ""
  310. local fenframe2 = it("TextLabel")
  311. fenframe2.Parent = fengui
  312. fenframe2.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  313. fenframe2.BackgroundTransparency = 0.3
  314. fenframe2.BorderSizePixel = 5
  315. fenframe2.BorderColor3 = Color3.new(1, 1, 1)
  316. fenframe2.Size = UDim2.new(0.05, 0, 0.1, 0)
  317. fenframe2.Position = UDim2.new(0.425, 0, 0.7, 0)
  318. fenframe2.Text = "X"
  319. fenframe2.TextWrapped = true
  320. fenframe2.FontSize = 7
  321. fenframe2.TextColor3 = Color3.new(1, 1, 1)
  322. local fenframe2a = it("TextLabel")
  323. fenframe2a.Parent = fengui
  324. fenframe2a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  325. fenframe2a.BackgroundTransparency = 0.3
  326. fenframe2a.BorderSizePixel = 5
  327. fenframe2a.BorderColor3 = Color3.new(1, 1, 1)
  328. fenframe2a.Size = UDim2.new(0.05, 0, 0.1, 0)
  329. fenframe2a.Position = UDim2.new(0.425, 0, 0.7, 0)
  330. fenframe2a.Text = ""
  331. local fenframe3 = it("TextLabel")
  332. fenframe3.Parent = fengui
  333. fenframe3.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  334. fenframe3.BackgroundTransparency = 0.3
  335. fenframe3.BorderSizePixel = 5
  336. fenframe3.BorderColor3 = Color3.new(1, 1, 1)
  337. fenframe3.Size = UDim2.new(0.05, 0, 0.1, 0)
  338. fenframe3.Position = UDim2.new(0.525, 0, 0.7, 0)
  339. fenframe3.Text = "C"
  340. fenframe3.TextWrapped = true
  341. fenframe3.FontSize = 7
  342. fenframe3.TextColor3 = Color3.new(1, 1, 1)
  343. local fenframe3a = it("TextLabel")
  344. fenframe3a.Parent = fengui
  345. fenframe3a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  346. fenframe3a.BackgroundTransparency = 0.3
  347. fenframe3a.BorderSizePixel = 5
  348. fenframe3a.BorderColor3 = Color3.new(1, 1, 1)
  349. fenframe3a.Size = UDim2.new(0.05, 0, 0.1, 0)
  350. fenframe3a.Position = UDim2.new(0.525, 0, 0.7, 0)
  351. fenframe3a.Text = ""
  352. local fenframe4 = it("TextLabel")
  353. fenframe4.Parent = fengui
  354. fenframe4.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  355. fenframe4.BackgroundTransparency = 0.3
  356. fenframe4.BorderSizePixel = 5
  357. fenframe4.BorderColor3 = Color3.new(1, 1, 1)
  358. fenframe4.Size = UDim2.new(0.05, 0, 0.1, 0)
  359. fenframe4.Position = UDim2.new(0.625, 0, 0.7, 0)
  360. fenframe4.Text = "V"
  361. fenframe4.TextWrapped = true
  362. fenframe4.FontSize = 7
  363. fenframe4.TextColor3 = Color3.new(1, 1, 1)
  364. local fenframe4a = it("TextLabel")
  365. fenframe4a.Parent = fengui
  366. fenframe4a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  367. fenframe4a.BackgroundTransparency = 0.3
  368. fenframe4a.BorderSizePixel = 5
  369. fenframe4a.BorderColor3 = Color3.new(1, 1, 1)
  370. fenframe4a.Size = UDim2.new(0.05, 0, 0.1, 0)
  371. fenframe4a.Position = UDim2.new(0.625, 0, 0.7, 0)
  372. fenframe4a.Text = ""
  373. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  374. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  375. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  376. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  377. CreateSound = function(id, par, vol, pit)
  378. coroutine.resume(coroutine.create(function()
  379. local sou = Instance.new("Sound", par or workspace)
  380. sou.Volume = vol
  381. sou.Pitch = pit or 1
  382. sou.SoundId = id
  383. swait()
  384. sou:play()
  385. game:GetService("Debris"):AddItem(sou, 6)
  386. end
  387. ))
  388. end
  389.  
  390. local getclosest = function(obj, distance)
  391. local last, lastx = distance + 1, nil
  392. for i,v in pairs(workspace:GetChildren()) do
  393. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  394. local t = v.Torso
  395. local dist = t.Position - obj.Position.magnitude
  396. if dist <= distance and dist < last then
  397. last = dist
  398. lastx = v
  399. end
  400. end
  401. end
  402. return lastx
  403. end
  404.  
  405. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  406. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  407. prt.Anchored = true
  408. prt.CFrame = cframe
  409. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  410. game:GetService("Debris"):AddItem(prt, 10)
  411. if Type == 1 or Type == nil then
  412. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  413. else
  414. if Type == 2 then
  415. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  416. end
  417. end
  418. end
  419.  
  420. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  421. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  422. prt.Anchored = true
  423. prt.CFrame = cframe
  424. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  425. game:GetService("Debris"):AddItem(prt, 10)
  426. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  427. end
  428.  
  429. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  430. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  431. prt.Anchored = true
  432. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  433. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  434. game:GetService("Debris"):AddItem(prt, 10)
  435. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  436. end
  437.  
  438. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  439. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  440. prt.Anchored = true
  441. prt.CFrame = cframe
  442. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  443. game:GetService("Debris"):AddItem(prt, 10)
  444. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  445. end
  446.  
  447. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  448. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  449. prt.Anchored = true
  450. prt.CFrame = cframe
  451. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  452. game:GetService("Debris"):AddItem(prt, 10)
  453. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  454. end
  455.  
  456. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  457. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  458. prt.Anchored = true
  459. prt.CFrame = cframe
  460. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  461. game:GetService("Debris"):AddItem(prt, 10)
  462. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  463. end
  464.  
  465. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  466. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  467. prt.Anchored = true
  468. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  469. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  470. local num = math.random(10, 50) / 1000
  471. game:GetService("Debris"):AddItem(prt, 10)
  472. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  473. end
  474.  
  475. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, decreaseblock)
  476. if hit.Parent == nil then
  477. return
  478. end
  479. local h = hit.Parent:FindFirstChild("Humanoid")
  480. for _,v in pairs(hit.Parent:children()) do
  481. if v:IsA("Humanoid") then
  482. h = v
  483. end
  484. end
  485. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  486. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  487. end
  488. if hit.Parent.className == "Hat" then
  489. hit = hit.Parent.Parent:findFirstChild("Head")
  490. end
  491. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  492. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  493. return
  494. end
  495. local c = Instance.new("ObjectValue")
  496. c.Name = "creator"
  497. c.Value = game:service("Players").LocalPlayer
  498. c.Parent = h
  499. game:GetService("Debris"):AddItem(c, 0.5)
  500. local Damage = math.random(minim, maxim)
  501. local blocked = false
  502. local block = hit.Parent:findFirstChild("Block")
  503. if block ~= nil then
  504. print(block.className)
  505. if block.className == "NumberValue" and block.Value > 0 then
  506. blocked = true
  507. if decreaseblock == nil then
  508. block.Value = block.Value - 1
  509. end
  510. end
  511. if block.className == "IntValue" and block.Value > 0 then
  512. blocked = true
  513. if decreaseblock ~= nil then
  514. block.Value = block.Value - 1
  515. end
  516. end
  517. end
  518. if blocked == false then
  519. HitHealth = h.Health
  520. h.Health = h.Health - Damage
  521. if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 and h.Parent.Name ~= "Lost Soul" then
  522. print("gained spree")
  523. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value = game.Players.LocalPlayer.leaderstats.Spree.Value + 1
  524. end
  525. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  526. else
  527. h.Health = h.Health - Damage / 2
  528. 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)
  529. end
  530. if Type == "Knockdown" then
  531. local hum = hit.Parent.Humanoid
  532. hum.PlatformStand = true
  533. coroutine.resume(coroutine.create(function(HHumanoid)
  534. swait(1)
  535. HHumanoid.PlatformStand = false
  536. end
  537. ), hum)
  538. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  539. local bodvol = Instance.new("BodyVelocity")
  540. bodvol.velocity = angle * knockback
  541. bodvol.P = 5000
  542. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  543. bodvol.Parent = hit
  544. local rl = Instance.new("BodyAngularVelocity")
  545. rl.P = 3000
  546. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  547. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  548. rl.Parent = hit
  549. game:GetService("Debris"):AddItem(bodvol, 0.5)
  550. game:GetService("Debris"):AddItem(rl, 0.5)
  551. else
  552. do
  553. if Type == "Normal" then
  554. local vp = Instance.new("BodyVelocity")
  555. vp.P = 500
  556. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  557. if KnockbackType == 1 then
  558. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  559. else
  560. if KnockbackType == 2 then
  561. vp.velocity = Property.CFrame.lookVector * knockback
  562. end
  563. end
  564. else
  565. do
  566. if Type == "Curse" then
  567. CreateSound("http://roblox.com/asset/?id=418097747", Torso, 1, 1)
  568. for i = 0, 1, 0.025 do
  569. swait()
  570. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  571. hit.Parent.Humanoid:TakeDamage(0.5)
  572. end
  573. else
  574. do
  575. if Type == "Heal" then
  576. CreateSound("http://roblox.com/asset/?id=418097928", Torso, 1, 1)
  577. for i = 0, 1, 0.025 do
  578. swait()
  579. BlockEffect(BrickColor.new("New Yeller"), hit.Parent.Torso.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  580. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health + 0.5
  581. end
  582. else
  583. do
  584. if Type == "Up" then
  585. local bodyVelocity = Instance.new("BodyVelocity")
  586. bodyVelocity.velocity = vt(0, 60, 0)
  587. bodyVelocity.P = 5000
  588. bodyVelocity.maxForce = Vector3.new(8000, 8000, 8000)
  589. bodyVelocity.Parent = hit
  590. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  591. local rl = Instance.new("BodyAngularVelocity")
  592. rl.P = 3000
  593. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  594. rl.angularvelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  595. rl.Parent = hit
  596. game:GetService("Debris"):AddItem(rl, 0.5)
  597. else
  598. do
  599. if Type == "Snare" then
  600. local bp = Instance.new("BodyPosition")
  601. bp.P = 2000
  602. bp.D = 100
  603. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  604. bp.position = hit.Parent.Torso.Position
  605. bp.Parent = hit.Parent.Torso
  606. game:GetService("Debris"):AddItem(bp, 1)
  607. else
  608. do
  609. if Type == "Target" then
  610. local Targetting = false
  611. if Targetting == false then
  612. ZTarget = hit.Parent.Torso
  613. coroutine.resume(coroutine.create(function(Part)
  614. so("http://www.roblox.com/asset/?id=15666462", Part, 1, 1.5)
  615. swait(5)
  616. so("http://www.roblox.com/asset/?id=15666462", Part, 1, 1.5)
  617. end
  618. ), ZTarget)
  619. local TargHum = ZTarget.Parent:findFirstChild("Humanoid")
  620. local targetgui = Instance.new("BillboardGui")
  621. targetgui.Parent = ZTarget
  622. targetgui.Size = UDim2.new(10, 100, 10, 100)
  623. local targ = Instance.new("ImageLabel")
  624. targ.Parent = targetgui
  625. targ.BackgroundTransparency = 1
  626. targ.Image = "rbxassetid://4834067"
  627. targ.Size = UDim2.new(1, 0, 1, 0)
  628. cam.CameraType = "Scriptable"
  629. cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position)
  630. local dir = Vector3.new(cam.CoordinateFrame.lookVector.x, 0, cam.CoordinateFrame.lookVector.z)
  631. workspace.CurrentCamera.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position)
  632. Targetting = true
  633. RocketTarget = ZTarget
  634. for i = 1, Property do
  635. if Humanoid.Health > 0 and Character.Parent ~= nil and TargHum.Health > 0 and TargHum.Parent ~= nil and Targetting == true then
  636. swait()
  637. end
  638. cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position)
  639. dir = Vector3.new(cam.CoordinateFrame.lookVector.x, 0, cam.CoordinateFrame.lookVector.z)
  640. cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position) * cf(0, 5, 10) * euler(-0.3, 0, 0)
  641. end
  642. Targetting = false
  643. RocketTarget = nil
  644. targetgui.Parent = nil
  645. cam.CameraType = "Custom"
  646. end
  647. end
  648. do
  649. local debounce = Instance.new("BoolValue")
  650. debounce.Name = "DebounceHit"
  651. debounce.Parent = hit.Parent
  652. debounce.Value = true
  653. game:GetService("Debris"):AddItem(debounce, Delay)
  654. c = Instance.new("ObjectValue")
  655. c.Name = "creator"
  656. c.Value = Player
  657. c.Parent = h
  658. game:GetService("Debris"):AddItem(c, 0.5)
  659. end
  660. end
  661. end
  662. end
  663. end
  664. end
  665. end
  666. end
  667. end
  668. end
  669. end
  670. end
  671. end
  672. end
  673. end
  674.  
  675. ShowDamage = function(Pos, Text, Time, Color)
  676. local Rate = 0.033333333333333
  677. if not Pos then
  678. local Pos = Vector3.new(0, 0, 0)
  679. end
  680. local Text = Text or ""
  681. local Time = Time or 2
  682. if not Color then
  683. local Color = Color3.new(1, 0, 0)
  684. end
  685. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  686. EffectPart.Anchored = true
  687. local BillboardGui = Instance.new("BillboardGui")
  688. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  689. BillboardGui.Adornee = EffectPart
  690. local TextLabel = Instance.new("TextLabel")
  691. TextLabel.BackgroundTransparency = 1
  692. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  693. TextLabel.Text = Text
  694. TextLabel.TextColor3 = Color
  695. TextLabel.TextScaled = true
  696. TextLabel.Font = Enum.Font.ArialBold
  697. TextLabel.Parent = BillboardGui
  698. BillboardGui.Parent = EffectPart
  699. game.Debris:AddItem(EffectPart, Time + 0.1)
  700. EffectPart.Parent = game:GetService("Workspace")
  701. Delay(0, function()
  702. local Frames = Time / Rate
  703. for Frame = 1, Frames do
  704. wait(Rate)
  705. local Percent = Frame / Frames
  706. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  707. TextLabel.TextTransparency = Percent
  708. end
  709. if EffectPart and EffectPart.Parent then
  710. EffectPart:Destroy()
  711. end
  712. end
  713. )
  714. end
  715.  
  716. MagniDamage = function(Hit, Part, magni, mindam, maxdam, knock, Type)
  717. for _,c in pairs(workspace:children()) do
  718. local hum = c:findFirstChild("Humanoid")
  719. if hum ~= nil then
  720. local head = c:findFirstChild("Torso")
  721. if head ~= nil then
  722. local targ = head.Position - Part.Position
  723. local mag = targ.magnitude
  724. if mag <= magni and c.Name ~= Player.Name then
  725. Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, 0.2, 1, 3)
  726. end
  727. end
  728. end
  729. end
  730. end
  731.  
  732. attackone = function()
  733. attack = true
  734. coroutine.resume(coroutine.create(function()
  735. for i = 1, 1 do
  736. coroutine.resume(coroutine.create(function(Part)
  737. local ceef1 = math.random(-3, 3)
  738. local ceef2 = math.random(-2, 8)
  739. local ceef3 = math.random(1, 10)
  740. local n = 2
  741. swait(1)
  742. local spread = vt((math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16) * (Part.Position - (Part.Position + vt(0, -1, 0))).magnitude / 100
  743. local TheHit = mouse.Hit.p
  744. local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
  745. local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
  746. local mag = (Part.Position - pos).magnitude
  747. CylinderEffect(BrickColor.new("Toothpaste"), CFrame.new((Part.Position + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.05)
  748. BlockEffect(BrickColor.new("Toothpaste"), Part.CFrame, 8, 8, 8, 0.5, 0.5, 0.5, 0.1)
  749. BlockEffect(BrickColor.new("Toothpaste"), cf(pos), 5, 5, 5, 1, 1, 1, 0.1)
  750. do
  751. local ref = CreatePart(workspace, "Neon", 0, 1, BrickColor.new("Toothpaste"), "Effect", vt())
  752. ref.CFrame = cf(pos)
  753. CreateSound("http://roblox.com/asset/?id=299439036", ref, 1, 1)
  754. coroutine.resume(coroutine.create(function(Part)
  755. wait(1)
  756. Part.Parent = nil
  757. end
  758. ), ref)
  759. MagniDamage(ref, ref, 5, 5, 10, 0, "Normal")
  760. if hit ~= nil then
  761. end
  762. end
  763. end
  764. ), m:FindFirstChild("Ball" .. math.random(1, 8)))
  765. wait(0.2)
  766. end
  767. end
  768. ))
  769. for i = 0, 1, 0.05 do
  770. swait()
  771. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  772. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  773. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  774. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-70), math.rad(-90)), 0.3)
  775. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  776. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  777. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  778. end
  779. attack = false
  780. end
  781.  
  782. attackthree = function()
  783. attack = true
  784. coroutine.resume(coroutine.create(function()
  785. for i = 1, 1 do
  786. coroutine.resume(coroutine.create(function(Part)
  787. local n = 2
  788. swait(1)
  789. local spread = vt((math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16) * (Part.Position - (Part.Position + vt(0, -1, 0))).magnitude / 100
  790. local TheHit = mouse.Hit.p
  791. local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
  792. local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
  793. local mag = (Part.Position - pos).magnitude
  794. CylinderEffect(BrickColor.new("Toothpaste"), CFrame.new((Part.Position + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.05)
  795. BlockEffect(BrickColor.new("Toothpaste"), Part.CFrame, 8, 8, 8, 0.5, 0.5, 0.5, 0.1)
  796. BlockEffect(BrickColor.new("Toothpaste"), cf(pos), 5, 5, 5, 1, 1, 1, 0.1)
  797. do
  798. local ref = CreatePart(workspace, "Neon", 0, 1, BrickColor.new("Toothpaste"), "Effect", vt())
  799. ref.CFrame = cf(pos)
  800. CreateSound("http://roblox.com/asset/?id=299439036", ref, 1, 1)
  801. coroutine.resume(coroutine.create(function(Part)
  802. wait(1)
  803. Part.Parent = nil
  804. end
  805. ), ref)
  806. MagniDamage(ref, ref, 5, 5, 10, 0, "Normal")
  807. if hit ~= nil then
  808. end
  809. end
  810. end
  811. ), m:FindFirstChild("Ball" .. math.random(1, 8)))
  812. wait(0.2)
  813. end
  814. end
  815. ))
  816. for i = 0, 1, 0.05 do
  817. swait()
  818. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  819. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  820. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(100), math.rad(90)), 0.3)
  821. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-20)), 0.3)
  822. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  823. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  824. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 3, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  825. end
  826. attack = false
  827. end
  828.  
  829. attacktwo = function()
  830. attack = true
  831. coroutine.resume(coroutine.create(function()
  832. for i = 1, 1 do
  833. coroutine.resume(coroutine.create(function(Part)
  834. local n = 2
  835. swait(1)
  836. local spread = vt((math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16) * (Part.Position - (Part.Position + vt(0, -1, 0))).magnitude / 100
  837. local TheHit = mouse.Hit.p
  838. local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
  839. local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
  840. local mag = (Part.Position - pos).magnitude
  841. CylinderEffect(BrickColor.new("Toothpaste"), CFrame.new((Part.Position + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.05)
  842. BlockEffect(BrickColor.new("Toothpaste"), Part.CFrame, 8, 8, 8, 0.5, 0.5, 0.5, 0.1)
  843. BlockEffect(BrickColor.new("Toothpaste"), cf(pos), 5, 5, 5, 1, 1, 1, 0.1)
  844. do
  845. local ref = CreatePart(workspace, "Neon", 0, 1, BrickColor.new("Toothpaste"), "Effect", vt())
  846. ref.CFrame = cf(pos)
  847. CreateSound("http://roblox.com/asset/?id=299439036", ref, 1, 1)
  848. coroutine.resume(coroutine.create(function(Part)
  849. wait(1)
  850. Part.Parent = nil
  851. end
  852. ), ref)
  853. MagniDamage(ref, ref, 5, 5, 10, 0, "Normal")
  854. if hit ~= nil then
  855. end
  856. end
  857. end
  858. ), Tip)
  859. wait(0.2)
  860. end
  861. end
  862. ))
  863. for i = 0, 1, 0.05 do
  864. swait()
  865. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  866. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  867. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), 0.3)
  868. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(-90)), 0.3)
  869. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  870. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  871. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  872. end
  873. attack = false
  874. end
  875.  
  876. zen = function()
  877. attack = true
  878. CreateSound("http://roblox.com/asset/?id=418079108", RootPart, 0.3, 1)
  879. for i = 0, 1, 0.05 do
  880. swait()
  881. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  882. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  883. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), 0.3)
  884. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(-90)), 0.3)
  885. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  886. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  887. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  888. end
  889. Humanoid.Health = Humanoid.Health + 50
  890. MagniDamage(RootPart, RootPart, 15, -50, -25, 0, "Normal")
  891. SphereEffect(BrickColor.new("Toothpaste"), RootPart.CFrame * angles(0, 0, 0), 1, 1, 1, 5, 10, 5, 0.05)
  892. SphereEffect(BrickColor.new("Toothpaste"), RootPart.CFrame * angles(0, 0, 0), 1, 1, 1, 10, 2, 10, 0.05)
  893. WaveEffect(BrickColor.new("Toothpaste"), RootPart.CFrame * cf(0, -2, 0) * angles(0, 0, 0), 1, 1, 1, 1, 0, 1, 0.05)
  894. for i = 0, 1, 0.1 do
  895. swait()
  896. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  897. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  898. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  899. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  900. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  901. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  902. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  903. end
  904. attack = false
  905. end
  906.  
  907. iris = function()
  908. attack = true
  909. CreateSound("http://roblox.com/asset/?id=418077213", RootPart, 1, 1)
  910. for i = 0, 1, 0.05 do
  911. swait()
  912. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  913. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  914. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), 0.3)
  915. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(-90)), 0.3)
  916. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  917. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  918. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  919. end
  920. coroutine.resume(coroutine.create(function()
  921. while attack do
  922. wait(0.2)
  923. Humanoid.Health = Humanoid.Health + 1
  924. MagniDamage(RootPart, RootPart, 25, -5, -2, 0, "Normal")
  925. RingEffect(BrickColor.new("New Yeller"), RootPart.CFrame * cf(-5, 0, -5) * angles(1.57, 0, 0), 5, 5, 3, 3, 3, 0, 0.05)
  926. SphereEffect(BrickColor.new("New Yeller"), RootPart.CFrame * angles(0, 0, 0), 100, 100, 100, 5, 5, 5, 0.05)
  927. end
  928. end
  929. ))
  930. for i = 0, 1, 0.005 do
  931. swait()
  932. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  933. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  934. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  935. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  936. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  937. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  938. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  939. end
  940. attack = false
  941. end
  942.  
  943. Curse = function()
  944. attack = true
  945. coroutine.resume(coroutine.create(function()
  946. for i = 1, 1 do
  947. coroutine.resume(coroutine.create(function(Part)
  948. local ceef1 = math.random(-3, 3)
  949. local ceef2 = math.random(-2, 8)
  950. local ceef3 = math.random(1, 10)
  951. local n = 2
  952. swait(1)
  953. local spread = vt((math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16) * (Part.Position - (Part.Position + vt(0, -1, 0))).magnitude / 100
  954. local TheHit = mouse.Hit.p
  955. local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
  956. local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
  957. local mag = (Part.Position - pos).magnitude
  958. CylinderEffect(BrickColor.new("Magenta"), CFrame.new((Part.Position + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.05)
  959. BlockEffect(BrickColor.new("Magenta"), Part.CFrame, 8, 8, 8, 0.5, 0.5, 0.5, 0.1)
  960. BlockEffect(BrickColor.new("Magenta"), cf(pos), 15, 15, 15, 6, 6, 6, 0.1)
  961. do
  962. local ref = CreatePart(workspace, "Neon", 0, 1, BrickColor.new("Gold"), "Effect", vt())
  963. ref.CFrame = cf(pos)
  964. CreateSound("http://roblox.com/asset/?id=299439036", ref, 1, 0.7)
  965. coroutine.resume(coroutine.create(function(Part)
  966. wait(1)
  967. Part.Parent = nil
  968. end
  969. ), ref)
  970. MagniDamage(ref, ref, 15, 0, 3, 0, "Curse")
  971. if hit ~= nil then
  972. end
  973. end
  974. end
  975. ), m:FindFirstChild("Ball" .. math.random(1, 8)))
  976. wait(0.2)
  977. end
  978. end
  979. ))
  980. for i = 0, 1, 0.1 do
  981. swait()
  982. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  983. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  984. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  985. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-70), math.rad(-90)), 0.3)
  986. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  987. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  988. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  989. end
  990. attack = false
  991. end
  992.  
  993. Heal = function()
  994. attack = true
  995. coroutine.resume(coroutine.create(function()
  996. for i = 1, 1 do
  997. coroutine.resume(coroutine.create(function(Part)
  998. local ceef1 = math.random(-3, 3)
  999. local ceef2 = math.random(-2, 8)
  1000. local ceef3 = math.random(1, 10)
  1001. local n = 2
  1002. swait(1)
  1003. local spread = vt((math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16) * (Part.Position - (Part.Position + vt(0, -1, 0))).magnitude / 100
  1004. local TheHit = mouse.Hit.p
  1005. local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
  1006. local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
  1007. local mag = (Part.Position - pos).magnitude
  1008. CylinderEffect(BrickColor.new("New Yeller"), CFrame.new((Part.Position + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.05)
  1009. BlockEffect(BrickColor.new("New Yeller"), Part.CFrame, 8, 8, 8, 0.5, 0.5, 0.5, 0.1)
  1010. BlockEffect(BrickColor.new("New Yeller"), cf(pos), 5, 5, 5, 1, 1, 1, 0.1)
  1011. do
  1012. local ref = CreatePart(workspace, "Neon", 0, 1, BrickColor.new("Gold"), "Effect", vt())
  1013. ref.CFrame = cf(pos)
  1014. CreateSound("http://roblox.com/asset/?id=299439036", ref, 1, 1.5)
  1015. coroutine.resume(coroutine.create(function(Part)
  1016. wait(1)
  1017. Part.Parent = nil
  1018. end
  1019. ), ref)
  1020. MagniDamage(ref, ref, 5, 0, 0, 0, "Heal")
  1021. if hit ~= nil then
  1022. end
  1023. end
  1024. end
  1025. ), m:FindFirstChild("Ball" .. math.random(1, 8)))
  1026. wait(0.2)
  1027. end
  1028. end
  1029. ))
  1030. for i = 0, 1, 0.1 do
  1031. swait()
  1032. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1033. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1034. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  1035. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-70), math.rad(-90)), 0.3)
  1036. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  1037. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  1038. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1039. end
  1040. attack = false
  1041. end
  1042.  
  1043. ob1u = function()
  1044. end
  1045.  
  1046. ob1d = function()
  1047. if attack == false and attacktype == 1 then
  1048. attackone()
  1049. attacktype = 2
  1050. else
  1051. if attack == false and attacktype == 2 then
  1052. attacktwo()
  1053. attacktype = 3
  1054. else
  1055. if attack == false and attacktype == 3 then
  1056. attackthree()
  1057. attacktype = 1
  1058. end
  1059. end
  1060. end
  1061. end
  1062.  
  1063. key = function(k)
  1064. k = k:lower()
  1065. if attack == false and k == "z" and mana >= 25 and zenabled == true then
  1066. zenabled = true
  1067. mana = mana
  1068. coroutine.resume(coroutine.create(function()
  1069. for i = 1, 0, -0.01 do
  1070. swait()
  1071. fenframe1a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1072. end
  1073. zenabled = true
  1074. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  1075. end
  1076. ))
  1077. Heal()
  1078. else
  1079. if attack == false and k == "x" and mana >= 25 and xenabled == true then
  1080. xenabled = true
  1081. mana = mana
  1082. coroutine.resume(coroutine.create(function()
  1083. for i = 1, 0, -0.01 do
  1084. swait()
  1085. fenframe2a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1086. end
  1087. xenabled = true
  1088. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  1089. end
  1090. ))
  1091. Curse()
  1092. else
  1093. if attack == false and k == "c" and mana >= 35 and cenabled == true then
  1094. cenabled = true
  1095. mana = mana
  1096. coroutine.resume(coroutine.create(function()
  1097. for i = 1, 0, -0.0025 do
  1098. swait()
  1099. fenframe3a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1100. end
  1101. cenabled = true
  1102. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  1103. end
  1104. ))
  1105. zen()
  1106. else
  1107. if attack == false and k == "v" and mana >= 45 and venabled == true then
  1108. venabled = true
  1109. mana = mana
  1110. coroutine.resume(coroutine.create(function()
  1111. for i = 1, 0, -0.0005 do
  1112. swait()
  1113. fenframe4a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1114. end
  1115. venabled = true
  1116. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  1117. end
  1118. ))
  1119. iris()
  1120. end
  1121. end
  1122. end
  1123. end
  1124. end
  1125.  
  1126. Bin = Instance.new("HopperBin", Player.Backpack)
  1127. ds = function(mouse)
  1128. end
  1129.  
  1130. s = function(mouse)
  1131. print("Selected")
  1132. mouse.Button1Down:connect(function()
  1133. ob1d(mouse)
  1134. end
  1135. )
  1136. mouse.Button1Up:connect(function()
  1137. ob1u(mouse)
  1138. end
  1139. )
  1140. mouse.KeyDown:connect(key)
  1141. end
  1142.  
  1143. Bin.Selected:connect(s)
  1144. Bin.Deselected:connect(ds)
  1145. while 1 do
  1146. while 1 do
  1147. while 1 do
  1148. pwait()
  1149. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  1150. velocity = RootPart.Velocity.y
  1151. sine = sine + change
  1152. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1153. if equipped == true or equipped == false then
  1154. if 1 < RootPart.Velocity.y and hit == nil then
  1155. Anim = "Jump"
  1156. if attack == false then
  1157. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1158. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1159. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  1160. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-50)), 0.3)
  1161. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  1162. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  1163. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1164. end
  1165. else
  1166. if RootPart.Velocity.y < -1 and hit == nil then
  1167. Anim = "Fall"
  1168. if attack == false then
  1169. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1170. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1171. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  1172. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-50)), 0.3)
  1173. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  1174. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  1175. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1176. end
  1177. else
  1178. if Torsovelocity.x < 1 and Torsovelocity.z < 1 and hit ~= nil then
  1179. Anim = "Idle"
  1180. if attack == false then
  1181. change = 1
  1182. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1183. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1184. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  1185. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30), math.rad(-20)), 0.3)
  1186. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  1187. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  1188. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1189. end
  1190. else
  1191. if Torsovelocity.x > 2 and Torsovelocity.z > 2 and hit ~= nil then
  1192. Anim = "Walk"
  1193. if attack == false then
  1194. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1195. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1196. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  1197. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-20)), 0.3)
  1198. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * RHCF * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  1199. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * LHCF * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  1200. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1201. end
  1202. end
  1203. end
  1204. end
  1205. end
  1206. end
  1207. if 0 < #Effects then
  1208. for e = 1, #Effects do
  1209. if Effects[e] ~= nil then
  1210. local Thing = Effects[e]
  1211. if Thing ~= nil then
  1212. local Part = Thing[1]
  1213. local Mode = Thing[2]
  1214. local Delay = Thing[3]
  1215. local IncX = Thing[4]
  1216. local IncY = Thing[5]
  1217. local IncZ = Thing[6]
  1218. if Thing[1].Transparency <= 1 then
  1219. if Thing[2] == "Block1" then
  1220. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1221. Mesh = Thing[1].Mesh
  1222. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1223. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1224. else
  1225. if Thing[2] == "Block2" then
  1226. Thing[1].CFrame = Thing[1].CFrame
  1227. Mesh = Thing[7]
  1228. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1229. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1230. else
  1231. if Thing[2] == "Cylinder" then
  1232. Mesh = Thing[1].Mesh
  1233. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1234. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1235. else
  1236. if Thing[2] == "Blood" then
  1237. Mesh = Thing[7]
  1238. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1239. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1240. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1241. else
  1242. if Thing[2] == "Elec" then
  1243. Mesh = Thing[1].Mesh
  1244. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1245. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1246. else
  1247. if Thing[2] == "Disappear" then
  1248. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1249. else
  1250. if Thing[2] == "Shatter" then
  1251. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1252. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1253. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1254. Thing[6] = Thing[6] + Thing[5]
  1255. end
  1256. end
  1257. end
  1258. end
  1259. end
  1260. end
  1261. end
  1262. else
  1263. Part.Parent = nil
  1264. table.remove(Effects, e)
  1265. end
  1266. end
  1267. end
  1268. end
  1269. end
  1270. do
  1271. fenbarmana2:TweenSize((UDim2.new(4 * mana / 100, 0, 0.2, 0)), nil, 1, 0.4, true)
  1272. fenbarmana4.Text = "[Corruption] <{[ " .. mana .. " ]}> [Corruption]"
  1273. if attack == false then
  1274. if 100 <= mana then
  1275. mana = 100
  1276.  
  1277. end
  1278. end
  1279. end
  1280. end
  1281. if mananum <= 8 then
  1282. mananum = mananum + 1
  1283. end
  1284. end
  1285. mananum = 0
  1286. mana = mana + 1
  1287. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement