Advertisement
ericdesouza

Untitled

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