Advertisement
Zach_script_stealer2

Slav Dance / Russian Kick

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