cat568

roblox dancing cat script

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