murloc04

russian dance but more russian

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