Advertisement
yougotoof

34

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