Advertisement
Pukaciu

giant

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