Advertisement
Orangeplayer1431

rick

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