Advertisement
DaOMEGAa32

fe furby

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