Advertisement
Guest User

Sing script + Ipod script by airthes TEST

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