Advertisement
lafur

Untitled

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