Advertisement
yougotoof

eeeeeer

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