Advertisement
Pancakess

russ ian

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