Advertisement
Bendy928443534

Untitled

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