Advertisement
yougotoof

Untitled

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