Advertisement
ItzPartapika

Tom Dance

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