Advertisement
Orangeplayer1431

CHEEKI BREEKI

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