Advertisement
Void_scripter0

Default

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