Advertisement
shgsiughiiruhdu12354

fe scout!!!! (IM BACK)

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