Advertisement
Guest User

Untitled

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