Advertisement
DarkScriptZEditors

Russian Kick Fe

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