Advertisement
Abejaron23

Untitled

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