soins1

Untitled

Jan 6th, 2018
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 108.61 KB | None | 0 0
  1. --------------------------This is an Official script from Duelist--------------------------
  2. ---{-------------------- -------------------}---
  3. ---{-------------------- / \ -------------------}---
  4. ---{-------------------- II -------------------}---
  5. ---{-------------------- II -------------------}---
  6. ---{-------------------- II -------------------}---
  7. ---{-------------------- A========A -------------------}---
  8. ---{-------------------- II -------------------}---
  9. ---{-------------------- II -------------------}---
  10. ---{-------------------- W -------------------}---
  11. -------------------------------------------------------------------------------------------------------------
  12. wait(0.016666666666666666)
  13. Player = game:GetService("Players").LocalPlayer
  14. Character = Player.Character
  15. PlayerGui = Player.PlayerGui
  16. Backpack = Player.Backpack
  17. Torso = Character.Torso
  18. Head = Character.Head
  19. Humanoid = Character.Humanoid
  20. LeftArm = Character["Left Arm"]
  21. LeftLeg = Character["Left Leg"]
  22. RightArm = Character["Right Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LS = Torso["Left Shoulder"]
  25. LH = Torso["Left Hip"]
  26. RS = Torso["Right Shoulder"]
  27. RH = Torso["Right Hip"]
  28. Face = Head.face
  29. Neck = Torso.Neck
  30. it = Instance.new
  31. attacktype = 1
  32. vt = Vector3.new
  33. cf = CFrame.new
  34. euler = CFrame.fromEulerAnglesXYZ
  35. angles = CFrame.Angles
  36. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  37. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  38. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  39. RootPart = Character.HumanoidRootPart
  40. RootJoint = RootPart.RootJoint
  41. RootCF = euler(-1.57, 0, 3.14)
  42. attack = false
  43. equipped = false
  44. Mouse = Player:GetMouse()
  45. mana = 0
  46. local idle = 0
  47. local Anim = "Idle"
  48. local ShotTarget = RootPart
  49. player = nil
  50. local Stats = Instance.new("Folder", Character)
  51. Stats.Name = "Stats"
  52. local Defense = Instance.new("NumberValue", Stats)
  53. Defense.Name = "Defense"
  54. Defense.Value = 0.6
  55. local Speed = Instance.new("NumberValue", Stats)
  56. Speed.Name = "Speed"
  57. Speed.Value = 1.6625
  58. local Damage = Instance.new("NumberValue", Stats)
  59. Damage.Name = "Damage"
  60. Damage.Value = 1
  61. local BlockValue = Instance.new("BoolValue", Stats)
  62. BlockValue.Name = "BlockValue"
  63. BlockValue.Value = false
  64. local StaggerHitAnim = Instance.new("BoolValue", Stats)
  65. StaggerHitAnim.Name = "StaggerHitAnim"
  66. StaggerHitAnim.Value = false
  67. local staghitanim = false
  68. local StaggerAnim = Instance.new("BoolValue", Stats)
  69. StaggerAnim.Name = "StaggerAnim"
  70. StaggerAnim.Value = false
  71. local staganim = false
  72. local StunAnim = Instance.new("BoolValue", Stats)
  73. StunAnim.Name = "StunAnim"
  74. StunAnim.Value = false
  75. local stunanim = false
  76. local StunValue = Instance.new("NumberValue", Stats)
  77. StunValue.Name = "StunValue"
  78. StunValue.Value = 0
  79. local cooldown1 = 0
  80. local cooldown2 = 0
  81. local cooldown3 = 0
  82. local cooldown4 = 0
  83. local mana = 0
  84. CustomColor = BrickColor.new("Really black")
  85. Colorpart1 = CustomColor.r
  86. Colorpart2 = CustomColor.g
  87. Colorpart3 = CustomColor.b
  88. local scrn = Instance.new("ScreenGui", PlayerGui)
  89. local ud = UDim2.new
  90. local c3 = Color3.new
  91. local skillcolorscheme = c3(1, 1, 1)
  92. local co1 = 0
  93. local co2 = 0
  94. local co3 = 0
  95. local co4 = 0
  96. local maxmana = 0
  97. local maxstun = 1
  98. local recovermana = 0
  99. local losestun = 0
  100. local stunwait = 0
  101. local manawait = 0
  102. local skill1mana = 0
  103. local skill2mana = 0
  104. local skill3mana = 0
  105. local skill4mana = 0
  106. local menuupdatespeed = 0
  107. local constantupdate = false
  108. local showstats = false
  109. local showstunbar = false
  110. function makeframe(par, trans, pos, size, color, name)
  111. local frame = Instance.new("Frame")
  112. frame.Parent = par
  113. frame.BackgroundTransparency = trans
  114. frame.BorderSizePixel = 0
  115. frame.Position = pos
  116. frame.Size = size
  117. frame.BackgroundColor3 = color
  118. frame.Name = name
  119. return frame
  120. end
  121. function makelabel(par, text, trans, stroketrans, name)
  122. local label = Instance.new("TextLabel")
  123. label.Parent = par
  124. label.BackgroundTransparency = 1
  125. label.Size = ud(1, 0, 1, 0)
  126. label.Position = ud(0, 0, 0, 0)
  127. label.TextColor3 = c3(255, 255, 255)
  128. label.TextStrokeTransparency = stroketrans
  129. label.TextTransparency = trans
  130. label.FontSize = Enum.FontSize.Size32
  131. label.Font = Enum.Font.Legacy
  132. label.BorderSizePixel = 0
  133. label.TextScaled = true
  134. label.Text = text
  135. label.Name = name
  136. return label
  137. end
  138. framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 1")
  139. framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 2")
  140. framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 3")
  141. framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 4")
  142. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 1")
  143. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 2")
  144. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 3")
  145. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 4")
  146. text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
  147. text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
  148. text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
  149. text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
  150. manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
  151. manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
  152. manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
  153. healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Bar")
  154. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Cover")
  155. healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
  156. if showstunbar == true then
  157. stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137254902), "Stun Frame")
  158. stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137254902), "Stun Bar")
  159. stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
  160. end
  161. if showstats == true then
  162. defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 0.39215686274509803, 1), "Defense Frame")
  163. damageframe = makeframe(scrn, 0.5, ud(0.322, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.39215686274509803, 0.39215686274509803), "Damage Frame")
  164. speedframe = makeframe(scrn, 0.5, ud(0.4145, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 1, 0.39215686274509803), "Speed Frame")
  165. defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
  166. damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
  167. speedtext = makelabel(speedframe, "Speed: " .. Speed.Value, 1, 1, "Speed Text")
  168. end
  169. function NoOutline(Part)
  170. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  171. end
  172. local weldBetween = function(a, b)
  173. local weldd = Instance.new("ManualWeld")
  174. weldd.Part0 = a
  175. weldd.Part1 = b
  176. weldd.C0 = CFrame.new()
  177. weldd.C1 = b.CFrame:inverse() * a.CFrame
  178. weldd.Parent = a
  179. return weldd
  180. end
  181. ArtificialHeartbeat = Instance.new("BindableEvent", script)
  182. ArtificialHeartbeat.Name = "ArtificialHeartbeat"
  183. script:WaitForChild("ArtificialHeartbeat")
  184. frame = 0.016666666666666666
  185. tf = 0
  186. allowframeloss = false
  187. tossremainder = false
  188. lastframe = tick()
  189. script.ArtificialHeartbeat:Fire()
  190. game:GetService("RunService").Heartbeat:connect(function(s, p)
  191. tf = tf + s
  192. if tf >= frame then
  193. if allowframeloss then
  194. script.ArtificialHeartbeat:Fire()
  195. lastframe = tick()
  196. else
  197. for i = 1, math.floor(tf / frame) do
  198. script.ArtificialHeartbeat:Fire()
  199. end
  200. lastframe = tick()
  201. end
  202. if tossremainder then
  203. tf = 0
  204. else
  205. tf = tf - frame * math.floor(tf / frame)
  206. end
  207. end
  208. end)
  209. function nooutline(part)
  210. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  211. end
  212. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  213. local fp = it("Part")
  214. fp.formFactor = formfactor
  215. fp.Parent = parent
  216. fp.Reflectance = reflectance
  217. fp.Transparency = transparency
  218. fp.CanCollide = false
  219. fp.Locked = true
  220. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  221. fp.Name = name
  222. fp.Size = size
  223. fp.Position = Character.Torso.Position
  224. nooutline(fp)
  225. fp.Material = material
  226. fp:BreakJoints()
  227. return fp
  228. end
  229. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  230. local mesh = it(Mesh)
  231. mesh.Parent = part
  232. if Mesh == "SpecialMesh" then
  233. mesh.MeshType = meshtype
  234. mesh.MeshId = meshid
  235. end
  236. mesh.Offset = offset
  237. mesh.Scale = scale
  238. return mesh
  239. end
  240. function weld(parent, part0, part1, c0, c1)
  241. local weld = it("Weld")
  242. weld.Parent = parent
  243. weld.Part0 = part0
  244. weld.Part1 = part1
  245. weld.C0 = c0
  246. weld.C1 = c1
  247. return weld
  248. end
  249. Humanoid.CameraOffset = vt(0, 12, 0)
  250. Humanoid.JumpPower = Humanoid.JumpPower * 2
  251. coroutine.resume(coroutine.create(function()
  252. Humanoid.MaxHealth = 5100
  253. wait(0.1)
  254. Humanoid.Health = Humanoid.MaxHealth
  255. end))
  256. m = Instance.new("Model", Character)
  257. m.Name = "Outer Being"
  258. healthscript = Character:FindFirstChild("Health")
  259. if healthscript ~= nil then
  260. healthscript:Destroy()
  261. end
  262. Effects = Instance.new("Folder", m)
  263. Effects.Name = "Effects"
  264. local outerbeingtransparency = 1
  265. local head2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "Head2", vt(0, 0, 0))
  266. local head2mesh = mesh("SpecialMesh", head2, "Head", "", vt(0, 0, 0), vt(62.5, 31.25, 31.25))
  267. local torso2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "Torso2", vt(0, 0, 0))
  268. local torso2mesh = mesh("BlockMesh", torso2, "", "", vt(0, 0, 0), vt(50, 50, 25))
  269. local leftarm2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "LeftArm2", vt(0, 0, 0))
  270. local leftarm2mesh = mesh("BlockMesh", leftarm2, "", "", vt(0, 0, 0), vt(25, 50, 25))
  271. local rightarm2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "RightArm2", vt(0, 0, 0))
  272. local rightarm2mesh = mesh("BlockMesh", rightarm2, "", "", vt(0, 0, 0), vt(25, 50, 25))
  273. local leftleg2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "LeftLeg2", vt(0, 0, 0))
  274. local leftleg2mesh = mesh("BlockMesh", leftleg2, "", "", vt(0, 0, 0), vt(25, 50, 25))
  275. local rightleg2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "RightLeg2", vt(0, 0, 0))
  276. local rightleg2mesh = mesh("BlockMesh", rightleg2, "", "", vt(0, 0, 0), vt(25, 50, 25))
  277. head2.CFrame = Head.CFrame
  278. torso2.CFrame = Head.CFrame
  279. leftarm2.CFrame = Head.CFrame
  280. rightarm2.CFrame = Head.CFrame
  281. leftleg2.CFrame = Head.CFrame
  282. rightleg2.CFrame = Head.CFrame
  283. local head2weld = weld(m, Torso, head2, cf(0, 0, 0), cf(0, 0, 0))
  284. local torso2weld = weld(m, Torso, torso2, cf(0, 0, 0), cf(0, 0, 0))
  285. local leftarm2weld = weld(m, Torso, leftarm2, cf(0, 0, 0), cf(0, 0, 0))
  286. local rightarm2weld = weld(m, Torso, rightarm2, cf(0, 0, 0), cf(0, 0, 0))
  287. local leftleg2weld = weld(m, Torso, leftleg2, cf(0, 0, 0), cf(0, 0, 0))
  288. local rightleg2weld = weld(m, Torso, rightleg2, cf(0, 0, 0), cf(0, 0, 0))
  289. head2weld.C1 = cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0)
  290. torso2weld.C1 = cf(0, 0, 0)
  291. rightarm2weld.C1 = cf(0, 2.5, -0.5)
  292. leftarm2weld.C1 = cf(0, 2.5, -0.5)
  293. rightleg2weld.C1 = cf(0, 5, 0)
  294. leftleg2weld.C1 = cf(0, 5, 0)
  295. coroutine.resume(coroutine.create(function()
  296. while Humanoid.Health ~= 0 do
  297. ArtificialHeartbeat.Event:wait()
  298. head2weld.C0 = cf(0, 4, 0) * Neck.C0
  299. torso2weld.C0 = cf(0, 0, 0)
  300. rightarm2weld.C0 = cf(6, 2, 0) * RW.C0
  301. leftarm2weld.C0 = cf(-6, 2, 0) * LW.C0
  302. rightleg2weld.C0 = cf(1.5, -4, 0) * RH.C0
  303. leftleg2weld.C0 = cf(-1.5, -4, 0) * LH.C0
  304. head2.Transparency = outerbeingtransparency
  305. torso2.Transparency = outerbeingtransparency
  306. leftarm2.Transparency = outerbeingtransparency
  307. rightarm2.Transparency = outerbeingtransparency
  308. leftleg2.Transparency = outerbeingtransparency
  309. rightleg2.Transparency = outerbeingtransparency
  310. end
  311. end))
  312. Humanoid.Died:connect(function()
  313. end)
  314. for i, v in pairs(Character:GetChildren()) do
  315. if v:IsA("Model") then
  316. for _, c in pairs(v:GetChildren()) do
  317. if c:IsA("Part") then
  318. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  319. end
  320. end
  321. end
  322. end
  323. print([[
  324. Vanta loaded.
  325. Unleash your power on your enemies.]])
  326. function so(id, par, vol, pit)
  327. coroutine.resume(coroutine.create(function()
  328. local sou = Instance.new("Sound", par or workspace)
  329. sou.Volume = vol
  330. sou.Pitch = pit or 1
  331. sou.SoundId = id
  332. ArtificialHeartbeat.Event:wait()
  333. sou:play()
  334. game:GetService("Debris"):AddItem(sou, 6)
  335. end))
  336. end
  337. function clerp(a, b, t)
  338. local qa = {
  339. QuaternionFromCFrame(a)
  340. }
  341. local qb = {
  342. QuaternionFromCFrame(b)
  343. }
  344. local ax, ay, az = a.x, a.y, a.z
  345. local bx, by, bz = b.x, b.y, b.z
  346. local _t = 1 - t
  347. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  348. end
  349. function QuaternionFromCFrame(cf)
  350. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  351. local trace = m00 + m11 + m22
  352. if trace > 0 then
  353. local s = math.sqrt(1 + trace)
  354. local recip = 0.5 / s
  355. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  356. else
  357. local i = 0
  358. if m00 < m11 then
  359. i = 1
  360. end
  361. if m22 > (i == 0 and m00 or m11) then
  362. i = 2
  363. end
  364. if i == 0 then
  365. local s = math.sqrt(m00 - m11 - m22 + 1)
  366. local recip = 0.5 / s
  367. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  368. elseif i == 1 then
  369. local s = math.sqrt(m11 - m22 - m00 + 1)
  370. local recip = 0.5 / s
  371. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  372. elseif i == 2 then
  373. local s = math.sqrt(m22 - m00 - m11 + 1)
  374. local recip = 0.5 / s
  375. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  376. end
  377. end
  378. end
  379. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  380. local xs, ys, zs = x + x, y + y, z + z
  381. local wx, wy, wz = w * xs, w * ys, w * zs
  382. local xx = x * xs
  383. local xy = x * ys
  384. local xz = x * zs
  385. local yy = y * ys
  386. local yz = y * zs
  387. local zz = z * zs
  388. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  389. end
  390. function QuaternionSlerp(a, b, t)
  391. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  392. local startInterp, finishInterp
  393. if cosTheta >= 1.0E-4 then
  394. if 1 - cosTheta > 1.0E-4 then
  395. local theta = math.acos(cosTheta)
  396. local invSinTheta = 1 / math.sin(theta)
  397. startInterp = math.sin((1 - t) * theta) * invSinTheta
  398. finishInterp = math.sin(t * theta) * invSinTheta
  399. else
  400. startInterp = 1 - t
  401. finishInterp = t
  402. end
  403. elseif 1 + cosTheta > 1.0E-4 then
  404. local theta = math.acos(-cosTheta)
  405. local invSinTheta = 1 / math.sin(theta)
  406. startInterp = math.sin((t - 1) * theta) * invSinTheta
  407. finishInterp = math.sin(t * theta) * invSinTheta
  408. else
  409. startInterp = t - 1
  410. finishInterp = t
  411. end
  412. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  413. end
  414. function rayCast(Pos, Dir, Max, Ignore)
  415. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  416. end
  417. function makegui(cframe, text, color)
  418. local c = Instance.new("Part")
  419. c.Size = vt(0.2, 0.2, 0.2)
  420. c.Transparency = 1
  421. Instance.new("BodyGyro").Parent = c
  422. c.Parent = Effects
  423. c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
  424. local f = Instance.new("BodyPosition")
  425. f.P = 2000
  426. f.D = 100
  427. f.maxForce = vt(math.huge, math.huge, math.huge)
  428. f.position = c.Position + vt(0, 6, 0)
  429. f.Parent = c
  430. game:GetService("Debris"):AddItem(c, 5)
  431. c.CanCollide = false
  432. c.Parent = workspace
  433. c.CanCollide = false
  434. local bg = Instance.new("BillboardGui", c)
  435. bg.Adornee = c
  436. bg.Size = UDim2.new(2.5, 0, 2.5, 0)
  437. bg.StudsOffset = vt(-2, 2, 0)
  438. bg.AlwaysOnTop = false
  439. local tl = Instance.new("TextLabel", bg)
  440. tl.BackgroundTransparency = 1
  441. tl.Size = UDim2.new(2.5, 0, 2.5, 0)
  442. tl.Text = text
  443. tl.Font = Enum.Font.SourceSans
  444. tl.FontSize = Enum.FontSize.Size42
  445. tl.TextColor3 = color
  446. tl.TextScaled = false
  447. tl.TextStrokeTransparency = 0
  448. tl.TextScaled = true
  449. tl.TextWrapped = true
  450. f.Parent = c
  451. coroutine.resume(coroutine.create(function()
  452. wait(0.25)
  453. for i = 1, 5 do
  454. ArtificialHeartbeat.Event:wait()
  455. f.position = c.Position - vt(0, 0.5, 0)
  456. end
  457. end))
  458. coroutine.resume(coroutine.create(function()
  459. wait(2)
  460. for i = 1, 10 do
  461. ArtificialHeartbeat.Event:wait()
  462. tl.TextTransparency = tl.TextTransparency + 0.1
  463. tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
  464. f.position = c.Position + vt(0, 0.5, 0)
  465. end
  466. c.Parent = nil
  467. end))
  468. end
  469. local CritChance = Instance.new("NumberValue", Stats)
  470. CritChance.Name = "CritChance"
  471. CritChance.Value = 1
  472. local critchancenumber = 50
  473. local cancrit = false
  474. local canpenetratearmor = false
  475. local cancollidewithhitbox = false
  476. local sethitblockvaluetofalse = true
  477. local antiteamkill = false
  478. local HitPlayerSounds = {
  479. 199149137,
  480. 199149186,
  481. 199149221,
  482. 199149235,
  483. 199149269,
  484. 199149297
  485. }
  486. local HitArmorSounds = {
  487. 199149321,
  488. 199149338,
  489. 199149367,
  490. 199149409,
  491. 199149452
  492. }
  493. local HitWeaponSounds = {
  494. 199148971,
  495. 199149025,
  496. 199149072,
  497. 199149109,
  498. 199149119
  499. }
  500. local HitBlockSounds = {199148933, 199148947}
  501. function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  502. if hit.Parent == nil then
  503. return
  504. end
  505. h = hit.Parent:FindFirstChild("Humanoid")
  506. for _, v in pairs(hit.Parent:children()) do
  507. if v:IsA("Humanoid") then
  508. h = v
  509. end
  510. end
  511. if antiteamkill == true then
  512. if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
  513. opponent = game.Players:FindFirstChild(hit.Parent.Name)
  514. end
  515. if opponent ~= nil and opponent.TeamColor == Player.TeamColor then
  516. return
  517. end
  518. end
  519. if hit.Name == "Hitbox" and hit:FindFirstChild("TouchInterest") ~= nil then
  520. StaggerHitAnim.Value = true
  521. so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
  522. return
  523. end
  524. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  525. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  526. end
  527. if hit.Parent.className == "Hat" then
  528. hit = hit.Parent.Parent:findFirstChild("Head")
  529. end
  530. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  531. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  532. return
  533. end
  534. if hit.Parent:findFirstChild("Stats") ~= nil then
  535. if hit.Parent.Stats:findFirstChild("StunValue") ~= nil then
  536. hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun
  537. end
  538. elseif hit.Parent:findFirstChild("StunValue") ~= nil then
  539. hit.Parent:findFirstChild("StunValue").Value = hit.Parent:findFirstChild("StunValue").Value + incstun
  540. end
  541. if hit.Parent:findFirstChild("StaggerAnim") ~= nil and stagger == true then
  542. hit.Parent:findFirstChild("StaggerAnim").Value = true
  543. end
  544. if hit.Parent:findFirstChild("Stats") ~= nil then
  545. if hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then
  546. makegui(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
  547. so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  548. if ranged ~= true then
  549. if sethitblockvaluetofalse == true then
  550. hit.Parent.Stats:findFirstChild("BlockValue").Value = false
  551. end
  552. StaggerAnim.Value = true
  553. end
  554. return
  555. end
  556. elseif hit.Parent:findFirstChild("BlockValue") ~= nil and hit.Parent:findFirstChild("BlockValue").Value == true then
  557. makegui(Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
  558. so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  559. if ranged ~= true then
  560. if sethitblockvaluetofalse == true then
  561. hit.Parent:findFirstChild("BlockValue").Value = false
  562. end
  563. StaggerAnim.Value = true
  564. end
  565. return
  566. end
  567. local D = math.random(minim, maxim) * Damage.Value
  568. if hit.Parent:FindFirstChild("Stats") ~= nil then
  569. if hit.Parent.Stats:FindFirstChild("Defense") then
  570. if canpenetratearmor == true then
  571. else
  572. D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
  573. end
  574. elseif hit.Parent.Stats:FindFirstChild("Defense") == nil then
  575. end
  576. elseif hit.Parent:FindFirstChild("Defense") then
  577. if canpenetratearmor == true then
  578. else
  579. D = D / hit.Parent:FindFirstChild("Defense").Value
  580. end
  581. elseif hit.Parent:FindFirstChild("Defense") == nil then
  582. end
  583. if cancrit == true then
  584. CritChance.Value = math.random(1, critchancenumber)
  585. if CritChance.Value == critchancenumber then
  586. D = D * 2
  587. end
  588. end
  589. h.Health = h.Health - D
  590. if D <= 3 and staghit == true then
  591. if ranged ~= true then
  592. StaggerHitAnim.Value = true
  593. end
  594. so("http://roblox.com/asset/?id=" .. HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
  595. elseif D > 3 and ranged ~= true then
  596. so("http://roblox.com/asset/?id=" .. HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
  597. end
  598. if D > 2 and D < 20 then
  599. if CritChance.Value == critchancenumber then
  600. makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
  601. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  602. else
  603. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0.8627450980392157, 0))
  604. end
  605. elseif D >= 20 then
  606. if CritChance.Value == critchancenumber then
  607. makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
  608. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  609. else
  610. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0, 0))
  611. end
  612. else
  613. if D <= 2 then
  614. if CritChance.Value == critchancenumber then
  615. makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
  616. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  617. else
  618. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(0.8823529411764706, 0.8823529411764706, 0.8823529411764706))
  619. end
  620. else
  621. end
  622. end
  623. if Type == "Normal" then
  624. vp = Instance.new("BodyVelocity")
  625. vp.P = 500
  626. vp.maxForce = vt(math.huge, 0, math.huge)
  627. if KnockbackType == 1 then
  628. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  629. elseif KnockbackType == 2 then
  630. vp.velocity = Property.CFrame.lookVector * knockback
  631. end
  632. if knockback > 0 then
  633. vp.Parent = hit.Parent.Torso
  634. end
  635. game:GetService("Debris"):AddItem(vp, 0.5)
  636. end
  637. debounce = Instance.new("BoolValue")
  638. debounce.Name = "DebounceHit"
  639. debounce.Parent = hit.Parent
  640. debounce.Value = true
  641. game:GetService("Debris"):AddItem(debounce, Delay)
  642. c = Instance.new("ObjectValue")
  643. c.Name = "creator"
  644. c.Value = Player
  645. c.Parent = h
  646. game:GetService("Debris"):AddItem(c, 0.5)
  647. end
  648. end
  649. function DecreaseStat(Location, CFrame, Stat, Amount, Duration, ShowDebuff)
  650. if Location[Stat] ~= nil then
  651. Location[Stat].Value = Location[Stat].Value - Amount
  652. if ShowDebuff == true then
  653. if Location[Stat].Name == "Defense" then
  654. makegui(CFrame, "-Defense", c3(1, 1, 1))
  655. elseif Location[Stat].Name == "Damage" then
  656. makegui(CFrame, "-Damage", c3(1, 1, 1))
  657. elseif Location[Stat].Name == "Speed" then
  658. makegui(CFrame, "-Movement", c3(1, 1, 1))
  659. end
  660. end
  661. coroutine.resume(coroutine.create(function()
  662. wait(Duration)
  663. Location[Stat].Value = Location[Stat].Value + Amount
  664. end))
  665. end
  666. end
  667. function IncreaseStat(Location, CFrame, Stat, Amount, Duration, ShowBuff)
  668. if Location[Stat] ~= nil then
  669. Location[Stat].Value = Location[Stat].Value + Amount
  670. if ShowBuff == true then
  671. if Location[Stat].Name == "Defense" then
  672. makegui(CFrame, "+Defense", c3(1, 1, 1))
  673. elseif Location[Stat].Name == "Damage" then
  674. makegui(CFrame, "+Damage", c3(1, 1, 1))
  675. elseif Location[Stat].Name == "Speed" then
  676. makegui(CFrame, "+Movement", c3(1, 1, 1))
  677. end
  678. end
  679. coroutine.resume(coroutine.create(function()
  680. wait(Duration)
  681. Location[Stat].Value = Location[Stat].Value - Amount
  682. end))
  683. end
  684. end
  685. function GetDist(Part1, Part2, magni)
  686. local targ = Part1.Position - Part2.Position
  687. local mag = targ.magnitude
  688. if magni >= mag then
  689. return true
  690. else
  691. return false
  692. end
  693. end
  694. function MagniDamage(Part, magni, mindam, maxdam, knock, Type, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  695. for _, c in pairs(workspace:children()) do
  696. local hum = c:findFirstChild("Humanoid")
  697. if hum ~= nil then
  698. local head = c:findFirstChild("Torso")
  699. if head ~= nil then
  700. local targ = head.Position - Part.Position
  701. local mag = targ.magnitude
  702. if magni >= mag and c.Name ~= Player.Name then
  703. Damagefunc(head, mindam, maxdam, knock, Type, RootPart, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  704. end
  705. end
  706. end
  707. end
  708. end
  709. function Lightning(p0, p1, tym, ofs, brickcolor, th, tra, last)
  710. local magz = (p0 - p1).magnitude
  711. local curpos = p0
  712. local trz = {
  713. -ofs,
  714. ofs
  715. }
  716. for i = 1, tym do
  717. do
  718. local li = Instance.new("Part", workspace)
  719. li.TopSurface = 0
  720. li.BottomSurface = 0
  721. li.Anchored = true
  722. li.Transparency = tra or 0.4
  723. li.BrickColor = brickcolor
  724. li.formFactor = "Custom"
  725. li.CanCollide = false
  726. li.Size = vt(th, th, magz / tym)
  727. local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  728. local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
  729. if tym == i then
  730. local magz2 = (curpos - p1).magnitude
  731. li.Size = vt(th, th, magz2)
  732. li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
  733. else
  734. li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
  735. end
  736. curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
  737. game.Debris:AddItem(li, last)
  738. coroutine.resume(coroutine.create(function()
  739. while li.Transparency ~= 1 do
  740. for i = 0, 1, last do
  741. ArtificialHeartbeat.Event:wait()
  742. li.Transparency = li.Transparency + 0.1 / last
  743. end
  744. end
  745. end))
  746. end
  747. end
  748. end
  749. function MagicRing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  750. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  751. prt.Anchored = true
  752. prt.CFrame = cframe
  753. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  754. game:GetService("Debris"):AddItem(prt, 10)
  755. coroutine.resume(coroutine.create(function(Part, Mesh)
  756. for i = 0, 1, delay do
  757. ArtificialHeartbeat.Event:wait()
  758. Part.CFrame = Part.CFrame
  759. Part.Transparency = i
  760. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  761. end
  762. Part.Parent = nil
  763. end), prt, msh)
  764. end
  765. function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  766. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  767. prt.Anchored = true
  768. prt.CFrame = cframe
  769. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  770. game:GetService("Debris"):AddItem(prt, 10)
  771. coroutine.resume(coroutine.create(function(Part, Mesh)
  772. for i = 0, 1, delay do
  773. ArtificialHeartbeat.Event:wait()
  774. Part.CFrame = Part.CFrame
  775. Part.Transparency = i
  776. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  777. end
  778. Part.Parent = nil
  779. end), prt, msh)
  780. end
  781. function MagicBlock(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  782. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  783. prt.Anchored = true
  784. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  785. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  786. game:GetService("Debris"):AddItem(prt, 10)
  787. coroutine.resume(coroutine.create(function(Part, Mesh)
  788. for i = 0, 1, delay do
  789. ArtificialHeartbeat.Event:wait()
  790. if rotate == true then
  791. Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  792. else
  793. end
  794. Part.Transparency = i
  795. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  796. end
  797. Part.Parent = nil
  798. end), prt, msh)
  799. end
  800. function MagicBlock2(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  801. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  802. prt.Anchored = true
  803. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  804. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  805. game:GetService("Debris"):AddItem(prt, 10)
  806. CF = prt.CFrame
  807. num = math.random(5, 20)
  808. coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
  809. for i = 0, 1, delay do
  810. ArtificialHeartbeat.Event:wait()
  811. if rotate == true then
  812. Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  813. else
  814. Part.CFrame = CF2 * cf(0, i * Num, 0)
  815. end
  816. Part.Transparency = i
  817. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  818. end
  819. Part.Parent = nil
  820. end), prt, msh, CF, num)
  821. end
  822. function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  823. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  824. prt.Anchored = true
  825. prt.CFrame = cframe
  826. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  827. game:GetService("Debris"):AddItem(prt, 10)
  828. coroutine.resume(coroutine.create(function(Part, Mesh)
  829. for i = 0, 1, delay do
  830. ArtificialHeartbeat.Event:wait()
  831. Part.Transparency = i
  832. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  833. end
  834. Part.Parent = nil
  835. end), prt, msh)
  836. end
  837. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  838. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  839. prt.Anchored = true
  840. prt.CFrame = cframe
  841. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  842. game:GetService("Debris"):AddItem(prt, 10)
  843. coroutine.resume(coroutine.create(function(Part, Mesh)
  844. for i = 0, 1, delay do
  845. ArtificialHeartbeat.Event:wait()
  846. Part.Transparency = i
  847. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  848. end
  849. Part.Parent = nil
  850. end), prt, msh)
  851. end
  852. function BreakEffect(brickcolor, rotate, cframe, x1, y1, z1, delay)
  853. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  854. prt.Anchored = true
  855. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  856. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  857. game:GetService("Debris"):AddItem(prt, 10)
  858. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  859. CF = Part.CFrame
  860. Numbb = 0
  861. randnumb = math.random() - math.random()
  862. for i = 0, 1, delay do
  863. ArtificialHeartbeat.Event:wait()
  864. CF = CF * cf(0, 1, 0)
  865. if rotate == true then
  866. Part.CFrame = CF * angles(Numbb, 0, 0)
  867. elseif rotate == false then
  868. Part.CFrame = CF
  869. end
  870. Part.Transparency = i
  871. Numbb = Numbb + randnumb
  872. end
  873. Part.Parent = nil
  874. end), prt, CF, Numbb, randnumb)
  875. end
  876. function ElecEffect(brickcolor, cf, x, y, z, delay)
  877. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  878. prt.Anchored = true
  879. prt.CFrame = cf
  880. xval = math.random()
  881. yval = math.random()
  882. zval = math.random()
  883. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
  884. game:GetService("Debris"):AddItem(prt, 10)
  885. coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
  886. for i = 0, 1, delay do
  887. ArtificialHeartbeat.Event:wait()
  888. Part.CFrame = Part.CFrame
  889. xvaal = xvaal - 0.1 * (delay * 10)
  890. yvaal = yvaal - 0.1 * (delay * 10)
  891. zvaal = zvaal - 0.1 * (delay * 10)
  892. Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
  893. Part.Transparency = i
  894. end
  895. Part.Parent = nil
  896. end), prt, msh, xval, yval, zval)
  897. end
  898. function subtractmana(k)
  899. if k <= mana then
  900. mana = mana - k
  901. end
  902. end
  903. local idleangle = 0
  904. local idlen = 0
  905. local donum = 0
  906. local sine = 0
  907. local change = 1
  908. local val = 0
  909. local walkinganim = false
  910. local handidle = false
  911. local walk = 0
  912. local someangle = 0
  913. local change2 = 1
  914. local stundelay = 0
  915. local manadelay = 0
  916. local dieanim = false
  917. local robloxidleanimation = Instance.new("Animation", Torso)
  918. robloxidleanimation.Name = "robloxidleanimation"
  919. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  920. Animator = Humanoid:findFirstChild("Animator")
  921. Animate = Character:findFirstChild("Animate")
  922. Running = Head:FindFirstChild("Running")
  923. if Running ~= nil then
  924. Running.Volume = 0
  925. end
  926. local startequipped = false
  927. local startequippedwithequipanimation = true
  928. local disableanimator = true
  929. local disableanimate = false
  930. local alternatewalk = false
  931. local customwalk = false
  932. local hidemenu = false
  933. local allowmenutofunction = false
  934. local allowabilitestofunction = false
  935. local canunequiporequip = false
  936. local allowidle = false
  937. local allowwalking = false
  938. local disablemovingarms = false
  939. local usemotorsinsteadofwelds = false
  940. local leftarm = false
  941. local rightarm = false
  942. local allowhopperbin = false
  943. local allowstunbar = false
  944. local walkspeeddependsonspeedvalue = true
  945. local alternatemanaregensystem = false
  946. local showhealthmanaandstunnumbers = false
  947. local changebarcolorsifnotenoughmana = false
  948. local disablejumpifstaggeredorstunned = false
  949. if hidemenu == true then
  950. for _, v in pairs(scrn:children()) do
  951. if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
  952. v.Visible = false
  953. end
  954. end
  955. end
  956. if disablejumpifstaggeredorstunned == true then
  957. Humanoid.Changed:connect(function(Jump)
  958. if Jump == "Jump" and (StaggerAnim.Value == true or StunAnim.Value == true) then
  959. Humanoid.Jump = false
  960. end
  961. end)
  962. end
  963. if allowmenutofunction == true then
  964. for _, v in pairs(scrn:GetChildren()) do
  965. if v.ClassName == "Frame" then
  966. for _, b in pairs(v:GetChildren()) do
  967. if b.ClassName == "TextLabel" and b.Name ~= "Text 1" and b.Name ~= "Text 2" and b.Name ~= "Text 3" and b.Name ~= "Text 4" then
  968. coroutine.resume(coroutine.create(function(TheTextLabel)
  969. wait(menuupdatespeed)
  970. for i = 1, 0, -0.1 do
  971. ArtificialHeartbeat.Event:wait()
  972. TheTextLabel.TextTransparency = i
  973. TheTextLabel.TextStrokeTransparency = i
  974. end
  975. TheTextLabel.TextTransparency = 0
  976. TheTextLabel.TextStrokeTransparency = 0
  977. end), b)
  978. end
  979. end
  980. end
  981. end
  982. end
  983. if allowmenutofunction == true and allowabilitestofunction == true then
  984. for _, v in pairs(scrn:GetChildren()) do
  985. if v.ClassName == "Frame" then
  986. for _, b in pairs(v:GetChildren()) do
  987. if b.ClassName == "TextLabel" and b.Name ~= "Health Text" and b.Name ~= "Mana Text" then
  988. coroutine.resume(coroutine.create(function(TheTextLabel)
  989. wait(menuupdatespeed)
  990. for i = 1, 0, -0.1 do
  991. ArtificialHeartbeat.Event:wait()
  992. TheTextLabel.TextTransparency = i
  993. TheTextLabel.TextStrokeTransparency = i
  994. end
  995. TheTextLabel.TextTransparency = 0
  996. TheTextLabel.TextStrokeTransparency = 0
  997. end), b)
  998. end
  999. end
  1000. end
  1001. end
  1002. end
  1003. if allowhopperbin == true then
  1004. if script.Parent.className ~= "HopperBin" then
  1005. Tool = Instance.new("HopperBin")
  1006. Tool.Parent = Backpack
  1007. Tool.Name = "Weapon Name"
  1008. script.Parent = Tool
  1009. end
  1010. Bin = script.Parent
  1011. end
  1012. if disablemovingarms == true then
  1013. RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  1014. LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  1015. RSH, LSH = nil, nil
  1016. if usemotorsinsteadofwelds == true then
  1017. RW = Instance.new("Motor")
  1018. LW = Instance.new("Motor")
  1019. else
  1020. RW = Instance.new("Weld")
  1021. LW = Instance.new("Weld")
  1022. end
  1023. RW.Name = "Right Shoulder"
  1024. LW.Name = "Left Shoulder"
  1025. RSH = Torso["Right Shoulder"]
  1026. LSH = Torso["Left Shoulder"]
  1027. RSH.Parent = Torso
  1028. LSH.Parent = Torso
  1029. RW.Name = "Right Shoulder"
  1030. RW.Part0 = Torso
  1031. RW.C0 = cf(1.5, 0.5, 0)
  1032. RW.C1 = cf(0, 0.5, 0)
  1033. RW.Part1 = Character["Right Arm"]
  1034. RW.Parent = nil
  1035. LW.Name = "Left Shoulder"
  1036. LW.Part0 = Torso
  1037. LW.C0 = cf(-1.5, 0.5, 0)
  1038. LW.C1 = cf(0, 0.5, 0)
  1039. LW.Part1 = Character["Left Arm"]
  1040. LW.Parent = nil
  1041. else
  1042. RW = Torso["Right Shoulder"]
  1043. LW = Torso["Left Shoulder"]
  1044. LH = Torso["Left Hip"]
  1045. RH = Torso["Right Hip"]
  1046. RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0))
  1047. LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0))
  1048. end
  1049. if allowidle == true then
  1050. coroutine.resume(coroutine.create(function()
  1051. while true do
  1052. for i = 0, 1, 0.08 do
  1053. wait()
  1054. idleangle = idleangle + 0.005 * idlen
  1055. idlen = idlen - 0.1
  1056. end
  1057. idlen = 0
  1058. for i = 0, 1, 0.08 do
  1059. wait()
  1060. idleangle = idleangle - 0.005 * idlen
  1061. idlen = idlen - 0.1
  1062. end
  1063. idlen = 0
  1064. idleangle = 0
  1065. end
  1066. end))
  1067. end
  1068. function equipanim()
  1069. attack = true
  1070. local equipvelocity = Instance.new("BodyVelocity", Torso)
  1071. equipvelocity.P = 500
  1072. equipvelocity.maxForce = vt(math.huge, math.huge, math.huge)
  1073. equipvelocity.Velocity = Vector3.new(0, 10, 0)
  1074. for i = 0, 1, 0.02 do
  1075. ArtificialHeartbeat.Event:wait()
  1076. MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  1077. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1078. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  1079. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15)
  1080. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15)
  1081. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  1082. LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
  1083. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1084. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1085. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
  1086. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
  1087. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  1088. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
  1089. end
  1090. coroutine.resume(coroutine.create(function()
  1091. for i = 0, 1, 0.1 do
  1092. wait()
  1093. outerbeingtransparency = outerbeingtransparency - 0.05
  1094. end
  1095. outerbeingtransparency = 0.5
  1096. end))
  1097. equipvelocity.Velocity = Vector3.new(0, 0, 0)
  1098. MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01)
  1099. MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01)
  1100. so("http://roblox.com/asset/?id=203691510", Torso, 1, 1)
  1101. so("http://roblox.com/asset/?id=203691653", Torso, 1, 1)
  1102. so("http://roblox.com/asset/?id=203691562", Torso, 1, 1)
  1103. so("http://roblox.com/asset/?id=160740121", Torso, 1, 1.5)
  1104. for i = 0, 1, 0.02 do
  1105. ArtificialHeartbeat.Event:wait()
  1106. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1107. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1108. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(90)) * RWC0, 0.15)
  1109. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)) * LWC0, 0.15)
  1110. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1111. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1112. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1113. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1114. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1115. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1116. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1117. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1118. end
  1119. equipvelocity:Destroy()
  1120. Speed.Value = Speed.Value - 0.1
  1121. Defense.Value = Defense.Value + 0.4
  1122. attack = false
  1123. end
  1124. function unequipanim()
  1125. attack = true
  1126. coroutine.resume(coroutine.create(function()
  1127. Humanoid.MaxHealth = math.huge
  1128. wait(0.1)
  1129. Humanoid.Health = Humanoid.MaxHealth
  1130. end))
  1131. local equipvelocity = Instance.new("BodyVelocity", Torso)
  1132. equipvelocity.P = 500
  1133. equipvelocity.maxForce = vt(math.huge, math.huge, math.huge)
  1134. equipvelocity.Velocity = Vector3.new(0, 1, 0)
  1135. so("http://roblox.com/asset/?id=183763515", Torso, 1, 0.4)
  1136. for i = 0, 1, 0.005 do
  1137. ArtificialHeartbeat.Event:wait()
  1138. MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  1139. BreakEffect(CustomColor, false, Torso.CFrame, 1, 25, 1, 0.05)
  1140. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20 + math.random(-10, 10)), math.rad(0), math.rad(0 + math.random(-10, 10))), 0.15)
  1141. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  1142. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15)
  1143. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15)
  1144. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  1145. LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
  1146. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1147. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1148. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
  1149. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
  1150. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  1151. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
  1152. end
  1153. MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01)
  1154. MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01)
  1155. so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
  1156. so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.6)
  1157. so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.6)
  1158. for i = 1, 2 do
  1159. so("http://roblox.com/asset/?id=160867463", Torso, 1, 0.8)
  1160. so("http://roblox.com/asset/?id=889016272", Torso, 5, 1)
  1161. end
  1162. coroutine.resume(coroutine.create(function()
  1163. for i = 0, 1, 0.01 do
  1164. wait()
  1165. outerbeingtransparency = outerbeingtransparency + 0.005
  1166. end
  1167. outerbeingtransparency = 1
  1168. end))
  1169. Face.Transparency = 1
  1170. for _, v in pairs(Character:children()) do
  1171. if v:IsA("Part") and v.ClassName ~= "Model" then
  1172. coroutine.resume(coroutine.create(function(Part)
  1173. for i = 0, 1, 0.01 do
  1174. wait()
  1175. Part.Transparency = Part.Transparency + 0.01
  1176. end
  1177. Part.Anchored = true
  1178. Part.Transparency = 1
  1179. end), v)
  1180. elseif v:IsA("Hat") then
  1181. coroutine.resume(coroutine.create(function(Hat)
  1182. for i = 0, 1, 0.01 do
  1183. wait()
  1184. Hat.Transparency = Hat.Transparency + 0.01
  1185. end
  1186. Hat.Anchored = true
  1187. Hat.Transparency = 1
  1188. end), v.Handle)
  1189. end
  1190. end
  1191. local deathnum = 0
  1192. for i = 0, 1, 0.005 do
  1193. ArtificialHeartbeat.Event:wait()
  1194. if deathnum >= 10 then
  1195. deathnum = 0
  1196. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1197. refpart.CFrame = Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))
  1198. refpart.Anchored = true
  1199. game:GetService("Debris"):AddItem(refpart, 1)
  1200. MagicBlock(CustomColor, true, refpart.CFrame, 30, 30, 30, 0.5, 0.5, 0.5, 0.01)
  1201. MagicSphere(CustomColor, refpart.CFrame, 60, 60, 60, 1, 1, 1, 0.01)
  1202. so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
  1203. end
  1204. BreakEffect(CustomColor, false, Torso.CFrame, 1, 50, 1, 0.05)
  1205. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(0 + math.random(-40, 40))), 0.15)
  1206. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40))), 0.15)
  1207. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))) * RWC0, 0.15)
  1208. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))) * LWC0, 0.15)
  1209. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))), 0.15)
  1210. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))), 0.15)
  1211. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1212. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1213. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1214. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1215. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1216. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1217. deathnum = deathnum + 1
  1218. end
  1219. Humanoid.MaxHealth = 0
  1220. Humanoid.Health = 0
  1221. equipvelocity.Velocity = Vector3.new(0, 0, 0)
  1222. MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.008)
  1223. MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.008)
  1224. so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.4)
  1225. so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.4)
  1226. so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.4)
  1227. so("http://roblox.com/asset/?id=160867463", Torso, 1, 1.2)
  1228. attack = false
  1229. end
  1230. if startequipped == true then
  1231. equipped = true
  1232. if disableanimate == true then
  1233. Animate.Disabled = true
  1234. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1235. idleanimation:Play()
  1236. end
  1237. if disableanimator == true then
  1238. Animator.Parent = nil
  1239. end
  1240. if disablemovingarms == true then
  1241. RW.Parent = Torso
  1242. LW.Parent = Torso
  1243. RSH.Parent = nil
  1244. LSH.Parent = nil
  1245. end
  1246. Speed.Value = Speed.Value - 0.1
  1247. Defense.Value = Defense.Value + 0.4
  1248. elseif startequippedwithequipanimation == true then
  1249. equipped = true
  1250. if disableanimate == true then
  1251. Animate.Disabled = true
  1252. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1253. idleanimation:Play()
  1254. end
  1255. if disableanimator == true then
  1256. Animator.Parent = nil
  1257. end
  1258. if disablemovingarms == true then
  1259. RW.Parent = Torso
  1260. LW.Parent = Torso
  1261. RSH.Parent = nil
  1262. LSH.Parent = nil
  1263. end
  1264. equipanim()
  1265. end
  1266. function StaggerHit()
  1267. attack = true
  1268. attack = false
  1269. end
  1270. function Stagger()
  1271. attack = true
  1272. attack = false
  1273. end
  1274. function Stun()
  1275. attack = true
  1276. attack = false
  1277. end
  1278. function EAbility()
  1279. attack = true
  1280. attack = false
  1281. end
  1282. function attackone()
  1283. attack = true
  1284. attack = false
  1285. end
  1286. function attacktwo()
  1287. attack = true
  1288. attack = false
  1289. end
  1290. function attackthree()
  1291. attack = true
  1292. attack = false
  1293. end
  1294. function attackfour()
  1295. attack = true
  1296. attack = false
  1297. end
  1298. function Move1()
  1299. attack = true
  1300. for i = 0, 1, 0.25 do
  1301. ArtificialHeartbeat.Event:wait()
  1302. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1303. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1304. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15)
  1305. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  1306. if Anim ~= "Walk" then
  1307. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1308. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1309. elseif Anim == "Walk" then
  1310. if walkinganim == true then
  1311. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1312. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1313. else
  1314. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1315. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1316. end
  1317. end
  1318. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1319. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1320. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1321. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1322. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1323. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1324. end
  1325. for i = 0, 1, 0.04 do
  1326. ArtificialHeartbeat.Event:wait()
  1327. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1328. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1329. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15)
  1330. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  1331. if Anim ~= "Walk" then
  1332. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1333. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1334. elseif Anim == "Walk" then
  1335. if walkinganim == true then
  1336. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1337. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1338. else
  1339. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1340. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1341. end
  1342. end
  1343. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1344. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1345. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1346. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1347. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1348. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1349. end
  1350. local orbnumber = math.random(20, 40)
  1351. coroutine.resume(coroutine.create(function()
  1352. for i = 1, orbnumber do
  1353. wait()
  1354. local orbblastpart = part(3, Effects, "SmoothPlastic", 0, 0.5, CustomColor, "Effect", vt())
  1355. local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10))
  1356. orbblastpart.Anchored = true
  1357. game:GetService("Debris"):AddItem(orbblastpart, 5)
  1358. orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(50, 100), math.random(-10, 10)))
  1359. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
  1360. MagicSphere(CustomColor, orbblastpart.CFrame, 10, 10, 10, 0.5, 0.5, 0.5, 0.05)
  1361. so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2)
  1362. coroutine.resume(coroutine.create(function(Part)
  1363. wait(1)
  1364. local spread = vt(math.random(-16, 16), math.random(-16, 16), math.random(-16, 16)) * (Part.Position - (Part.Position + vt(0, -1, 0))).magnitude / 100
  1365. local TheHit = Part.Position + vt(0, -1, 0)
  1366. local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
  1367. local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
  1368. local mag = (Part.Position - pos).magnitude
  1369. MagicCylinder(CustomColor, cf((Part.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 1, mag * 5, 1, 0.25, 0, 0.25, 0.025)
  1370. MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05)
  1371. Part.Parent = nil
  1372. if hit ~= nil then
  1373. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1374. refpart.CFrame = cf(pos)
  1375. refpart.Anchored = true
  1376. game:GetService("Debris"):AddItem(refpart, 1)
  1377. MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05)
  1378. MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 3, 3, 3, 0.05)
  1379. MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 1, 1, 1, 1, 0.025)
  1380. so("http://roblox.com/asset/?id=183763487", refpart, 1, 1)
  1381. Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true)
  1382. MagniDamage(refpart, 15, 5, 10, 0, "Normal", 0, 1, 0, nil, true, true)
  1383. end
  1384. end), orbblastpart)
  1385. end
  1386. end))
  1387. for i = 0, 1, (0.015 + orbnumber / 10000) / 2 do
  1388. ArtificialHeartbeat.Event:wait()
  1389. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1390. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1391. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15)
  1392. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  1393. if Anim ~= "Walk" then
  1394. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1395. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1396. elseif Anim == "Walk" then
  1397. if walkinganim == true then
  1398. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1399. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1400. else
  1401. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1402. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1403. end
  1404. end
  1405. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1406. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1407. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1408. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1409. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1410. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1411. end
  1412. for i = 0, 1, 0.25 do
  1413. ArtificialHeartbeat.Event:wait()
  1414. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1415. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1416. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15)
  1417. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  1418. if Anim ~= "Walk" then
  1419. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1420. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1421. elseif Anim == "Walk" then
  1422. if walkinganim == true then
  1423. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1424. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1425. else
  1426. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1427. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1428. end
  1429. end
  1430. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1431. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1432. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1433. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1434. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1435. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1436. end
  1437. attack = false
  1438. end
  1439. function Move2()
  1440. attack = true
  1441. local oldspeedvalue = Speed.Value
  1442. Speed.Value = 0
  1443. for i = 0, 1, 0.25 do
  1444. ArtificialHeartbeat.Event:wait()
  1445. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1446. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1447. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  1448. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
  1449. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1450. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1451. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1452. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1453. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
  1454. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
  1455. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1456. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1457. end
  1458. for i = 0, 1, 0.015 do
  1459. ArtificialHeartbeat.Event:wait()
  1460. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1461. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1462. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  1463. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
  1464. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1465. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1466. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1467. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1468. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
  1469. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
  1470. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1471. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1472. end
  1473. so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6)
  1474. for i = 0, 1, 0.25 do
  1475. ArtificialHeartbeat.Event:wait()
  1476. MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
  1477. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
  1478. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1479. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1480. RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  1481. LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
  1482. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  1483. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15)
  1484. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1485. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1486. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
  1487. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
  1488. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
  1489. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1490. end
  1491. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1492. refpart.CFrame = RootPart.CFrame * cf(0, 500, -20)
  1493. refpart.Anchored = true
  1494. game:GetService("Debris"):AddItem(refpart, 1)
  1495. local TheHit = refpart.Position + vt(0, -1, 0)
  1496. local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit)
  1497. local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character)
  1498. local mag = (refpart.Position - pos).magnitude
  1499. local refpart2 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1500. refpart2.CFrame = cf(pos)
  1501. refpart2.Anchored = true
  1502. game:GetService("Debris"):AddItem(refpart2, 1)
  1503. MagicCylinder(CustomColor, cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, 0.1, 0, 0.1, 0.025)
  1504. if hit ~= nil then
  1505. MagicBlock(CustomColor, true, refpart2.CFrame, 15, 15, 15, 1.5, 1.5, 1.5, 0.01)
  1506. MagicSphere(CustomColor, refpart2.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
  1507. MagicWave(CustomColor, refpart2.CFrame, 5, 5, 5, 1, 1.5, 1, 0.025)
  1508. MagicRing(CustomColor, refpart2.CFrame * angles(math.rad(90), 0, 0), 2.5, 2.5, 2.5, 2, 2, 2, 0.025)
  1509. so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8)
  1510. so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8)
  1511. MagniDamage(refpart2, 25, 20, 50, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true)
  1512. end
  1513. for i = 0, 1, 0.02 do
  1514. ArtificialHeartbeat.Event:wait()
  1515. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1516. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1517. RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  1518. LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
  1519. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  1520. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15)
  1521. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1522. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1523. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
  1524. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
  1525. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
  1526. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1527. end
  1528. Speed.Value = Speed.Value + oldspeedvalue
  1529. attack = false
  1530. end
  1531. function Move3()
  1532. attack = true
  1533. local oldspeedvalue = Speed.Value
  1534. Speed.Value = 0
  1535. so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6)
  1536. for i = 0, 1, 0.05 do
  1537. ArtificialHeartbeat.Event:wait()
  1538. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  1539. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
  1540. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15)
  1541. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  1542. RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.15)
  1543. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  1544. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1545. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1546. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1547. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1548. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  1549. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1550. end
  1551. for i = 0, 1, 0.05 do
  1552. ArtificialHeartbeat.Event:wait()
  1553. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  1554. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
  1555. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15)
  1556. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  1557. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  1558. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  1559. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1560. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1561. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1562. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1563. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.15)
  1564. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1565. end
  1566. MagicSphere(CustomColor, RootPart.CFrame * cf(2.5, -3, -2), 10, 4, 10, 2.5, 1.5, 2.5, 0.025)
  1567. local num = 0
  1568. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1569. refpart.CFrame = RootPart.CFrame * cf(2.5, 0, -6)
  1570. refpart.Anchored = true
  1571. game:GetService("Debris"):AddItem(refpart, 3)
  1572. for i = 1, 4 do
  1573. local refpart2 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1574. refpart2.CFrame = refpart.CFrame * cf(2.5, 0, num)
  1575. refpart2.Anchored = true
  1576. game:GetService("Debris"):AddItem(refpart2, 1)
  1577. local TheHit = refpart2.Position + vt(0, -1, 0)
  1578. local MouseLook = cf((refpart2.Position + TheHit) / 2, TheHit)
  1579. local hit, pos = rayCast(refpart2.Position, MouseLook.lookVector, 999, Character)
  1580. if hit ~= nil then
  1581. local refpart3 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1582. refpart3.CFrame = cf(pos)
  1583. refpart3.Anchored = true
  1584. game:GetService("Debris"):AddItem(refpart3, 1)
  1585. MagicSphere(CustomColor, refpart3.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
  1586. MagicWave(CustomColor, refpart3.CFrame, 5, 5, 5, 1, 1, 1, 0.025)
  1587. so("http://www.roblox.com/asset/?id=161006093", refpart3, 1, 0.6)
  1588. MagniDamage(refpart3, 20, 20, 30, math.random(5, 20), "Normal", 0, 1, 0, nil, true, true)
  1589. end
  1590. num = num - 20
  1591. wait(0.4)
  1592. end
  1593. Speed.Value = Speed.Value + oldspeedvalue
  1594. attack = false
  1595. end
  1596. function Move4()
  1597. attack = true
  1598. for i = 0, 1, 0.25 do
  1599. ArtificialHeartbeat.Event:wait()
  1600. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1601. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1602. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  1603. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
  1604. if Anim ~= "Walk" then
  1605. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1606. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1607. elseif Anim == "Walk" then
  1608. if walkinganim == true then
  1609. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1610. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1611. else
  1612. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1613. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1614. end
  1615. end
  1616. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1617. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1618. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  1619. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  1620. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1621. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1622. end
  1623. for i = 0, 1, 0.04 do
  1624. ArtificialHeartbeat.Event:wait()
  1625. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1626. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1627. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  1628. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
  1629. if Anim ~= "Walk" then
  1630. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1631. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1632. elseif Anim == "Walk" then
  1633. if walkinganim == true then
  1634. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1635. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1636. else
  1637. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1638. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1639. end
  1640. end
  1641. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1642. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1643. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  1644. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  1645. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1646. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1647. end
  1648. local orbpart = part(3, Effects, "SmoothPlastic", 0, 0.5, CustomColor, "Effect", vt())
  1649. local orbmesh = mesh("SpecialMesh", orbpart, "Sphere", "", vt(0, 0, 0), vt(15, 15, 15))
  1650. local orbweld = weld(orbpart, Torso, orbpart, cf(0, 0, 0), cf(0, -15, 0))
  1651. game:GetService("Debris"):AddItem(orbpart, 5)
  1652. so("http://roblox.com/asset/?id=137463716", orbpart, 1, 0.6)
  1653. coroutine.resume(coroutine.create(function(Part, Mesh)
  1654. for i = 0, 0.7, 0.005 do
  1655. ArtificialHeartbeat.Event:wait()
  1656. Mesh.Scale = Mesh.Scale + vt(0.25, 0.25, 0.25)
  1657. MagicBlock(CustomColor, true, orbpart.CFrame, 15, 15, 15, 1, 1, 1, 0.05)
  1658. local orbchargeeffect = part(3, Effects, "SmoothPlastic", 0, 0, CustomColor, "Effect", vt())
  1659. local orbchargeeffectmesh = mesh("SpecialMesh", orbchargeeffect, "Sphere", "", vt(0, 0, 0), vt(2, math.random(10, 15), 2))
  1660. local orbchargecframe = angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) * cf(0, math.random(10, 20), 0)
  1661. orbchargeeffect.CFrame = orbpart.CFrame * orbchargecframe
  1662. orbchargeeffect.Anchored = true
  1663. game:GetService("Debris"):AddItem(orbchargeeffect, 2)
  1664. coroutine.resume(coroutine.create(function(Part, Mesh)
  1665. for i = 0, 1, 0.1 do
  1666. ArtificialHeartbeat.Event:wait()
  1667. Part.Transparency = i
  1668. Part.CFrame = Part.CFrame * cf(0, -1, 0)
  1669. end
  1670. Part.Parent = nil
  1671. end), orbchargeeffect, orbchargeeffectmesh)
  1672. end
  1673. wait(0.5)
  1674. local range = 999
  1675. local MainPos = Part.Position
  1676. local MainPos2 = Mouse.Hit.p
  1677. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1678. local hit, pos = rayCast(MainPos, MouseLook.lookVector, range, ShotTarget.Parent)
  1679. local mag = (MainPos - pos).magnitude
  1680. MagicCylinder(CustomColor, cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 10, mag * 5, 10, 0.25, 0, 0.25, 0.005)
  1681. for i = 1, 5 do
  1682. local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, mag / 5 * (i / 2), 0)
  1683. MagicRing(CustomColor, ringcf * angles(math.rad(90), 0, 0), 1, 1, 1, 0.25, 0.25, 0.25, 0.005)
  1684. end
  1685. for i = 0, 5 do
  1686. local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, -mag / 5 * (i / 2), 0)
  1687. MagicRing(CustomColor, ringcf * angles(math.rad(90), 0, 0), 1, 1, 1, 0.25, 0.25, 0.25, 0.005)
  1688. end
  1689. so("http://roblox.com/asset/?id=183763506", Part, 1, 0.6)
  1690. so("http://roblox.com/asset/?id=178452221", Part, 1, 0.6)
  1691. so("http://www.roblox.com/asset/?id=87767777", Part, 1, 1)
  1692. if hit ~= nil then
  1693. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1694. refpart.CFrame = cf(pos)
  1695. refpart.Anchored = true
  1696. game:GetService("Debris"):AddItem(refpart, 1)
  1697. MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
  1698. MagicSphere(CustomColor, refpart.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
  1699. so("http://roblox.com/asset/?id=183763506", refpart, 1, 0.6)
  1700. so("http://roblox.com/asset/?id=178452221", refpart, 1, 0.6)
  1701. so("http://www.roblox.com/Asset?ID=87767777", refpart, 1, 1)
  1702. Damagefunc(hit, 30, 70, 50, "Normal", RootPart, 0, 1, 0, nil, true, true)
  1703. MagniDamage(refpart, 20, 10, 30, 40, "Normal", 0, 1, 0, nil, true, true)
  1704. end
  1705. for i = 0, 1, 0.01 do
  1706. ArtificialHeartbeat.Event:wait()
  1707. Mesh.Scale = Mesh.Scale + vt(0.5, 0.5, 0.5)
  1708. Part.Transparency = Part.Transparency + 0.01
  1709. end
  1710. Part.Parent = nil
  1711. end), orbpart, orbmesh)
  1712. for i = 0, 1, 0.004 do
  1713. ArtificialHeartbeat.Event:wait()
  1714. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1715. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1716. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  1717. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
  1718. if Anim ~= "Walk" then
  1719. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1720. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1721. elseif Anim == "Walk" then
  1722. if walkinganim == true then
  1723. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1724. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1725. else
  1726. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1727. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1728. end
  1729. end
  1730. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1731. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1732. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  1733. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  1734. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1735. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1736. end
  1737. for i = 0, 1, 0.25 do
  1738. ArtificialHeartbeat.Event:wait()
  1739. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1740. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1741. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  1742. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
  1743. if Anim ~= "Walk" then
  1744. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1745. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1746. elseif Anim == "Walk" then
  1747. if walkinganim == true then
  1748. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1749. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  1750. else
  1751. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1752. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  1753. end
  1754. end
  1755. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1756. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1757. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  1758. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  1759. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1760. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1761. end
  1762. attack = false
  1763. end
  1764. hold = false
  1765. Mouse.Button1Down:connect(function()
  1766. if attack == true or equipped == false then
  1767. return
  1768. end
  1769. hold = true
  1770. if attacktype == 1 then
  1771. attacktype = 2
  1772. attackone()
  1773. elseif attacktype == 2 then
  1774. attacktype = 3
  1775. attacktwo()
  1776. elseif attacktype == 3 then
  1777. attacktype = 4
  1778. attackthree()
  1779. elseif attacktype == 4 then
  1780. attacktype = 1
  1781. attackfour()
  1782. end
  1783. coroutine.resume(coroutine.create(function()
  1784. for i = 1, 50 do
  1785. if attack == false then
  1786. wait()
  1787. end
  1788. end
  1789. if attack == false then
  1790. attacktype = 1
  1791. end
  1792. end))
  1793. end)
  1794. if allowhopperbin == true then
  1795. function ob1u(Mouse)
  1796. hold = false
  1797. end
  1798. end
  1799. Mouse.KeyDown:connect(function(key)
  1800. if key == "f" and canunequiporequip == true and attack == false then
  1801. if equipped == false then
  1802. equipped = true
  1803. if disableanimate == true then
  1804. Animate.Disabled = true
  1805. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1806. idleanimation:Play()
  1807. end
  1808. if disableanimator == true then
  1809. Animator.Parent = nil
  1810. end
  1811. if disablemovingarms == true then
  1812. RW.Parent = Torso
  1813. LW.Parent = Torso
  1814. RSH.Parent = nil
  1815. LSH.Parent = nil
  1816. end
  1817. equipanim()
  1818. elseif equipped == true then
  1819. equipped = false
  1820. unequipanim()
  1821. ArtificialHeartbeat.Event:wait()
  1822. if disablemovingarms == true then
  1823. RW.Parent = nil
  1824. LW.Parent = nil
  1825. RSH.Parent = Torso
  1826. LSH.Parent = Torso
  1827. end
  1828. if disableanimator == true then
  1829. Animator.Parent = Humanoid
  1830. end
  1831. if disableanimate == true then
  1832. Animate.Disabled = false
  1833. end
  1834. end
  1835. end
  1836. if key == "e" and attack == false and equipped == true then
  1837. EAbility()
  1838. end
  1839. if key == "z" and attack == false and equipped == true and cooldown1 >= co1 and mana >= skill1mana then
  1840. subtractmana(skill1mana)
  1841. cooldown1 = 0
  1842. Move1()
  1843. end
  1844. if key == "x" and attack == false and equipped == true and cooldown2 >= co2 and mana >= skill2mana then
  1845. subtractmana(skill2mana)
  1846. cooldown2 = 0
  1847. Move2()
  1848. end
  1849. if key == "c" and attack == false and equipped == true and cooldown3 >= co3 and mana >= skill3mana then
  1850. subtractmana(skill3mana)
  1851. cooldown3 = 0
  1852. Move3()
  1853. end
  1854. if key == "v" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then
  1855. subtractmana(skill4mana)
  1856. cooldown4 = 0
  1857. Move4()
  1858. end
  1859. if key == "m" then
  1860. hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
  1861. if hitfloor == nil then
  1862. RootPart.CFrame = RootPart.CFrame * cf(0, 12, 0)
  1863. end
  1864. end
  1865. end)
  1866. if allowhopperbin == true then
  1867. function key2(key)
  1868. end
  1869. end
  1870. if allowhopperbin == true then
  1871. function s(Mouse)
  1872. Mouse.Button1Down:connect(function()
  1873. ob1d(Mouse)
  1874. end)
  1875. Mouse.Button1Up:connect(function()
  1876. ob1u(Mouse)
  1877. end)
  1878. Mouse.KeyDown:connect(key)
  1879. Mouse.KeyUp:connect(key2)
  1880. end
  1881. end
  1882. if allowhopperbin == true then
  1883. function ds(Mouse)
  1884. end
  1885. end
  1886. if allowhopperbin == true then
  1887. Bin.Selected:connect(s)
  1888. Bin.Deselected:connect(ds)
  1889. end
  1890. function updateskills()
  1891. if allowabilitestofunction == true then
  1892. if cooldown1 <= co1 then
  1893. cooldown1 = cooldown1 + 0.03333333333333333
  1894. if cooldown1 >= co1 then
  1895. cooldown1 = co1
  1896. end
  1897. end
  1898. if cooldown2 <= co2 then
  1899. cooldown2 = cooldown2 + 0.03333333333333333
  1900. if cooldown2 >= co2 then
  1901. cooldown2 = co2
  1902. end
  1903. end
  1904. if cooldown3 <= co3 then
  1905. cooldown3 = cooldown3 + 0.03333333333333333
  1906. if cooldown3 >= co3 then
  1907. cooldown3 = co3
  1908. end
  1909. end
  1910. if cooldown4 <= co4 then
  1911. cooldown4 = cooldown4 + 0.03333333333333333
  1912. elseif cooldown4 >= co4 then
  1913. cooldown4 = co4
  1914. end
  1915. if changebarcolorsifnotenoughmana == true then
  1916. if mana <= skill1mana then
  1917. bar4.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  1918. else
  1919. bar4.BackgroundColor3 = skillcolorscheme
  1920. end
  1921. if mana <= skill2mana then
  1922. bar3.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  1923. else
  1924. bar3.BackgroundColor3 = skillcolorscheme
  1925. end
  1926. if mana <= skill3mana then
  1927. bar1.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  1928. else
  1929. bar1.BackgroundColor3 = skillcolorscheme
  1930. end
  1931. if mana <= skill4mana then
  1932. bar2.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  1933. else
  1934. bar2.BackgroundColor3 = skillcolorscheme
  1935. end
  1936. elseif changebarcolorsifnotenoughmana == false then
  1937. bar1.BackgroundColor3 = skillcolorscheme
  1938. bar2.BackgroundColor3 = skillcolorscheme
  1939. bar3.BackgroundColor3 = skillcolorscheme
  1940. bar4.BackgroundColor3 = skillcolorscheme
  1941. end
  1942. end
  1943. if alternatemanaregensystem == false then
  1944. if mana <= maxmana then
  1945. mana = mana + recovermana / 30
  1946. elseif mana >= maxmana then
  1947. mana = maxmana
  1948. end
  1949. elseif alternatemanaregensystem == true then
  1950. if mana >= maxmana then
  1951. mana = maxmana
  1952. elseif manadelay <= manawait then
  1953. manadelay = manadelay + 1
  1954. else
  1955. manadelay = 0
  1956. mana = mana + 1
  1957. end
  1958. end
  1959. if allowstunbar == true then
  1960. if 0 >= StunValue.Value then
  1961. StunValue.Value = 0
  1962. elseif stundelay <= stunwait then
  1963. stundelay = stundelay + 1
  1964. else
  1965. stundelay = 0
  1966. StunValue.Value = StunValue.Value - 1
  1967. end
  1968. elseif allowstunbar == false then
  1969. StunValue.Value = 0
  1970. end
  1971. end
  1972. if allowmenutofunction == true then
  1973. ArtificialHeartbeat.Event:connect(function()
  1974. updateskills()
  1975. if allowabilitestofunction == true then
  1976. framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1977. framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1978. framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1979. framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1980. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1981. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1982. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1983. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1984. end
  1985. manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1986. manacover:TweenSize(ud(1 * (mana / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1987. healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1988. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1989. if allowstunbar == true then
  1990. stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1991. stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1992. end
  1993. if showhealthmanaandstunnumbers == true then
  1994. manatext.Text = "Mana [" .. mana .. "]"
  1995. healthtext.Text = "Health [" .. Humanoid.Health .. "]"
  1996. if allowstunbar == true then
  1997. stuntext.Text = "Stun [" .. StunValue.Value .. "]"
  1998. end
  1999. end
  2000. if showstats == true then
  2001. defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2002. damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2003. speedframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2004. defensetext.Text = "Defense: " .. Defense.Value
  2005. damagetext.Text = "Damage: " .. Damage.Value
  2006. speedtext.Text = "Speed: " .. Speed.Value
  2007. end
  2008. end)
  2009. end
  2010. ArtificialHeartbeat.Event:connect(function()
  2011. if Humanoid.Health < 100 and dieanim == false then
  2012. dieanim = true
  2013. unequipanim()
  2014. end
  2015. if Humanoid.Health > 0 then
  2016. if walkspeeddependsonspeedvalue == true then
  2017. if 0 > Speed.Value or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true then
  2018. Humanoid.WalkSpeed = 0
  2019. else
  2020. Humanoid.WalkSpeed = 16 * Speed.Value
  2021. end
  2022. end
  2023. if StunValue.Value >= maxstun then
  2024. StunValue.Value = 0
  2025. StunAnim.Value = true
  2026. end
  2027. if StaggerAnim.Value == true and staganim == false then
  2028. coroutine.resume(coroutine.create(function()
  2029. staganim = true
  2030. while attack == true do
  2031. ArtificialHeartbeat.Event:wait()
  2032. end
  2033. Stagger()
  2034. StaggerAnim.Value = false
  2035. staganim = false
  2036. end))
  2037. end
  2038. if StaggerHitAnim.Value == true and staghitanim == false then
  2039. coroutine.resume(coroutine.create(function()
  2040. staghitanim = true
  2041. while attack == true do
  2042. ArtificialHeartbeat.Event:wait()
  2043. end
  2044. StaggerHit()
  2045. StaggerHitAnim.Value = false
  2046. staghitanim = false
  2047. end))
  2048. end
  2049. if StunAnim.Value == true and stunanim == false or 100 <= StunValue.Value then
  2050. coroutine.resume(coroutine.create(function()
  2051. StunValue.Value = 0
  2052. stunanim = true
  2053. while attack == true do
  2054. ArtificialHeartbeat.Event:wait()
  2055. end
  2056. Stun()
  2057. StunAnim.Value = false
  2058. stunanim = false
  2059. end))
  2060. end
  2061. sine = sine + change
  2062. someangle = someangle % 100 + change2 / 10
  2063. local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
  2064. local velderp = RootPart.Velocity.y
  2065. local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
  2066. hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
  2067. if donum >= 0.5 then
  2068. handidle = true
  2069. elseif donum <= 0 then
  2070. handidle = false
  2071. end
  2072. if handidle == false then
  2073. donum = donum + 0.002
  2074. else
  2075. donum = donum - 0.002
  2076. end
  2077. if equipped == true or equipped == false then
  2078. if attack == false then
  2079. idle = idle + 1
  2080. else
  2081. idle = 0
  2082. end
  2083. if not (idle >= 500) or attack == false then
  2084. end
  2085. if leftarm == true then
  2086. if Anim == "Walk" and equipped == true and attack == false then
  2087. if alternatewalk == false then
  2088. if walkinganim == true then
  2089. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2090. else
  2091. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2092. end
  2093. elseif walkinganim == true then
  2094. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2095. else
  2096. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2097. end
  2098. elseif Anim ~= "Walk" and equipped == true or attack == true then
  2099. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2100. end
  2101. end
  2102. if rightarm == true then
  2103. if Anim == "Walk" and equipped == true and attack == false then
  2104. if alternatewalk == false then
  2105. if walkinganim == true then
  2106. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2107. else
  2108. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2109. end
  2110. elseif walkinganim == true then
  2111. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2112. else
  2113. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2114. end
  2115. elseif Anim ~= "Walk" and equipped == true or attack == true then
  2116. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2117. end
  2118. end
  2119. if allowwalking == true then
  2120. if Anim == "Walk" and equipped == true then
  2121. if alternatewalk == false then
  2122. if walkinganim == true then
  2123. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2124. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2125. else
  2126. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2127. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2128. end
  2129. elseif walkinganim == true then
  2130. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2131. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2132. else
  2133. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2134. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  2135. end
  2136. elseif Anim ~= "Walk" and equipped == true then
  2137. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2138. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2139. end
  2140. end
  2141. if velderp > 1 and hitfloor == nil then
  2142. Anim = "Jump"
  2143. if attack == false and equipped == true then
  2144. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2145. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.1)
  2146. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)) * RWC0, 0.1)
  2147. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * LWC0, 0.1)
  2148. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.1)
  2149. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.1)
  2150. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
  2151. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
  2152. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  2153. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  2154. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
  2155. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
  2156. end
  2157. elseif velderp < -1 and hitfloor == nil then
  2158. Anim = "Fall"
  2159. if attack == false and equipped == true then
  2160. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2161. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.1)
  2162. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(60)) * RWC0, 0.1)
  2163. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.1)
  2164. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.1)
  2165. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  2166. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
  2167. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
  2168. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  2169. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  2170. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
  2171. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
  2172. end
  2173. elseif torvel < 1 and hitfloor ~= nil then
  2174. Anim = "Idle"
  2175. if attack == false and equipped == true then
  2176. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
  2177. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.075)
  2178. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.075)
  2179. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.075)
  2180. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
  2181. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
  2182. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.075)
  2183. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.075)
  2184. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.075)
  2185. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.075)
  2186. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.075)
  2187. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.075)
  2188. end
  2189. elseif torvel > 1 and hitfloor ~= nil then
  2190. Anim = "Walk"
  2191. walk = walk + 0.5
  2192. if walk >= 20 then
  2193. walk = 0
  2194. if walkinganim == true then
  2195. walkinganim = false
  2196. elseif walkinganim == false then
  2197. walkinganim = true
  2198. end
  2199. end
  2200. if attack == false and equipped == true then
  2201. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2202. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  2203. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.1)
  2204. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.1)
  2205. if walkinganim == true then
  2206. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2207. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2208. else
  2209. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2210. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2211. end
  2212. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
  2213. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
  2214. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  2215. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  2216. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
  2217. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
  2218. end
  2219. end
  2220. end
  2221. end
  2222. end)
Advertisement
Add Comment
Please, Sign In to add comment