Advertisement
DarkScriptZEditors

Untitled

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