Advertisement
hgh920

More ACT stuff

Apr 25th, 2017
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 160.89 KB | None | 0 0
  1. ---- Vegito SSGSS (DBS) By PapiSwagGamez ---------------------------------
  2. jun = game.Players.LocalPlayer
  3. local char = jun.Character
  4. local Head = char.Head
  5. local mouse = jun:GetMouse()
  6. local larm = char["Left Arm"]
  7. local rarm = char["Right Arm"]
  8. local lleg = char["Left Leg"]
  9. local rleg = char["Right Leg"]
  10. local hed = char.Head
  11. local torso = char.Torso
  12. local hum = char.Humanoid
  13. local cam = game.Workspace.CurrentCamera
  14. local root = char.HumanoidRootPart
  15. local deb = false
  16. local shot = 0
  17. local debris=game:service"Debris"
  18. local l = game:GetService("Lighting")
  19. local rs = game:GetService("RunService").RenderStepped
  20. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  21. math.randomseed(os.time())
  22. for i,v in pairs(char:children()) do
  23. if v:IsA("Hat") then
  24. v:Destroy()
  25. end
  26. end
  27. for i,v in pairs (hed:GetChildren()) do
  28. if v:IsA("Sound") then
  29. v:Destroy()
  30. end
  31. end
  32.  
  33. Stuff = false
  34.  
  35. function Chat(msg)
  36. game:service("Chat"):Chat(jun.Character.Head,msg,Enum.ChatColor.Red)
  37. end
  38.  
  39. function god()
  40. if Stuff == false then
  41. Stuff = true
  42.  
  43. Chat("It's time to die!")
  44. jun.Character.Humanoid.WalkSpeed = 0
  45. Effect1 = Instance.new("Part",jun.Character)
  46. Effect1.Anchored = true
  47. Effect1.CanCollide = false
  48. Effect1.Shape = "Ball"
  49. Effect1.CFrame = jun.Character.Torso.CFrame
  50. Effect1.BrickColor = BrickColor.new("Cyan")
  51. Effect1.Size = Vector3.new(9,7,7)
  52. Effect1.TopSurface = "Smooth"
  53. Effect1.BottomSurface = "Smooth"
  54.  
  55.  
  56. for i = 1, 5 do
  57. wait(.5)
  58. Effect1.Transparency = Effect1.Transparency + .2
  59. end
  60. Effect1:Destroy()
  61.  
  62. jun.Character.Humanoid.WalkSpeed = 17
  63. Chat("I'll make you suffer!")
  64.  
  65. p = Instance.new("Part")
  66. p.Parent = jun.Character
  67. p.Anchored = true
  68. p.CanCollide = false
  69. p.Transparency = 0.15
  70. p.formFactor = "Symmetric"
  71. p.Size = Vector3.new(0, 0, 0)
  72. p.TopSurface = "Smooth"
  73. p.BottomSurface = "Smooth"
  74. p.Name = "Sharingan"
  75. p.Shape = "Ball"
  76. p.CFrame = jun.Character.Torso.CFrame
  77. p.BrickColor = BrickColor.new("Cyan")
  78. for i = 1 , 10 do
  79. wait(0.07)
  80. p.Size = p.Size + Vector3.new(4, 4, 4)
  81. p.Transparency = p.Transparency + 0.1
  82. p.CFrame = jun.Character.Torso.CFrame
  83. end
  84. p:Destroy()
  85.  
  86. local runServ = game:GetService("RunService").RenderStepped
  87.  
  88. local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head)
  89. local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
  90. local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
  91. HBill.Size = UDim2.new(15,0,2.2,0)
  92. HBill.Name = "Health Display"
  93. HBill.StudsOffset = Vector3.new(0,4,0)
  94. HBill.AlwaysOnTop = true
  95. HBill.Enabled = true
  96. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  97. HMain.BackgroundTransparency = 1
  98. HMain.Size = UDim2.new(1,0,1,0)
  99. HBarBack.Parent = HMain
  100. HBarBack.BackgroundColor3 = Color3.new(0,0,0)
  101. HBarBack.BorderColor3 = Color3.new(0,0,0)
  102. HBarBack.BorderSizePixel = 2
  103. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  104. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  105. HBar.Parent = HBarBack
  106. HBar.BackgroundColor3 = Color3.new(0, 1, 0)
  107. HBar.BorderColor3 = Color3.new(0,0,0)
  108. HBar.Size = UDim2.new(.5,0,1,0)
  109. HHealth.BackgroundTransparency = 1
  110. HHealth.Size = UDim2.new(1,0,1,0)
  111. HHealth.Font = "Bodoni"
  112. HHealth.Text = " "
  113. HHealth.TextScaled = true
  114. HHealth.TextColor3 = Color3.new(255,255,0)
  115. HHealth.TextStrokeColor3 = BrickColor.new("Really black").Color
  116. HHealth.TextStrokeTransparency = 0
  117. HName.Parent = HMain
  118. HName.BackgroundTransparency = 1
  119. HName.Size = UDim2.new(1,0,.5,0)
  120. HName.Font = "Bodoni"
  121. HName.Text = "Zabuza Momochi"
  122. HName.TextScaled = true
  123. HName.TextColor3 = BrickColor.new("Cyan").Color
  124. HName.TextStrokeColor3 = Color3.new(0,0,0)
  125. HName.TextStrokeTransparency = 0
  126. HName.TextYAlignment = "Top"
  127.  
  128. --------------------------------------------------------------------------------------------
  129. z = Instance.new("Sound", char)
  130. z.SoundId = "rbxassetid://428902535"
  131. z.Looped = true
  132. z.Pitch = 1
  133. z.Volume = 4
  134. wait(.1)
  135. z:Play()
  136. ---------------------------------------------------
  137.  
  138. jun.Character.Humanoid.MaxHealth = 1000000000
  139.  
  140. -------------------------------------------------------------------------------------
  141. ----------------------------------------------------------
  142.  
  143.  
  144. local player = game.Players.LocalPlayer
  145. local pchar = player.Character
  146. local mouse = player:GetMouse()
  147. local cam = workspace.CurrentCamera
  148.  
  149. local rad = math.rad
  150.  
  151. local keysDown = {}
  152. local flySpeed = 0
  153. local MAX_FLY_SPEED = 150
  154.  
  155. local canFly = false
  156. local flyToggled = false
  157.  
  158. local forward, side = 0, 0
  159. local lastForward, lastSide = 0, 0
  160.  
  161. local floatBP = Instance.new("BodyPosition")
  162. floatBP.maxForce = Vector3.new(0, math.huge, 0)
  163. local flyBV = Instance.new("BodyVelocity")
  164. flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  165. local turnBG = Instance.new("BodyGyro")
  166. turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  167.  
  168. mouse.KeyDown:connect(function(key)
  169. keysDown[key] = true
  170.  
  171. if key == "q" then
  172. flyToggled = not flyToggled
  173.  
  174. if not flyToggled then
  175. stanceToggle = "Normal"
  176. floatBP.Parent = nil
  177. flyBV.Parent = nil
  178. turnBG.Parent = nil
  179. root.Velocity = Vector3.new()
  180. pchar.Humanoid.PlatformStand = false
  181. end
  182. end
  183.  
  184. end)
  185. mouse.KeyUp:connect(function(key)
  186. keysDown[key] = nil
  187. end)
  188.  
  189. local function updateFly()
  190.  
  191. if not flyToggled then return end
  192.  
  193. lastForward = forward
  194. lastSide = side
  195.  
  196. forward = 0
  197. side = 0
  198.  
  199. if keysDown.w then
  200. forward = forward + 1
  201. end
  202. if keysDown.s then
  203. forward = forward - 1
  204. end
  205. if keysDown.a then
  206. side = side - 1
  207. end
  208. if keysDown.d then
  209. side = side + 1
  210. end
  211.  
  212. canFly = (forward ~= 0 or side ~= 0)
  213.  
  214. if canFly then
  215. stanceToggle = "Floating"
  216. turnBG.Parent = root
  217. floatBP.Parent = nil
  218. flyBV.Parent = root
  219.  
  220. flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED)
  221. if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end
  222. else
  223. floatBP.position = root.Position
  224. floatBP.Parent = root
  225.  
  226. flySpeed = flySpeed - 1
  227. if flySpeed < 0 then flySpeed = 0 end
  228. end
  229.  
  230. local camCF = cam.CoordinateFrame
  231. local in_forward = canFly and forward or lastForward
  232. local in_side = canFly and side or lastSide
  233.  
  234. flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,
  235. in_forward * 0.2, 0).p) - camCF.p) * flySpeed
  236.  
  237. turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0,
  238. 0)
  239. end
  240.  
  241. game:service'RunService'.RenderStepped:connect(function()
  242. if flyToggled then
  243. pchar.Humanoid.PlatformStand = true
  244. end
  245. updateFly()
  246. end)
  247. -------------------------------------------
  248. repeat wait() until game.Players.LocalPlayer
  249. local Mouse = game.Players.LocalPlayer:GetMouse()
  250. local Plr = game.Players.LocalPlayer
  251.  
  252. Mouse.KeyDown:connect(function(KeyDown)
  253. if KeyDown == "0" then
  254. Plr.Character.Humanoid.WalkSpeed = 40
  255. end
  256. end)
  257.  
  258. Mouse.KeyUp:connect(function(KeyUp)
  259. if KeyUp == "0" then
  260. Plr.Character.Humanoid.WalkSpeed = 17
  261. end
  262. end)
  263. -------------------------------------
  264. -------------------------------
  265. local animpose = "Idle"
  266. local lastanimpose = "Idle"
  267. local sine = 0
  268. local change = 1
  269. local val = 0
  270. local ffing = false
  271. -------------------------------
  272. game:GetService("RunService").RenderStepped:connect(function()
  273. --[[if char.Humanoid.Jump == true then
  274. jump = true
  275. else
  276. jump = false
  277. end]]
  278. char.Humanoid.FreeFalling:connect(function(f)
  279. if f then
  280. ffing = true
  281. else
  282. ffing = false
  283. end
  284. end)
  285. sine = sine + change
  286. if jumpn == true then
  287. animpose = "Jumping"
  288. elseif ffing == true then
  289. animpose = "Freefalling"
  290. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  291. animpose = "Idle"
  292. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  293. animpose = "Walking"
  294. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  295. animpose = "Running"
  296. end
  297. if animpose ~= lastanimpose then
  298. sine = 0
  299. if Debounces.NoIdl == false then
  300. if animpose == "Idle" then
  301. for i = 1, 2 do
  302. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4)
  303. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4)
  304. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4)
  305. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  306. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  307. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  308. end
  309. elseif animpose == "Walking" then
  310. for i = 1, 2 do
  311. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2)
  312. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2)
  313. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4)
  314. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05)
  315. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4)
  316. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4)
  317. end
  318. elseif animpose == "Running" then
  319. for i = 1, 2 do
  320. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(-14),math.rad(8+2*math.cos(sine/14))), 0.2)
  321. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(14),math.rad(-8-2*math.cos(sine/14))), 0.2)
  322. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10),0,0), 0.4)
  323. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20),0, math.rad(0)), 0.4)
  324. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-7)), 0.4)
  325. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(7)), 0.4)
  326. wait()
  327. end
  328. end
  329. else
  330. end
  331. end
  332. lastanimpose = animpose
  333. if Debounces.NoIdl == false then
  334. if animpose == "Idle" then
  335. change = 0.5
  336. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-10),math.rad(-10),math.rad(14+2*math.cos(sine/10))), 0.4)
  337. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-20),math.rad(6),math.rad(-10-2*math.cos(sine/10))), 0.4)
  338. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/10)),math.rad(20),0), 0.2)
  339. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
  340. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.16*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.05)
  341. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0-0.1*math.cos(sine/10), -0.55) * CFrame.Angles(math.rad(-10+1*math.cos(sine/10)), math.rad(10), math.rad(-0-2*math.cos(sine/10))), 0.4)
  342. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1-0.1*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+2*math.cos(sine/10))), 0.4)
  343. --[[rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/8),0)*CFrame.Angles(math.rad(-10+4*math.cos(sine/8)),math.rad(-20-2*math.cos(sine/8)),math.rad(10+2*math.cos(sine/8))), 0.2)
  344. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/8),0)*CFrame.Angles(math.rad(0),math.rad(10+2*math.cos(sine/8)),math.rad(-18-2*math.cos(sine/8))), 0.2)
  345. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(20+4*math.cos(sine/8)),0), 0.2)
  346. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(-12-3*math.cos(sine/8)),math.rad(0),0), 0.2)
  347. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+2*math.cos(sine/8)), math.rad(-20-4*math.cos(sine/8)), 0), 0.2)
  348. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/8)), math.rad(20+4*math.cos(sine/8)), math.rad(-5+1*math.cos(sine/8))), 0.2)
  349. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0-4*math.cos(sine/8)), math.rad(-10-4*math.cos(sine/8)), math.rad(5+1*math.cos(sine/8))), 0.2)]]--
  350. elseif animpose == "Walking" then
  351. change = 1
  352. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2)
  353. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2)
  354. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4)
  355. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05)
  356. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4)
  357. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4)
  358. elseif animpose == "Running" then
  359. change = 1
  360. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(-22),math.rad(20+2*math.cos(sine/14))), 0.2)
  361. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-10),math.rad(10),math.rad(-14-2*math.cos(sine/14))), 0.2)
  362. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(20),0,0), 0.4)
  363. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
  364. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-40),0, math.rad(0)), 0.05)
  365. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(-8)), 0.4)
  366. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(8)), 0.4)
  367. end
  368. end
  369. end)
  370. -------------------------------------------------------------------------------------------------
  371. runServ:connect(function()
  372. HHealth.Text = "["..math.floor(game.Players.LocalPlayer.Character.Humanoid.Health).."]"
  373. HBar:TweenSize(UDim2.new((game.Players.LocalPlayer.Character.Humanoid.Health/game.Players.LocalPlayer.Character.Humanoid.MaxHealth),0,1,0), _, "Linear", .4)
  374. end)
  375.  
  376. local p = game.Players.LocalPlayer
  377. local char = p.Character
  378. local mouse = p:GetMouse()
  379. local torso = char.Torso
  380.  
  381. local rot ={4}
  382.  
  383. local pe1 = Instance.new("ParticleEmitter",torso)
  384.  
  385. pe1.Transparency = NumberSequence.new(0.2,0.2)
  386.  
  387. pe1.Size = NumberSequence.new(7,7,7)
  388. pe1.LockedToPart = true
  389.  
  390. pe1.Color = ColorSequence.new(Color3.new(0,1013,1013))
  391.  
  392. pe1.Texture = "rbxassetid://"
  393. pe1.Lifetime = NumberRange.new(0.1,0.1)
  394. pe1.Rate = 6
  395. pe1.RotSpeed = NumberRange.new(0,0)
  396. pe1.Rotation = NumberRange.new(rot[math.random(1,#rot)])
  397. pe1.Speed = NumberRange.new(0,0)
  398.  
  399. local pe2 = Instance.new("ParticleEmitter",torso)
  400.  
  401. pe2.Transparency = NumberSequence.new(0,0.85000002384186,0.375,0.13749998807907,0.58124995231628,0.018750011920929,0.11874997615814,0.14999997615814,0.58749997615814,0.125,0.83749997615814,0.050000011920929,0.94999998807907,0.25)
  402.  
  403. pe2.Size = NumberSequence.new(9,9,9)
  404. pe2.LockedToPart = true
  405.  
  406. pe2.Color = ColorSequence.new(Color3.new(0, 1013, 1013))
  407.  
  408. pe2.Texture = "rbxassetid://"
  409. pe2.Lifetime = NumberRange.new(0.1,0.1)
  410. pe2.Rate = 6
  411. pe2.RotSpeed = NumberRange.new(0,0)
  412. pe2Rotation = NumberRange.new(rot[math.random(1,#rot)])
  413. pe2Speed = NumberRange.new(0,0)
  414.  
  415. Effect = Instance.new("Part")
  416. Effect.Parent = jun.Character
  417. Effect.Anchored = true
  418. Effect.CanCollide = false
  419. Effect.Size = Vector3.new(1, 1, 1)
  420. Effect.formFactor = "Symmetric"
  421. Effect.Transparency = 0.5
  422. Effect.BrickColor = BrickColor.new("Cyan")
  423. Effect.TopSurface = "Smooth"
  424. Effect.BottomSurface = "Smooth"
  425. EffectMesh = Instance.new("CylinderMesh")
  426. EffectMesh.Parent = Effect
  427. EffectMesh.Scale = Vector3.new(1, 1500, 1)
  428.  
  429. hed.face.Texture = "rbxassetid://423816716"
  430.  
  431. for _,c in pairs (jun.Character:GetChildren()) do
  432. if c.className == "Hat" then
  433. c.Handle.Transparency = 1
  434. end
  435. end
  436.  
  437. Hair22 = Instance.new("Part")
  438.  
  439. Hair22.Parent = jun.Character
  440. Hair22.Name = "Hair"
  441. Hair22.formFactor = "Symmetric"
  442. Hair22.Size = Vector3.new(1, 1, 1)
  443. Hair22.CFrame = jun.Character.Head.CFrame
  444. Hair22:BreakJoints()
  445. Hair22.CanCollide = false
  446. Hair22.TopSurface = "Smooth"
  447. Hair22.BottomSurface = "Smooth"
  448. Hair22.BrickColor = BrickColor.new("Cyan")
  449. Hair22.Transparency = 1
  450.  
  451. Weld = Instance.new("Weld")
  452. Weld.Part0 = jun.Character.Head
  453. Weld.Part1 = Hair2
  454. Weld.Parent = jun.Character.Head
  455. Weld.C0 = CFrame.new(0, 0.26, 0.06)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  456.  
  457. Mesh = Instance.new("SpecialMesh")
  458. Mesh.Parent = Hair22
  459. Mesh.MeshType = "Sphere"
  460. Mesh.Scale = Vector3.new(1.3, 1.3, 1.3)
  461.  
  462. Hair4 = Instance.new("Part")
  463. Hair4.Parent = jun.Character
  464. Hair4.Name = "Hair"
  465. Hair4.CanCollide = false
  466. Hair4.Locked = true
  467. Hair4.TopSurface = "Smooth"
  468. Hair4.BottomSurface = "Smooth"
  469. Hair4.formFactor = "Symmetric"
  470. Hair4.BrickColor = BrickColor.new("Cyan")
  471. Hair4.CFrame = jun.Character.Torso.CFrame
  472. Hair4.Size = Vector3.new(1, 1, 1)
  473. Hair4.Transparency = 1
  474.  
  475. Weld = Instance.new("Weld")
  476. Weld.Parent = jun.Character.Head
  477. Weld.Part0 = jun.Character.Head
  478. Weld.Part1 = Hair4
  479. Weld.C0 = CFrame.new(0, 1, 0)
  480.  
  481. Mesh = Instance.new("SpecialMesh")
  482. Mesh.Parent = Hair4
  483. Mesh.Scale = Vector3.new(6, 6, 6)
  484. Mesh.MeshType = "FileMesh"
  485. Mesh.MeshId = "http://www.roblox.com/asset/?id="
  486. Mesh.TextureId = ""
  487.  
  488. jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, 0.1, 0)
  489.  
  490. for i = 1 , 20 do
  491. Effect.CFrame = CFrame.new(jun.Character.Torso.Position)
  492. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(2, 0, 2)
  493. Effect.Transparency = Effect.Transparency + 0.025
  494. wait(0.06)
  495. end
  496. Effect:Remove()
  497.  
  498. for i = 1, 6 do
  499. Hair22.Transparency = Hair22.Transparency - .2
  500. Hair4.Transparency = Hair4.Transparency - .2
  501. wait(.5)
  502. end
  503.  
  504. jun.Character.Humanoid.MaxHealth = jun.Character.Humanoid.MaxHealth*1.15
  505. wait()
  506. jun.Character.Humanoid.Health = jun.Character.Humanoid.MaxHealth
  507. end
  508. end
  509.  
  510. function off()
  511. if Stuff == true then
  512. Stuff = false
  513. if jun.Character.Torso:findFirstChild("PwnFire") ~= nil then
  514. jun.Character.Torso:findFirstChild("PwnFire"):Remove()
  515. end
  516. p = Instance.new("Part")
  517. p.Parent = jun.Character
  518. p.Anchored = true
  519. p.CanCollide = false
  520. p.Transparency = 0.1
  521. p.formFactor = "Symmetric"
  522. p.Size = Vector3.new(22, 22, 22)
  523. p.TopSurface = "Smooth"
  524. p.BottomSurface = "Smooth"
  525. p.Name = "Sharingan"
  526. p.Shape = "Ball"
  527. p.CFrame = jun.Character.Torso.CFrame
  528. p.BrickColor = BrickColor.new("White")
  529. for i = 1 , 10 do
  530. wait(0.05)
  531. p.Size = p.Size + Vector3.new(-4, -4, -4)
  532. p.Transparency = p.Transparency + 0.1
  533. p.CFrame = jun.Character.Torso.CFrame
  534. end
  535. p:Remove()
  536. Chat("Mortals like you stand no chance.")
  537. for u, c in pairs (jun.Character:GetChildren()) do
  538. if c.className == "Hat" then
  539. c.Handle.Transparency = 0
  540. end
  541. if c.Name == "Hair" then
  542. c:Remove()
  543. end
  544. end
  545. jun.Character.Humanoid.Health = jun.Character.Humanoid.Health/1.15
  546. wait(.3)
  547. jun.Character.Humanoid.MaxHealth = jun.Character.Humanoid.MaxHealth/1.15
  548. end
  549. end
  550. jun.Chatted:connect(function(Msg)
  551. msg = Msg:lower()
  552. if string.sub(msg, 1, 13) == "god" then
  553. wait(0.1)
  554. god()
  555. end
  556. if string.sub(msg, 1, 3) == "off" then
  557. wait(0.1)
  558. off()
  559. end
  560. end)
  561.  
  562.  
  563. local char = game.Players.LocalPlayer.Character
  564. local head = char.Head
  565.  
  566. local part = Instance.new('Part', char)
  567. part.Name = 'Handle'
  568.  
  569. local mesh = Instance.new('SpecialMesh')
  570. mesh.Parent = part
  571. mesh.MeshId = 'rbxassetid://521493972'
  572. mesh.TextureId = 'rbxassetid://521493980'
  573. mesh.Scale = Vector3.new(.078,.078,.078)
  574.  
  575. weld=Instance.new('Weld',head)
  576. weld.Part0=head
  577. weld.Part1=part
  578. weld.C1 = CFrame.new(0.1,0.28,0.089) * CFrame.Angles(0,math.rad(180),0)
  579.  
  580. local char = game.Players.LocalPlayer.Character
  581. local head = char.Head
  582.  
  583. local part = Instance.new('Part', char)
  584. part.Name = 'Handle'
  585.  
  586. local mesh = Instance.new('SpecialMesh')
  587. mesh.Parent = part
  588. mesh.MeshId = 'rbxassetid://461211133'
  589. mesh.TextureId = 'rbxassetid://521493980'
  590. mesh.Scale = Vector3.new(.08,.07,.082)
  591.  
  592. weld=Instance.new('Weld',head)
  593. weld.Part0=head
  594. weld.Part1=part
  595. weld.C1 = CFrame.new(0,1.19,-0.1) * CFrame.Angles(0,math.rad(180),0)
  596.  
  597. local char = game.Players.LocalPlayer.Character
  598. local head = char.Head
  599.  
  600. local part = Instance.new('Part', char)
  601. part.Name = 'Handle'
  602.  
  603. local mesh = Instance.new('SpecialMesh')
  604. mesh.Parent = part
  605. mesh.MeshId = 'rbxassetid://62744572'
  606. mesh.TextureId = 'rbxassetid://98222393'
  607. mesh.Scale = Vector3.new(1.06,1.06,1.06)
  608.  
  609. weld=Instance.new('Weld',head)
  610. weld.Part0=head
  611. weld.Part1=part
  612. weld.C1 = CFrame.new(0,.2,0.05)
  613.  
  614. local you = game.Workspace["X8311"]
  615. local mouse = game.Players.LocalPlayer:GetMouse()
  616. local color = BrickColor.new("Dark stone grey")
  617. local msg = game:GetService("Chat")
  618. local busy = false
  619. --________________________________________________________________--
  620. --------------------------------------------------------------------l
  621. --------------------------------------------------------------------l
  622. ---------DO NOT MESS WITH ANYTHING BELOW----------------------------l
  623. --------------------------------------------------------------------l
  624. --------------------------------------------------------------------]
  625. c = you:GetChildren()
  626. for i = 1, #c do
  627. if c[i].ClassName == "Shirt" or c[i].ClassName == "Pants" or c[i].ClassName == "CharacterMesh" then
  628. c[i]:Remove()
  629. end end
  630. shirt = Instance.new("Shirt")
  631. shirt.Parent = you
  632. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=289150775"
  633. pants = Instance.new("Pants")
  634. pants.Parent = you
  635. pants.PantsTemplate = "http://www.roblox.com/asset/?id=283800067"
  636.  
  637. local p = game.Players.X8311
  638. local char = p.Character
  639. local mouse = p:GetMouse()
  640. local larm = char["Left Arm"]
  641. local rarm = char["Right Arm"]
  642. local lleg = char["Left Leg"]
  643. local rleg = char["Right Leg"]
  644. local hed = char.Head
  645. local torso = char.Torso
  646. local hum = char.Humanoid
  647. local cam = game.Workspace.CurrentCamera
  648. local root = char.HumanoidRootPart
  649. local deb = false
  650. local shot = 0
  651. local debris=game:service"Debris"
  652. local l = game:GetService("Lighting")
  653. local rs = game:GetService("RunService").RenderStepped
  654. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  655. math.randomseed(os.time())
  656. for i,v in pairs(char:children()) do
  657. if v:IsA("Hat") then
  658. v:Destroy()
  659. end
  660. end
  661. for i,v in pairs (hed:GetChildren()) do
  662. if v:IsA("Sound") then
  663. v:Destroy()
  664. end
  665. end
  666.  
  667. hed.face.Texture = "rbxassetid://423816716"
  668. char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  669. char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  670. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  671. char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  672.  
  673. --//====================================================\\--
  674. --|| CREATED BY X8311
  675. --\\====================================================//--
  676.  
  677.  
  678.  
  679. wait(1 / 60)
  680.  
  681.  
  682.  
  683. Player = game:GetService("Players").LocalPlayer
  684. PlayerGui = Player.PlayerGui
  685. Cam = workspace.CurrentCamera
  686. Backpack = Player.Backpack
  687. Character = Player.Character
  688. Humanoid = Character.Humanoid
  689. Mouse = Player:GetMouse()
  690. RootPart = Character["HumanoidRootPart"]
  691. Torso = Character["Torso"]
  692. Head = Character["Head"]
  693. RightArm = Character["Right Arm"]
  694. LeftArm = Character["Left Arm"]
  695. RightLeg = Character["Right Leg"]
  696. LeftLeg = Character["Left Leg"]
  697. RootJoint = RootPart["RootJoint"]
  698. Neck = Torso["Neck"]
  699. RightShoulder = Torso["Right Shoulder"]
  700. LeftShoulder = Torso["Left Shoulder"]
  701. RightHip = Torso["Right Hip"]
  702. LeftHip = Torso["Left Hip"]
  703.  
  704. IT = Instance.new
  705. CF = CFrame.new
  706. VT = Vector3.new
  707. RAD = math.rad
  708. C3 = Color3.new
  709. UD2 = UDim2.new
  710. BRICKC = BrickColor.new
  711. ANGLES = CFrame.Angles
  712. EULER = CFrame.fromEulerAnglesXYZ
  713. COS = math.cos
  714. ACOS = math.acos
  715. SIN = math.sin
  716. ASIN = math.asin
  717. ABS = math.abs
  718. MRANDOM = math.random
  719. FLOOR = math.floor
  720.  
  721.  
  722.  
  723.  
  724.  
  725. --//=================================\\
  726. --|| CUSTOMIZATION
  727. --\\=================================//
  728.  
  729. Class_Name = "Firebreather"
  730. Weapon_Name = "Redemption"
  731.  
  732. Custom_Colors = {
  733. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  734. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  735.  
  736. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  737. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  738. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  739. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  740. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  741.  
  742. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  743. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  744. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  745. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  746. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  747. }
  748.  
  749. Mana_Bar_Background_Transparency = 0 --Transparency for the background of the mana bar.
  750. Secondary_Mana_Bar_Background_Transparency = 0 --Transparency for the background of the secondary mana bar.
  751. Health_Bar_Background_Transparency = 0 --Transparency for the background of the health bar.
  752. Stun_Bar_Background_Transparency = 0 --Transparency for the background of the stun bar.
  753. Ability_Background_Transparency = 0 --Transparency for the background of the abilities.
  754. Stat_Background_Transparency = 0 --Transparency for the background of the stats.
  755.  
  756. Player_Size = 1 --Size of the player.
  757. Animation_Speed = 2
  758. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  759.  
  760. Enable_Gui = false --Enables or disables the Weapon Gui. Also functions as hiding or showing the Gui.
  761. Enable_Stats = false --Enables or disables stats.
  762. Put_Stats_In_Character = false --Places stats in Character.
  763. Enable_Stagger_Hit = false --Enables or disables staggering when hitting a hitbox of some sort.
  764. Play_Hitbox_Hit_Sound = true --Plays a hit sound when hitting a hitbox of some sort.
  765. Enable_Stagger = false --Enables or disables staggering.
  766. Enable_Stun = false --Enables or disables the stun mechanic.
  767. Enable_Abilities = false --Enables abilites with cooldowns and mana costs.
  768. Enable_Secondary_Bar = false --Enables the secondary mana bar, if true.
  769.  
  770. Start_Equipped = false --Starts the player equipped with their weapon.
  771. Start_Equipped_With_Equipped_Animation = false --Used in conjunction with the above option. Starts your equip animation.
  772. Can_Equip_Or_Unequip = true --Enables or disables the ability to unequip or equip your weapon.
  773. Disable_Animator = true --Disables the Animator in the humanoid.
  774. Disable_Animate = true --Disables the Animate script in the character.
  775. Disable_Moving_Arms = false --Keeps the arms from moving around.
  776. Use_Motors_Instead_Of_Welds = false --Uses motors instead of welds to disable moving arms.
  777. Walkspeed_Depends_On_Movement_Value = false --Walkspeed depends on movement value. Self-explanatory.
  778. Disable_Jump = false --Disables jumping.
  779. Use_HopperBin = true --Uses a hopperbin to do things.
  780.  
  781. Cooldown_1 = 0 --Cooldowns for abilites.
  782. Cooldown_2 = 0
  783. Cooldown_3 = 0
  784. Cooldown_4 = 0
  785. Skill_1_Mana_Cost = 0 --How much mana is required to use the skill.
  786. Skill_2_Mana_Cost = 0
  787. Skill_3_Mana_Cost = 0
  788. Skill_4_Mana_Cost = 0
  789. Max_Mana = 0 --Maximum amount of mana you can have.
  790. Max_Secondary_Mana = 0 --Maximum amount of secondary mana you can have.
  791. Mana_Name = "Mana" --Name for the mana bar.
  792. Secondary_Mana_Name = "Block" --Name for the secondary mana bar.
  793. Max_Stun = 1 --Maximum amount of stun you can have.
  794. Recover_Mana = 0 --How much mana you gain.
  795. Mana_Regen_Mode = "1" --Basically switches from one mana regen system to another.
  796. Secondary_Mana_Regen_Mode = "1" --Basically switches from one secondary mana regen system to another.
  797. Stun_Lose_Mode = "1" --Basically switches from one secondary stun loss system to another.
  798. Recover_Secondary_Mana = 0 --How much secondary mana you gain.
  799. Lose_Stun = 0 --How much stun you lose.
  800. Stun_Wait = 0 --Delay between losing stun.
  801. Mana_Wait = 0 --Delay between gaining mana.
  802. Secondary_Mana_Wait = 0 --Delay between gaining secondary mana.
  803. Menu_Update_Speed = 0 --How fast the Weapon Gui will update.
  804. Constant_Update = false --Removes the delay between updating the Weapon GUI.
  805. Show_Stats = false --Hides or shows stats.
  806. Stat_Offset = 0.74 --For cosmetic purposes. {0.74, 0.78}
  807.  
  808. --//=================================\\
  809. --|| END OF CUSTOMIZATION
  810. --\\=================================//
  811.  
  812.  
  813.  
  814.  
  815.  
  816. --//=================================\\
  817. --|| USEFUL VALUES
  818. --\\=================================//
  819.  
  820. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  821. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  822. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  823. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  824. local CO1 = 0
  825. local CO2 = 0
  826. local CO3 = 0
  827. local CO4 = 0
  828. local CHANGEDEFENSE = 0
  829. local CHANGEDAMAGE = 0
  830. local CHANGEMOVEMENT = 0
  831. local ANIM = "Idle"
  832. local ATTACK = false
  833. local EQUIPPED = false
  834. local HOLD = false
  835. local COMBO = 1
  836. local LASTPOINT = nil
  837. local BLCF = nil
  838. local SCFR = nil
  839. local STAGGERHITANIM = false
  840. local STAGGERANIM = false
  841. local STUNANIM = false
  842. local CRITCHANCENUMBER = 0
  843. local IDLENUMBER = 0
  844. local DONUMBER = 0
  845. local HANDIDLE = false
  846. local SINE = 0
  847. local CHANGE = 2 / Animation_Speed
  848. local WALKINGANIM = false
  849. local WALK = 0
  850. local DISABLEJUMPING = false
  851. local HASBEENBLOCKED = false
  852. local STUNDELAYNUMBER = 0
  853. local MANADELAYNUMBER = 0
  854. local SECONDARYMANADELAYNUMBER = 0
  855. local ROBLOXIDLEANIMATION = IT("Animation")
  856. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  857. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  858. --ROBLOXIDLEANIMATION.Parent = Humanoid
  859. local WEAPONGUI = IT("ScreenGui", nil)
  860. WEAPONGUI.Name = "Weapon GUI"
  861. local WEAPONTOOL = IT("HopperBin", nil)
  862. WEAPONTOOL.Name = Weapon_Name
  863. local Weapon = IT("Model")
  864. Weapon.Name = Weapon_Name
  865. local Effects = IT("Folder", Weapon)
  866. Effects.Name = "Effects"
  867. local ANIMATOR = Humanoid.Animator
  868. local ANIMATE = Character.Animate
  869. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  870. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  871. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  872. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  873.  
  874. --//=================================\\
  875. --\\=================================//
  876.  
  877.  
  878.  
  879.  
  880.  
  881. --//=================================\\
  882. --|| STATS
  883. --\\=================================//
  884.  
  885. if Character:FindFirstChild("Stats") ~= nil then
  886. Character:FindFirstChild("Stats").Parent = nil
  887. end
  888.  
  889. local Stats = IT("Folder", nil)
  890. Stats.Name = "Stats"
  891. local ChangeStat = IT("Folder", Stats)
  892. ChangeStat.Name = "ChangeStat"
  893. local Defense = IT("NumberValue", Stats)
  894. Defense.Name = "Defense"
  895. Defense.Value = 1
  896. local Movement = IT("NumberValue", Stats)
  897. Movement.Name = "Movement"
  898. Movement.Value = 1
  899. local Damage = IT("NumberValue", Stats)
  900. Damage.Name = "Damage"
  901. Damage.Value = 1
  902. local Mana = IT("NumberValue", Stats)
  903. Mana.Name = "Mana"
  904. Mana.Value = 0
  905. local SecondaryMana = IT("NumberValue", Stats)
  906. SecondaryMana.Name = "SecondaryMana"
  907. SecondaryMana.Value = 0
  908. local CanCrit = IT("BoolValue", Stats)
  909. CanCrit.Name = "CanCrit"
  910. CanCrit.Value = false
  911. local CritChance = IT("NumberValue", Stats)
  912. CritChance.Name = "CritChance"
  913. CritChance.Value = 20
  914. local CanPenetrateArmor = IT("BoolValue", Stats)
  915. CanPenetrateArmor.Name = "CanPenetrateArmor"
  916. CanPenetrateArmor.Value = false
  917. local AntiTeamKill = IT("BoolValue", Stats)
  918. AntiTeamKill.Name = "AntiTeamKill"
  919. AntiTeamKill.Value = false
  920. local Rooted = IT("BoolValue", Stats)
  921. Rooted.Name = "Rooted"
  922. Rooted.Value = false
  923. local Block = IT("BoolValue", Stats)
  924. Block.Name = "Block"
  925. Block.Value = false
  926. local RecentEnemy = IT("ObjectValue", Stats)
  927. RecentEnemy.Name = "RecentEnemy"
  928. RecentEnemy.Value = nil
  929. local StaggerHit = IT("BoolValue", Stats)
  930. StaggerHit.Name = "StaggerHit"
  931. StaggerHit.Value = false
  932. local Stagger = IT("BoolValue", Stats)
  933. Stagger.Name = "Stagger"
  934. Stagger.Value = false
  935. local Stun = IT("BoolValue", Stats)
  936. Stun.Name = "Stun"
  937. Stun.Value = false
  938. local StunValue = IT("NumberValue", Stats)
  939. StunValue.Name = "StunValue"
  940. StunValue.Value = 0
  941.  
  942. if Enable_Stats == true and Put_Stats_In_Character == true then
  943. Stats.Parent = Character
  944. end
  945.  
  946. --//=================================\\
  947. --\\=================================//
  948.  
  949.  
  950.  
  951.  
  952.  
  953. --//=================================\\
  954. --|| DEBUFFS / BUFFS
  955. --\\=================================//
  956.  
  957. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  958. DEFENSECHANGE1.Name = "ChangeDefense"
  959. DEFENSECHANGE1.Value = 0
  960.  
  961. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  962. MOVEMENTCHANGE1.Name = "ChangeMovement"
  963. MOVEMENTCHANGE1.Value = 0
  964.  
  965. --//=================================\\
  966. --\\=================================//
  967.  
  968.  
  969.  
  970.  
  971.  
  972. --//=================================\\
  973. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  974. --\\=================================//
  975.  
  976. ArtificialHB = Instance.new("BindableEvent", script)
  977. ArtificialHB.Name = "ArtificialHB"
  978.  
  979. script:WaitForChild("ArtificialHB")
  980.  
  981. frame = Frame_Speed
  982. tf = 0
  983. allowframeloss = false
  984. tossremainder = false
  985. lastframe = tick()
  986. script.ArtificialHB:Fire()
  987.  
  988. game:GetService("RunService").Heartbeat:connect(function(s, p)
  989. tf = tf + s
  990. if tf >= frame then
  991. if allowframeloss then
  992. script.ArtificialHB:Fire()
  993. lastframe = tick()
  994. else
  995. for i = 1, math.floor(tf / frame) do
  996. script.ArtificialHB:Fire()
  997. end
  998. lastframe = tick()
  999. end
  1000. if tossremainder then
  1001. tf = 0
  1002. else
  1003. tf = tf - frame * math.floor(tf / frame)
  1004. end
  1005. end
  1006. end)
  1007.  
  1008. --//=================================\\
  1009. --\\=================================//
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015. --//=================================\\
  1016. --|| SOME FUNCTIONS
  1017. --\\=================================//
  1018.  
  1019. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1020. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1021. end
  1022.  
  1023. function PositiveAngle(NUMBER)
  1024. if NUMBER >= 0 then
  1025. NUMBER = 0
  1026. end
  1027. return NUMBER
  1028. end
  1029.  
  1030. function NegativeAngle(NUMBER)
  1031. if NUMBER <= 0 then
  1032. NUMBER = 0
  1033. end
  1034. return NUMBER
  1035. end
  1036.  
  1037. function Swait(NUMBER)
  1038. if NUMBER == 0 or NUMBER == nil then
  1039. ArtificialHB.Event:wait()
  1040. else
  1041. for i = 1, NUMBER do
  1042. ArtificialHB.Event:wait()
  1043. end
  1044. end
  1045. end
  1046.  
  1047. function QuaternionFromCFrame(cf)
  1048. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1049. local trace = m00 + m11 + m22
  1050. if trace > 0 then
  1051. local s = math.sqrt(1 + trace)
  1052. local recip = 0.5 / s
  1053. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1054. else
  1055. local i = 0
  1056. if m11 > m00 then
  1057. i = 1
  1058. end
  1059. if m22 > (i == 0 and m00 or m11) then
  1060. i = 2
  1061. end
  1062. if i == 0 then
  1063. local s = math.sqrt(m00 - m11 - m22 + 1)
  1064. local recip = 0.5 / s
  1065. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1066. elseif i == 1 then
  1067. local s = math.sqrt(m11 - m22 - m00 + 1)
  1068. local recip = 0.5 / s
  1069. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1070. elseif i == 2 then
  1071. local s = math.sqrt(m22 - m00 - m11 + 1)
  1072. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1073. end
  1074. end
  1075. end
  1076.  
  1077. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1078. local xs, ys, zs = x + x, y + y, z + z
  1079. local wx, wy, wz = w * xs, w * ys, w * zs
  1080. local xx = x * xs
  1081. local xy = x * ys
  1082. local xz = x * zs
  1083. local yy = y * ys
  1084. local yz = y * zs
  1085. local zz = z * zs
  1086. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  1087. end
  1088.  
  1089. function QuaternionSlerp(a, b, t)
  1090. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1091. local startInterp, finishInterp;
  1092. if cosTheta >= 0.0001 then
  1093. if (1 - cosTheta) > 0.0001 then
  1094. local theta = ACOS(cosTheta)
  1095. local invSinTheta = 1 / SIN(theta)
  1096. startInterp = SIN((1 - t) * theta) * invSinTheta
  1097. finishInterp = SIN(t * theta) * invSinTheta
  1098. else
  1099. startInterp = 1 - t
  1100. finishInterp = t
  1101. end
  1102. else
  1103. if (1 + cosTheta) > 0.0001 then
  1104. local theta = ACOS(-cosTheta)
  1105. local invSinTheta = 1 / SIN(theta)
  1106. startInterp = SIN((t - 1) * theta) * invSinTheta
  1107. finishInterp = SIN(t * theta) * invSinTheta
  1108. else
  1109. startInterp = t - 1
  1110. finishInterp = t
  1111. end
  1112. end
  1113. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  1114. end
  1115.  
  1116. function Clerp(a, b, t)
  1117. local qa = {QuaternionFromCFrame(a)}
  1118. local qb = {QuaternionFromCFrame(b)}
  1119. local ax, ay, az = a.x, a.y, a.z
  1120. local bx, by, bz = b.x, b.y, b.z
  1121. local _t = 1 - t
  1122. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1123. end
  1124.  
  1125. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1126. local frame = IT("Frame")
  1127. frame.BackgroundTransparency = TRANSPARENCY
  1128. frame.BorderSizePixel = BORDERSIZEPIXEL
  1129. frame.Position = POSITION
  1130. frame.Size = SIZE
  1131. frame.BackgroundColor3 = COLOR
  1132. frame.BorderColor3 = BORDERCOLOR
  1133. frame.Name = NAME
  1134. frame.Parent = PARENT
  1135. return frame
  1136. end
  1137.  
  1138. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1139. local label = IT("TextLabel")
  1140. label.BackgroundTransparency = 1
  1141. label.Size = UD2(1, 0, 1, 0)
  1142. label.Position = UD2(0, 0, 0, 0)
  1143. label.TextColor3 = C3(255, 255, 255)
  1144. label.TextStrokeTransparency = STROKETRANSPARENCY
  1145. label.TextTransparency = TRANSPARENCY
  1146. label.FontSize = TEXTFONTSIZE
  1147. label.Font = TEXTFONT
  1148. label.BorderSizePixel = BORDERSIZEPIXEL
  1149. label.TextScaled = true
  1150. label.Text = TEXT
  1151. label.Name = NAME
  1152. label.Parent = PARENT
  1153. return label
  1154. end
  1155.  
  1156. function NoOutlines(PART)
  1157. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1158. end
  1159.  
  1160. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  1161. local NEWPART = IT("Part")
  1162. NEWPART.formFactor = FORMFACTOR
  1163. NEWPART.Reflectance = REFLECTANCE
  1164. NEWPART.Transparency = TRANSPARENCY
  1165. NEWPART.CanCollide = false
  1166. NEWPART.Locked = true
  1167. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1168. NEWPART.Name = NAME
  1169. NEWPART.Size = SIZE
  1170. NEWPART.Position = Torso.Position
  1171. NoOutlines(NEWPART)
  1172. NEWPART.Material = MATERIAL
  1173. NEWPART:BreakJoints()
  1174. NEWPART.Parent = PARENT
  1175. return NEWPART
  1176. end
  1177.  
  1178. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1179. local NEWMESH = IT(MESH)
  1180. if MESH == "SpecialMesh" then
  1181. NEWMESH.MeshType = MESHTYPE
  1182. if MESHID ~= "nil" and MESHID ~= "" then
  1183. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1184. end
  1185. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1186. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1187. end
  1188. end
  1189. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1190. NEWMESH.Scale = SCALE
  1191. NEWMESH.Parent = PARENT
  1192. return NEWMESH
  1193. end
  1194.  
  1195. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1196. local NEWWELD = IT(TYPE)
  1197. NEWWELD.Part0 = PART0
  1198. NEWWELD.Part1 = PART1
  1199. NEWWELD.C0 = C0
  1200. NEWWELD.C1 = C1
  1201. NEWWELD.Parent = PARENT
  1202. return NEWWELD
  1203. end
  1204.  
  1205. function CreateSound(ID, PARENT, VOLUME, PITCH)
  1206. coroutine.resume(coroutine.create(function()
  1207. local NEWSOUND = IT("Sound", PARENT)
  1208. NEWSOUND.Volume = VOLUME
  1209. NEWSOUND.Pitch = PITCH
  1210. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1211. Swait()
  1212. NEWSOUND:play()
  1213. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  1214. end))
  1215. end
  1216.  
  1217. function CFrameFromTopBack(at, top, back)
  1218. local right = top:Cross(back)
  1219. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1220. end
  1221.  
  1222. function Lightning(POSITION1, POSITION2, MULTIPLIERTIME, LIGHTNINGDELAY, OFFSET, BRICKCOLOR, MATERIAL, SIZE, TRANSPARENCY, LASTINGTIME)
  1223. local MAGNITUDE = (POSITION1 - POSITION2).magnitude
  1224. local CURRENTPOSITION = POSITION1
  1225. local LIGHTNINGOFFSET = {-OFFSET, OFFSET}
  1226. coroutine.resume(coroutine.create(function()
  1227. for i = 1, MULTIPLIERTIME do
  1228. local LIGHTNINGPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR,"Effect", VT(SIZE * Player_Size, SIZE * Player_Size, MAGNITUDE / MULTIPLIERTIME))
  1229. LIGHTNINGPART.Anchored = true
  1230. local LIGHTNINGOFFSET2 = VT(LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)])
  1231. local LIGHTNINGPOSITION1 = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME).p + LIGHTNINGOFFSET2
  1232. if MULTIPLIERTIME == i then
  1233. local LIGHTNINGMAGNITUDE1 = (CURRENTPOSITION - POSITION2).magnitude
  1234. LIGHTNINGPART.Size = VT(SIZE * Player_Size, SIZE * Player_Size, LIGHTNINGMAGNITUDE1)
  1235. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, -LIGHTNINGMAGNITUDE1 / 2)
  1236. else
  1237. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, LIGHTNINGPOSITION1) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2)
  1238. end
  1239. CURRENTPOSITION=LIGHTNINGPART.CFrame * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2).p
  1240. game.Debris:AddItem(LIGHTNINGPART, LASTINGTIME)
  1241. coroutine.resume(coroutine.create(function()
  1242. while LIGHTNINGPART.Transparency ~= 1 do
  1243. --local StartTransparency = tra
  1244. for i=0, 1, LASTINGTIME do
  1245. Swait()
  1246. LIGHTNINGPART.Transparency = LIGHTNINGPART.Transparency + (0.1 / LASTINGTIME)
  1247. end
  1248. end
  1249. end))
  1250. Swait(LIGHTNINGDELAY / Animation_Speed)
  1251. end
  1252. end))
  1253. end
  1254.  
  1255. function MagicBlock(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1256. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1257. EFFECTPART.Anchored = true
  1258. EFFECTPART.CFrame = CFRAME
  1259. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1260. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1261. coroutine.resume(coroutine.create(function(PART, MESH)
  1262. for i = 0, 1, delay do
  1263. Swait()
  1264. PART.CFrame = PART.CFrame * ROTATION
  1265. PART.Transparency = i
  1266. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1267. end
  1268. PART.Parent = nil
  1269. end), EFFECTPART, EFFECTMESH)
  1270. end
  1271.  
  1272. function MagicSphere(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1273. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1274. EFFECTPART.Anchored = true
  1275. EFFECTPART.CFrame = CFRAME
  1276. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Sphere", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1277. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1278. coroutine.resume(coroutine.create(function(PART, MESH)
  1279. for i = 0, 1, delay do
  1280. Swait()
  1281. PART.CFrame = PART.CFrame * ROTATION
  1282. PART.Transparency = i
  1283. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1284. end
  1285. PART.Parent = nil
  1286. end), EFFECTPART, EFFECTMESH)
  1287. end
  1288.  
  1289. function MagicCylinder(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1290. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1291. EFFECTPART.Anchored = true
  1292. EFFECTPART.CFrame = CFRAME
  1293. local EFFECTMESH = CreateMesh("CylinderMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1294. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1295. coroutine.resume(coroutine.create(function(PART, MESH)
  1296. for i = 0, 1, delay do
  1297. Swait()
  1298. PART.CFrame = PART.CFrame * ROTATION
  1299. PART.Transparency = i
  1300. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1301. end
  1302. PART.Parent = nil
  1303. end), EFFECTPART, EFFECTMESH)
  1304. end
  1305.  
  1306. function MagicHead(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1307. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1308. EFFECTPART.Anchored = true
  1309. EFFECTPART.CFrame = CFRAME
  1310. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Head", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1311. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1312. coroutine.resume(coroutine.create(function(PART, MESH)
  1313. for i = 0, 1, delay do
  1314. Swait()
  1315. PART.CFrame = PART.CFrame * ROTATION
  1316. PART.Transparency = i
  1317. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1318. end
  1319. PART.Parent = nil
  1320. end), EFFECTPART, EFFECTMESH)
  1321. end
  1322.  
  1323. function MagicRing(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1324. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1325. EFFECTPART.Anchored = true
  1326. EFFECTPART.CFrame = CFRAME
  1327. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "3270017", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1328. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1329. coroutine.resume(coroutine.create(function(PART, MESH)
  1330. for i = 0, 1, delay do
  1331. Swait()
  1332. PART.CFrame = PART.CFrame * ROTATION
  1333. PART.Transparency = i
  1334. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1335. end
  1336. PART.Parent = nil
  1337. end), EFFECTPART, EFFECTMESH)
  1338. end
  1339.  
  1340. function MagicWave(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1341. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1342. EFFECTPART.Anchored = true
  1343. EFFECTPART.CFrame = CFRAME
  1344. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "20329976", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), VT(0, 0, (-0.1 * Z1)) + (OFFSET * Player_Size))
  1345. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1346. coroutine.resume(coroutine.create(function(PART, MESH)
  1347. for i = 0, 1, delay do
  1348. Swait()
  1349. PART.CFrame = PART.CFrame * ROTATION
  1350. PART.Transparency = i
  1351. MESH.Offset = VT(0, 0, (-0.1 * MESH.Scale.Z))
  1352. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1353. end
  1354. PART.Parent = nil
  1355. end), EFFECTPART, EFFECTMESH)
  1356. end
  1357.  
  1358. function MagicCrystal(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1359. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1360. EFFECTPART.Anchored = true
  1361. EFFECTPART.CFrame = CFRAME
  1362. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "9756362", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1363. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1364. coroutine.resume(coroutine.create(function(PART, MESH)
  1365. for i = 0, 1, delay do
  1366. Swait()
  1367. PART.CFrame = PART.CFrame * ROTATION
  1368. PART.Transparency = i
  1369. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1370. end
  1371. PART.Parent = nil
  1372. end), EFFECTPART, EFFECTMESH)
  1373. end
  1374.  
  1375. function MagicSwirl(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1376. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1377. EFFECTPART.Anchored = true
  1378. EFFECTPART.CFrame = CFRAME
  1379. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1051557", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1380. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1381. coroutine.resume(coroutine.create(function(PART, MESH)
  1382. for i = 0, 1, delay do
  1383. Swait()
  1384. PART.CFrame = PART.CFrame * ROTATION
  1385. PART.Transparency = i
  1386. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1387. end
  1388. PART.Parent = nil
  1389. end), EFFECTPART, EFFECTMESH)
  1390. end
  1391.  
  1392. function MagicSharpCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1393. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1394. EFFECTPART.Anchored = true
  1395. EFFECTPART.CFrame = CFRAME
  1396. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1778999", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1397. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1398. coroutine.resume(coroutine.create(function(PART, MESH)
  1399. for i = 0, 1, delay do
  1400. Swait()
  1401. PART.CFrame = PART.CFrame * ROTATION
  1402. PART.Transparency = i
  1403. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1404. end
  1405. PART.Parent = nil
  1406. end), EFFECTPART, EFFECTMESH)
  1407. end
  1408.  
  1409. function MagicFlatCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1410. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1411. EFFECTPART.Anchored = true
  1412. EFFECTPART.CFrame = CFRAME
  1413. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1033714", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1414. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1415. coroutine.resume(coroutine.create(function(PART, MESH)
  1416. for i = 0, 1, delay do
  1417. Swait()
  1418. PART.CFrame = PART.CFrame * ROTATION
  1419. PART.Transparency = i
  1420. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1421. end
  1422. PART.Parent = nil
  1423. end), EFFECTPART, EFFECTMESH)
  1424. end
  1425.  
  1426. function MagicSpikedCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1427. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1428. EFFECTPART.Anchored = true
  1429. EFFECTPART.CFrame = CFRAME
  1430. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1323306", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1431. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1432. coroutine.resume(coroutine.create(function(PART, MESH)
  1433. for i = 0, 1, delay do
  1434. Swait()
  1435. PART.CFrame = PART.CFrame * ROTATION
  1436. PART.Transparency = i
  1437. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1438. end
  1439. PART.Parent = nil
  1440. end), EFFECTPART, EFFECTMESH)
  1441. end
  1442.  
  1443. function MagicFlatCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1444. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1445. EFFECTPART.Anchored = true
  1446. EFFECTPART.CFrame = CFRAME
  1447. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1078075", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1448. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1449. coroutine.resume(coroutine.create(function(PART, MESH)
  1450. for i = 0, 1, delay do
  1451. Swait()
  1452. PART.CFrame = PART.CFrame * ROTATION
  1453. PART.Transparency = i
  1454. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1455. end
  1456. PART.Parent = nil
  1457. end), EFFECTPART, EFFECTMESH)
  1458. end
  1459.  
  1460. function MagicSkull(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1461. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1462. EFFECTPART.Anchored = true
  1463. EFFECTPART.CFrame = CFRAME
  1464. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1465. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1466. coroutine.resume(coroutine.create(function(PART, MESH)
  1467. for i = 0, 1, delay do
  1468. Swait()
  1469. PART.CFrame = PART.CFrame * ROTATION
  1470. PART.Transparency = i
  1471. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1472. end
  1473. PART.Parent = nil
  1474. end), EFFECTPART, EFFECTMESH)
  1475. end
  1476.  
  1477. function ElectricEffect(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X, Y, Z, delay)
  1478. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1479. EFFECTPART.Anchored = true
  1480. EFFECTPART.CFrame = CFRAME
  1481. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X * Player_Size, Y * Player_Size, Z * Player_Size), OFFSET * Player_Size)
  1482. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1483. local XVALUE = MRANDOM()
  1484. local YVALUE = MRANDOM()
  1485. local ZVALUE = MRANDOM()
  1486. coroutine.resume(coroutine.create(function(PART, MESH, THEXVALUE, THEYVALUE, THEZVALUE)
  1487. for i = 0, 1, delay do
  1488. Swait()
  1489. PART.CFrame = PART.CFrame * ROTATION
  1490. PART.Transparency = i
  1491. THEXVALUE = THEXVALUE - 0.1 * (delay * 10)
  1492. THEYVALUE = THEYVALUE - 0.1 * (delay * 10)
  1493. THEZVALUE = THEZVALUE - 0.1 * (delay * 10)
  1494. MESH.Scale = MESH.Scale + VT(THEXVALUE * Player_Size, THEYVALUE * Player_Size, THEZVALUE * Player_Size)
  1495. end
  1496. PART.Parent = nil
  1497. end), EFFECTPART, EFFECTMESH, XVALUE, YVALUE, ZVALUE)
  1498. end
  1499.  
  1500. function TrailEffect(BRICKCOLOR, MATERIAL, CURRENTCFRAME, OLDCFRAME, MESHTYPE, REFLECTANCE, SIZE, ROTATION, X, Y, Z, delay)
  1501. local MAGNITUDECFRAME = (CURRENTCFRAME.p - OLDCFRAME.p).magnitude
  1502. if MAGNITUDECFRAME > (1 / 100) then
  1503. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT(1, MAGNITUDECFRAME, 1))
  1504. EFFECTPART.Anchored = true
  1505. EFFECTPART.CFrame = CF((CURRENTCFRAME.p + OLDCFRAME.p) / 2, OLDCFRAME.p) * ANGLES(RAD(90), 0, 0)
  1506. local THEMESHTYPE = "BlockMesh"
  1507. if MESHTYPE == "Cylinder" then
  1508. THEMESHTYPE = "CylinderMesh"
  1509. end
  1510. local EFFECTMESH = CreateMesh(THEMESHTYPE, EFFECTPART, "", "", "", VT(0 + SIZE * Player_Size, 1, 0 + SIZE * Player_Size), VT(0, 0, 0))
  1511. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1512. coroutine.resume(coroutine.create(function(PART, MESH)
  1513. for i = 0, 1, delay do
  1514. Swait()
  1515. PART.CFrame = PART.CFrame * ROTATION
  1516. PART.Transparency = i
  1517. MESH.Scale = MESH.Scale + VT(X * Player_Size, Y * Player_Size, Z * Player_Size)
  1518. end
  1519. PART.Parent = nil
  1520. end), EFFECTPART, EFFECTMESH)
  1521. end
  1522. end
  1523.  
  1524. function ClangEffect(BRICKCOLOR, MATERIAL, CFRAME, ANGLE, DURATION, SIZE, POWER, REFLECTANCE, X, Y, Z, delay)
  1525. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 1, BRICKCOLOR, "Effect", VT())
  1526. EFFECTPART.Anchored = true
  1527. EFFECTPART.CFrame = CFRAME
  1528. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(0, 0, 0), VT(0, 0, 0))
  1529. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1530. local THELASTPOINT = CFRAME
  1531. coroutine.resume(coroutine.create(function(PART)
  1532. for i = 1, DURATION do
  1533. Swait()
  1534. PART.CFrame = PART.CFrame * ANGLES(RAD(ANGLE), 0, 0) * CF(0, POWER * Player_Size, 0)
  1535. TrailEffect(BRICKCOLOR, MATERIAL, PART.CFrame, THELASTPOINT, "Cylinder", REFLECTANCE, SIZE * Player_Size, ANGLES(0, 0, 0), X * Player_Size, Y * Player_Size, Z * Player_Size, delay)
  1536. THELASTPOINT = PART.CFrame
  1537. end
  1538. PART.Parent = nil
  1539. end), EFFECTPART)
  1540. end
  1541.  
  1542. --local list={}
  1543. function Triangle(Color, Material, a, b, c, delay)
  1544. local edge1 = (c - a):Dot((b - a).unit)
  1545. local edge2 = (a - b):Dot((c - b).unit)
  1546. local edge3 = (b - c):Dot((a - c).unit)
  1547. if edge1 <= (b - a).magnitude and edge1 >= 0 then
  1548. a, b, c=a, b, c
  1549. elseif edge2 <= (c - b).magnitude and edge2 >= 0 then
  1550. a, b, c=b, c, a
  1551. elseif edge3 <= (a - c).magnitude and edge3 >= 0 then
  1552. a, b, c=c, a, b
  1553. else
  1554. assert(false, "unreachable")
  1555. end
  1556. local len1 = (c - a):Dot((b - a).unit)
  1557. local len2 = (b - a).magnitude - len1
  1558. local width = (a + (b - a).unit * len1 - c).magnitude
  1559. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, - (b - a).unit)
  1560. if len1 > 1 / 100 then
  1561. local sz = VT(0.2, width, len1)
  1562. local w1 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  1563. local sp = CreateMesh("SpecialMesh", w1, "Wedge", "", "", VT(0, 1, 1) * sz / w1.Size, VT(0, 0, 0))
  1564. w1.Anchored = true
  1565. w1.CFrame = maincf * ANGLES(math.pi, 0, math.pi / 2) * CF(0, width / 2, len1 / 2)
  1566. coroutine.resume(coroutine.create(function()
  1567. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1568. Swait()
  1569. w1.Transparency = i
  1570. end
  1571. w1.Parent = nil
  1572. end))
  1573. game:GetService("Debris"):AddItem(w1, 10)
  1574. --table.insert(list, w1)
  1575. end
  1576. if len2 > 1 / 100 then
  1577. local sz = VT(0.2, width, len2)
  1578. local w2 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  1579. local sp = CreateMesh("SpecialMesh", w2, "Wedge", "", "", VT(0, 1, 1) * sz / w2.Size, VT(0, 0, 0))
  1580. w2.Anchored = true
  1581. w2.CFrame = maincf * ANGLES(math.pi, math.pi, -math.pi / 2) * CF(0, width / 2, -len1 - len2 / 2)
  1582. coroutine.resume(coroutine.create(function()
  1583. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1584. Swait()
  1585. w2.Transparency = i
  1586. end
  1587. w2.Parent = nil
  1588. end))
  1589. game:GetService("Debris"):AddItem(w2, 10)
  1590. --table.insert(list, w2)
  1591. end
  1592. --return unpack(list)
  1593. end
  1594.  
  1595. --[[Usage:
  1596. local Pos = Part
  1597. local Offset = Part.CFrame * CF(0, 0, 0)
  1598. local Color = "Institutional white"
  1599. local Material = "Neon"
  1600. local TheDelay = 0.01
  1601. local Height = 4
  1602. BLCF = Offset
  1603. if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  1604. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  1605. if a then game:GetService("Debris"):AddItem(a, 1) end
  1606. if b then game:GetService("Debris"):AddItem(b, 1) end
  1607. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  1608. if a then game:GetService("Debris"):AddItem(a, 1) end
  1609. if b then game:GetService("Debris"):AddItem(b, 1) end
  1610. SCFR = BLCF
  1611. elseif not SCFR then
  1612. SCFR = BLCF
  1613. end
  1614. --
  1615. BLCF = nil
  1616. SCFR = nil
  1617. --]]
  1618.  
  1619. --//=================================\\
  1620. --\\=================================//
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626. --//=================================\\
  1627. --|| RESIZE PLAYER
  1628. --\\=================================//
  1629.  
  1630. if Player_Size ~= 1 then
  1631. RootPart.Size = RootPart.Size * Player_Size
  1632. Torso.Size = Torso.Size * Player_Size
  1633. Head.Size = Head.Size * Player_Size
  1634. RightArm.Size = RightArm.Size * Player_Size
  1635. LeftArm.Size = LeftArm.Size * Player_Size
  1636. RightLeg.Size = RightLeg.Size * Player_Size
  1637. LeftLeg.Size = LeftLeg.Size * Player_Size
  1638. RootJoint.Parent = RootPart
  1639. Neck.Parent = Torso
  1640. RightShoulder.Parent = Torso
  1641. LeftShoulder.Parent = Torso
  1642. RightHip.Parent = Torso
  1643. LeftHip.Parent = Torso
  1644.  
  1645. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1646. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1647. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1648. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1649. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  1650. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  1651. if Disable_Moving_Arms == false then
  1652. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1653. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1654. else
  1655. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  1656. LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  1657. end
  1658. RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1659. LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1660. RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1661. LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1662. end
  1663.  
  1664.  
  1665. --//=================================\\
  1666. --\\=================================//
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672. --//=================================\\
  1673. --|| WEAPON CREATION
  1674. --\\=================================//
  1675.  
  1676. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0))
  1677. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "652692139", "746006671", VT(.03, .03, .03), VT(0, 3.1 * Player_Size, 0))
  1678. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Torso, HandlePart, CF(2 * Player_Size, 2 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0))
  1679.  
  1680. local HitboxPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Hitbox", VT(0, 0, 0))
  1681. local HitboxWeld = CreateWeldOrSnapOrMotor("Weld", HitboxPart, HandlePart, HitboxPart, CF(0 * Player_Size, 4 * Player_Size, 0 * Player_Size), CF(0, 0, 0))
  1682.  
  1683. local EffectPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Effect Part", VT(0, 0, 0))
  1684. local EffectWeld = CreateWeldOrSnapOrMotor("Weld", EffectPart, HandlePart, EffectPart, CF(0 * Player_Size, 7 * Player_Size, 0 * Player_Size), CF(0, 0, 0))
  1685.  
  1686. if Player_Size ~= 1 then
  1687. for _, v in pairs (Weapon:GetChildren()) do
  1688. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  1689. local p1 = v.Part1
  1690. v.Part1 = nil
  1691. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  1692. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  1693. v.Part1 = p1
  1694. elseif v.ClassName == "Part" then
  1695. for _, b in pairs (v:GetChildren()) do
  1696. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  1697. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  1698. end
  1699. end
  1700. end
  1701. end
  1702. end
  1703.  
  1704. for _, c in pairs(Weapon:GetChildren()) do
  1705. if c.ClassName == "Part" then
  1706. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1707. end
  1708. end
  1709.  
  1710. if Start_Equipped == true and Start_Equipped_With_Equipped_Animation == false then
  1711. HandleWeld.Part0 = RightArm
  1712. HandleWeld.C0 = CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1713. end
  1714.  
  1715. Weapon.Parent = Character
  1716.  
  1717. Humanoid.Died:connect(function()
  1718. ATTACK = true
  1719. end)
  1720.  
  1721. print(Class_Name.." loaded.")
  1722.  
  1723. --//=================================\\
  1724. --\\=================================//
  1725.  
  1726.  
  1727.  
  1728.  
  1729.  
  1730. --//=================================\\
  1731. --|| DAMAGE FUNCTIONS
  1732. --\\=================================//
  1733.  
  1734. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1735. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1736. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1737. local BODYGYRO = IT("BodyGyro", STATPART)
  1738. local BODYPOSITION = IT("BodyPosition", STATPART)
  1739. BODYPOSITION.P = 2000
  1740. BODYPOSITION.D = 100
  1741. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1742. if LABELTYPE == "Normal" then
  1743. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1744. elseif LABELTYPE == "Debuff" then
  1745. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  1746. elseif LABELTYPE == "Interruption" then
  1747. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  1748. end
  1749. game:GetService("Debris"):AddItem(STATPART ,5)
  1750. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1751. BILLBOARDGUI.Adornee = STATPART
  1752. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1753. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1754. BILLBOARDGUI.AlwaysOnTop = false
  1755. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1756. TEXTLABEL.BackgroundTransparency = 1
  1757. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1758. TEXTLABEL.Text = TEXT
  1759. TEXTLABEL.Font = "SourceSans"
  1760. TEXTLABEL.FontSize="Size42"
  1761. TEXTLABEL.TextColor3 = COLOR
  1762. TEXTLABEL.TextStrokeTransparency = 0
  1763. TEXTLABEL.TextScaled = true
  1764. TEXTLABEL.TextWrapped = true
  1765. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1766. wait(0.2)
  1767. for i=1, 5 do
  1768. wait()
  1769. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  1770. end
  1771. wait(1.2)
  1772. for i=1, 5 do
  1773. wait()
  1774. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1775. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1776. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1777. end
  1778. THEPART.Parent = nil
  1779. end),STATPART, BODYPOSITION, TEXTLABEL)
  1780. end
  1781.  
  1782. function IncreaseOrDecreaseStat(LOCATION, STAT, AMOUNT, DURATION, SHOWTHESTAT)
  1783. if LOCATION:FindFirstChild("Stats") ~= nil then
  1784. if LOCATION.Stats:FindFirstChild("Block") ~= nil then
  1785. if LOCATION.Stats:FindFirstChild("Block").Value == true then
  1786. return
  1787. end
  1788. end
  1789. if LOCATION.Stats:FindFirstChild("ChangeStat") ~= nil and LOCATION.Stats:FindFirstChild("Block").Value == false then
  1790. local NewStatChange = IT("NumberValue")
  1791. NewStatChange.Value = AMOUNT
  1792. if STAT == "Defense" then
  1793. NewStatChange.Name = "ChangeDefense"
  1794. elseif STAT == "Damage" then
  1795. NewStatChange.Name = "ChangeDamage"
  1796. elseif STAT == "Movement" then
  1797. NewStatChange.Name = "ChangeMovement"
  1798. end
  1799. if SHOWTHESTAT == true then
  1800. if AMOUNT < 0 then
  1801. StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "-"..STAT, C3(1, 1, 1))
  1802. elseif AMOUNT > 0 then
  1803. StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "+"..STAT, C3(1, 1, 1))
  1804. end
  1805. end
  1806. if DURATION ~= nil and DURATION ~= 0 then
  1807. local StatDuration = IT("NumberValue")
  1808. StatDuration.Name = "Duration"
  1809. StatDuration.Value = DURATION
  1810. StatDuration.Parent = NewStatChange
  1811. end
  1812. NewStatChange.Parent = LOCATION.Stats:FindFirstChild("ChangeStat")
  1813. end
  1814. end
  1815. end
  1816.  
  1817. --Usage: DamageFunction(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, hit, false, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  1818. function DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HIT, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
  1819. if HIT.Parent == nil then
  1820. return
  1821. end
  1822. local HITHUMANOID = HIT.Parent:FindFirstChild("Humanoid")
  1823. for _, v in pairs(HIT.Parent:GetChildren()) do
  1824. if v:IsA("Humanoid") then
  1825. HITHUMANOID = v
  1826. end
  1827. end
  1828. if HIT.Name == "Hitbox" and RANGED ~= true and HIT.Parent ~= Weapon and Enable_Stagger_Hit == true then
  1829. StaggerHit.Value = true
  1830. if Play_Hitbox_Hit_Sound == true then
  1831. if HITWEAPONSOUND ~= "" and HITWEAPONSOUND ~= "nil" then
  1832. CreateSound(HITWEAPONSOUND, HIT, 1, HITWEAPONSOUNDPITCH)
  1833. end
  1834. end
  1835. return
  1836. end
  1837. if HIT.Parent.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent.Parent:FindFirstChild("UpperTorso") ~= nil then
  1838. HITHUMANOID = HIT.Parent.Parent:FindFirstChild("Humanoid")
  1839. end
  1840. if HIT.Parent.ClassName == "Hat" or HIT.ClassName == "Accessory" then
  1841. HIT = HIT.Parent.Parent:FindFirstChild("Head")
  1842. end
  1843. if HITHUMANOID ~= nil and HIT.Parent.Name ~= Character.Name and (HIT.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent:FindFirstChild("UpperTorso") ~= nil) then
  1844. if HIT.Parent:FindFirstChild("DebounceHit") ~= nil then
  1845. if HIT.Parent.DebounceHit.Value == true then
  1846. return
  1847. end
  1848. end
  1849. if AntiTeamKill.Value == true then
  1850. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(HIT.Parent) ~= nil then
  1851. if game.Players:GetPlayerFromCharacter(HIT.Parent).TeamColor == Player.TeamColor then
  1852. return
  1853. end
  1854. end
  1855. end
  1856. if HITEVENWHENDEAD == false then
  1857. if HIT.Parent:FindFirstChild("Humanoid") ~= nil then
  1858. if HIT.Parent:FindFirstChild("Humanoid").Health <= 0 then
  1859. return
  1860. end
  1861. end
  1862. end
  1863. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1864. if HIT.Parent.Stats:FindFirstChild("StunValue") ~= nil then
  1865. HIT.Parent.Stats:FindFirstChild("StunValue").Value = HIT.Parent.Stats:FindFirstChild("StunValue").Value + INCREASESTUN
  1866. end
  1867. end
  1868. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1869. if HIT.Parent.Stats:FindFirstChild("Stagger") ~= nil then
  1870. if STAGGER == true and Enable_Stagger == true then
  1871. HIT.Parent.Stats:FindFirstChild("Stagger").Value = true
  1872. end
  1873. end
  1874. end
  1875. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1876. if HIT.Parent.Stats:FindFirstChild("Block") ~= nil then
  1877. if HIT.Parent.Stats:FindFirstChild("Block").Value == true then
  1878. HASBEENBLOCKED = true
  1879. if HIT.Parent.Stats:FindFirstChild("Block"):FindFirstChild("BlockDebounce") == nil then
  1880. StatLabel("Interruption", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Blocked!", C3(0, 100 / 255, 255 / 255))
  1881. if RANGED ~= true then
  1882. if HITBLOCKSOUND ~= "" and HITBLOCKSOUND ~= "nil" then
  1883. CreateSound(HITBLOCKSOUND, HIT, 1, HITBLOCKSOUNDPITCH)
  1884. end
  1885. end
  1886. local BlockDebounce = IT("BoolValue", HIT.Parent.Stats:FindFirstChild("Block"))
  1887. BlockDebounce.Name = "BlockDebounce"
  1888. BlockDebounce.Value = true
  1889. if RANGED ~= true then
  1890. game:GetService("Debris"):AddItem(BlockDebounce, 0.5)
  1891. else
  1892. game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
  1893. end
  1894. end
  1895. if RANGED ~= true and Enable_Stagger == true then
  1896. HIT.Parent.Stats:FindFirstChild("Block").Value = false
  1897. Stagger.Value = true
  1898. end
  1899. return
  1900. end
  1901. end
  1902. end
  1903. if DECREASETHESTAT ~= nil then
  1904. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1905. IncreaseOrDecreaseStat(HIT.Parent, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
  1906. end
  1907. end
  1908. local DAMAGE = MRANDOM(MINIMUMDAMAGE,MAXIMUMDAMAGE) * Damage.Value
  1909. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1910. if HIT.Parent.Stats:FindFirstChild("Defense") ~= nil then
  1911. if CanPenetrateArmor.Value == true then
  1912. DAMAGE = DAMAGE
  1913. else
  1914. DAMAGE = DAMAGE / HIT.Parent.Stats:FindFirstChild("Defense").Value
  1915. end
  1916. elseif HIT.Parent.Stats:FindFirstChild("Defense") == nil then
  1917. DAMAGE = DAMAGE
  1918. end
  1919. end
  1920. if CanCrit.Value == true then
  1921. CRITCHANCENUMBER = MRANDOM(1, CritChance.Value)
  1922. if CRITCHANCENUMBER == 1 then
  1923. DAMAGE = DAMAGE * 2
  1924. end
  1925. end
  1926. DAMAGE = math.floor(DAMAGE)
  1927. if HASBEENBLOCKED == false then
  1928. HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE
  1929. end
  1930. if DAMAGE <= 3 and HASBEENBLOCKED == false then
  1931. if STAGGERHIT == true and Enable_Stagger_Hit == true and RANGED ~= true then
  1932. StaggerHit.Value = true
  1933. end
  1934. if HITARMORSOUND ~= "" and HITARMORSOUND ~= "nil" then
  1935. CreateSound(HITARMORSOUND, HIT, 1, HITARMORSOUNDPITCH)
  1936. end
  1937. elseif DAMAGE > 3 and HASBEENBLOCKED == false then
  1938. if HITPLAYERSOUND ~= "" and HITPLAYERSOUND ~= "nil" then
  1939. CreateSound(HITPLAYERSOUND, HIT, 1, HITPLAYERSOUNDPITCH)
  1940. end
  1941. end
  1942. if DAMAGE > 3 and DAMAGE < 20 and HASBEENBLOCKED == false then
  1943. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  1944. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
  1945. CreateSound("296102734", HIT, 1, 1)
  1946. else
  1947. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 220/255, 0))
  1948. end
  1949. elseif DAMAGE >= 20 and HASBEENBLOCKED == false then
  1950. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  1951. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
  1952. CreateSound("296102734", HIT, 1, 1)
  1953. else
  1954. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 0, 0))
  1955. end
  1956. elseif DAMAGE <= 3 and HASBEENBLOCKED == false then
  1957. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  1958. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
  1959. CreateSound("296102734", HIT, 1, 1)
  1960. else
  1961. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(225/255, 225/255, 225/255))
  1962. end
  1963. end
  1964. if TYPE == "Normal" then
  1965. local vp = IT("BodyVelocity")
  1966. vp.P=500
  1967. vp.maxForce = VT(math.huge, 0, math.huge)
  1968. if KNOCKBACKTYPE == 1 then
  1969. vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK + PROPERTY.Velocity / 1.05
  1970. elseif KNOCKBACKTYPE == 2 then
  1971. vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK
  1972. end
  1973. if KNOCKBACK > 0 and HASBEENBLOCKED == false then
  1974. vp.Parent = HIT--.Parent.Torso
  1975. end
  1976. game:GetService("Debris"):AddItem(vp, 0.5)
  1977. end
  1978. HASBEENBLOCKED = false
  1979. RecentEnemy.Value = HIT.Parent
  1980. local DebounceHit = IT("BoolValue", HIT.Parent)
  1981. DebounceHit.Name = "DebounceHit"
  1982. DebounceHit.Value = true
  1983. game:GetService("Debris"):AddItem(DebounceHit, DELAY)
  1984. end
  1985. end
  1986.  
  1987. --Usage: MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Part, 5, true, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  1988. function MagnitudeDamage(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, PART, MAGNITUDE, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
  1989. for _, c in pairs(workspace:GetChildren()) do
  1990. local HUMANOID = c:FindFirstChild("Humanoid")
  1991. local HEAD = nil
  1992. if HUMANOID ~= nil then
  1993. for _, d in pairs(c:GetChildren()) do
  1994. if d.ClassName == "Model" and RANGED ~= true then
  1995. HEAD = d:FindFirstChild("Hitbox")
  1996. if HEAD ~= nil then
  1997. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  1998. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  1999. if Play_Hitbox_Hit_Sound == true then
  2000. local HitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2001. HitRefpart.Anchored = true
  2002. HitRefpart.CFrame = CF(HEAD.Position)
  2003. CreateSound(HITWEAPONSOUND, HitRefpart, 1, HITWEAPONSOUNDPITCH)
  2004. end
  2005. if Enable_Stagger_Hit == true then
  2006. StaggerHit.Value = true
  2007. end
  2008. end
  2009. end
  2010. elseif d:IsA"BasePart" then
  2011. HEAD = d
  2012. if HEAD ~= nil then
  2013. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  2014. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  2015. DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HEAD, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
  2016. end
  2017. end
  2018. end
  2019. end
  2020. end
  2021. end
  2022. end
  2023.  
  2024. --Usage: MagnitudeBuffOrDebuff(Part, 5, "Defense", -0.1, 3, true, true)
  2025. function MagnitudeBuffOrDebuff(PART, MAGNITUDE, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF, APPLYTOOTHERSINSTEAD)
  2026. if Player.Neutral == true then
  2027. IncreaseOrDecreaseStat(Character, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  2028. end
  2029. for _, c in pairs(workspace:GetChildren()) do
  2030. local HUMANOID = c:FindFirstChild("Humanoid")
  2031. local THEHEAD = nil
  2032. if HUMANOID ~= nil then
  2033. if c:FindFirstChild("Torso") ~= nil then
  2034. THEHEAD = c:FindFirstChild("Torso")
  2035. elseif c:FindFirstChild("UpperTorso") ~= nil then
  2036. THEHEAD = c:FindFirstChild("UpperTorso")
  2037. end
  2038. if THEHEAD ~= nil then
  2039. local THEMAGNITUDE = (THEHEAD.Position - PART.Position).magnitude
  2040. print("yes 1")
  2041. if APPLYTOOTHERSINSTEAD == true then
  2042. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  2043. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then
  2044. if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then
  2045. IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  2046. end
  2047. end
  2048. end
  2049. elseif APPLYTOOTHERSINSTEAD == false then
  2050. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) then
  2051. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then
  2052. if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then
  2053. IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  2054. end
  2055. end
  2056. end
  2057. end
  2058. end
  2059. end
  2060. end
  2061. end
  2062.  
  2063. --//=================================\\
  2064. --\\=================================//
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070. --//=================================\\
  2071. --|| WEAPON GUI
  2072. --\\=================================//
  2073.  
  2074. local MANABAR = CreateFrame(WEAPONGUI, Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_8.r, Custom_Colors.Custom_Color_8.g, Custom_Colors.Custom_Color_8.b), C3(0, 0, 0),"Mana Bar")
  2075. local MANACOVER = CreateFrame(MANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_5.r, Custom_Colors.Custom_Color_5.g, Custom_Colors.Custom_Color_5.b), C3(0, 0, 0),"Mana Cover")
  2076. local MANATEXT = CreateLabel(MANABAR, Mana_Name.." ["..FLOOR(Mana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Mana Text")
  2077.  
  2078. local HEALTHBAR = CreateFrame(WEAPONGUI, Health_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_11.r, Custom_Colors.Custom_Color_11.g, Custom_Colors.Custom_Color_11.b), C3(0, 0, 0), "Health Bar")
  2079. local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 2,UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_6.r, Custom_Colors.Custom_Color_6.g, Custom_Colors.Custom_Color_6.b), C3(0, 0, 0), "Health Cover")
  2080. local HEALTHTEXT = CreateLabel(HEALTHBAR, "Health ["..FLOOR(Humanoid.Health).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Health Text")
  2081.  
  2082. local STUNFRAME = CreateFrame(nil, Stun_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.78, 0),UD2(0.26, 0, 0, 0),C3(Custom_Colors.Custom_Color_10.r, Custom_Colors.Custom_Color_10.g, Custom_Colors.Custom_Color_10.b), C3(0, 0, 0), "Stun Frame")
  2083. local STUNBAR = CreateFrame(STUNFRAME, 0, 2, UD2(0, 0, 0, 0),UD2(0, 0, 1, 0),C3(Custom_Colors.Custom_Color_7.r, Custom_Colors.Custom_Color_7.g, Custom_Colors.Custom_Color_7.b), C3(0, 0, 0), "Stun Bar")
  2084. local STUNTEXT = CreateLabel(STUNFRAME, "Stun ["..FLOOR(StunValue.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Stun Text")
  2085.  
  2086. local SECONDARYMANABAR = CreateFrame(nil, Secondary_Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.78, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_9.r, Custom_Colors.Custom_Color_9.g, Custom_Colors.Custom_Color_9.b), C3(0, 0, 0),"Secondary Mana Bar")
  2087. local SECONDARYMANACOVER = CreateFrame(SECONDARYMANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_4.r, Custom_Colors.Custom_Color_4.g, Custom_Colors.Custom_Color_4.b), C3(0, 0, 0),"Secondary Mana Cover")
  2088. local SECONDARYMANATEXT = CreateLabel(SECONDARYMANABAR, Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Secondary Mana Text")
  2089.  
  2090. local DEFENSEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.23, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 100 / 255, 255 / 255), C3(0, 0, 0),"Defense Frame")
  2091. local DEFENSETEXT = CreateLabel(DEFENSEFRAME, "Defense ["..(Defense.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Defense Text")
  2092.  
  2093. local DAMAGEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.456, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(255 / 255, 100 / 255, 100 / 255), C3(0, 0, 0),"Damage Frame")
  2094. local DAMAGETEXT = CreateLabel(DAMAGEFRAME, "Damage ["..(Damage.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Damage Text")
  2095.  
  2096. local MOVEMENTFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.685, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 255 / 255, 100 / 255), C3(0, 0, 0),"Movement Frame")
  2097. local MOVEMENTTEXT = CreateLabel(MOVEMENTFRAME, "Movement ["..(Movement.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Movement Text")
  2098.  
  2099. local SKILL1FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 1 Frame")
  2100. local SKILL2FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 2 Frame")
  2101. local SKILL3FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 3 Frame")
  2102. local SKILL4FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 4 Frame")
  2103.  
  2104. local SKILL1BAR = CreateFrame(SKILL1FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 1 Bar")
  2105. local SKILL2BAR = CreateFrame(SKILL2FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 2 Bar")
  2106. local SKILL3BAR = CreateFrame(SKILL3FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 3 Bar")
  2107. local SKILL4BAR = CreateFrame(SKILL4FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 4 Bar")
  2108.  
  2109. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Ability 1", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 1")
  2110. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Ability 2", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 2")
  2111. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 3")
  2112. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 4")
  2113.  
  2114. if Enable_Gui == true then
  2115. WEAPONGUI.Parent = PlayerGui
  2116. end
  2117.  
  2118. if Enable_Stats == true and Show_Stats == true then
  2119. DEFENSEFRAME.Parent = WEAPONGUI
  2120. DAMAGEFRAME.Parent = WEAPONGUI
  2121. MOVEMENTFRAME.Parent = WEAPONGUI
  2122. end
  2123.  
  2124. if Enable_Secondary_Bar == true then
  2125. SECONDARYMANABAR.Parent = WEAPONGUI
  2126. end
  2127.  
  2128. if Enable_Abilities == true then
  2129. SKILL1FRAME.Parent = WEAPONGUI
  2130. SKILL2FRAME.Parent = WEAPONGUI
  2131. SKILL3FRAME.Parent = WEAPONGUI
  2132. SKILL4FRAME.Parent = WEAPONGUI
  2133. end
  2134.  
  2135. if Enable_Stun == true then
  2136. STUNFRAME.Parent = WEAPONGUI
  2137. end
  2138.  
  2139. function UpdateGUI()
  2140. MANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2141. MANACOVER:TweenSize(UD2(1 * (Mana.Value / Max_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2142. MANATEXT.Text = Mana_Name.." ["..FLOOR(Mana.Value).."]"
  2143. HEALTHBAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2144. HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2145. HEALTHTEXT.Text = "Health ["..FLOOR(Humanoid.Health).."]"
  2146. if Enable_Abilities == true then
  2147. SKILL1FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2148. SKILL2FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2149. SKILL3FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2150. SKILL4FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2151. SKILL1BAR:TweenSize(UD2(1 * (CO1 / Cooldown_1), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2152. SKILL2BAR:TweenSize(UD2(1 * (CO2 / Cooldown_2), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2153. SKILL3BAR:TweenSize(UD2(1 * (CO3 / Cooldown_3), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2154. SKILL4BAR:TweenSize(UD2(1 * (CO4 / Cooldown_4), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2155. end
  2156. if Enable_Stats == true and Show_Stats == true then
  2157. DEFENSEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2158. DEFENSETEXT.Text = "Defense ["..(Defense.Value * 100).."%]"
  2159. DAMAGEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2160. DAMAGETEXT.Text = "Damage ["..(Damage.Value * 100).."%]"
  2161. MOVEMENTFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2162. MOVEMENTTEXT.Text = "Movement ["..(Movement.Value * 100).."%]"
  2163. end
  2164. if Enable_Stun == true then
  2165. STUNFRAME:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2166. STUNBAR:TweenSize(UD2(1 * (StunValue.Value / Max_Stun), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2167. STUNTEXT.Text = "Stun ["..FLOOR(StunValue.Value).."]"
  2168. end
  2169. if Enable_Secondary_Bar == true then
  2170. SECONDARYMANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2171. SECONDARYMANACOVER:TweenSize(UD2(1 * (SecondaryMana.Value / Max_Secondary_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2172. SECONDARYMANATEXT.Text = Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]"
  2173. end
  2174. end
  2175.  
  2176. if Enable_Gui == true then
  2177. UpdateGUI()
  2178. for _, v in pairs (WEAPONGUI:GetChildren()) do
  2179. if v.ClassName == "Frame" then
  2180. for _, b in pairs (v:GetChildren()) do
  2181. if b.ClassName == "TextLabel" then
  2182. coroutine.resume(coroutine.create(function(THETEXTLABEL)
  2183. wait(Menu_Update_Speed)
  2184. for i = 1, 0, -0.1 do
  2185. Swait()
  2186. THETEXTLABEL.TextTransparency = i
  2187. THETEXTLABEL.TextStrokeTransparency = i
  2188. end
  2189. THETEXTLABEL.TextTransparency = 0
  2190. THETEXTLABEL.TextStrokeTransparency = 0
  2191. end), b)
  2192. end
  2193. end
  2194. end
  2195. end
  2196. end
  2197.  
  2198. --//=================================\\
  2199. --\\=================================//
  2200.  
  2201.  
  2202.  
  2203.  
  2204.  
  2205. --//=================================\\
  2206. --|| SKILL FUNCTIONS
  2207. --\\=================================//
  2208.  
  2209. function UpdateSkillsAndStuff()
  2210. if Mana_Regen_Mode == "1" then
  2211. if Mana.Value >= Max_Mana then
  2212. Mana.Value = Max_Mana
  2213. elseif Mana.Value < 0 then
  2214. Mana.Value = 0
  2215. else
  2216. if MANADELAYNUMBER <= Mana_Wait then
  2217. MANADELAYNUMBER = MANADELAYNUMBER + 1
  2218. else
  2219. MANADELAYNUMBER = 0
  2220. Mana.Value = Mana.Value + Recover_Mana
  2221. end
  2222. end
  2223. elseif Mana_Regen_Mode == "2" then
  2224. if Mana.Value <= Max_Mana then
  2225. Mana.Value = Mana.Value + (Recover_Mana / 30) / Animation_Speed
  2226. elseif Mana.Value >= Max_Mana then
  2227. Mana.Value = Max_Mana
  2228. elseif Mana.Value < 0 then
  2229. Mana.Value = 0
  2230. end
  2231. end
  2232. if Enable_Secondary_Bar == true then
  2233. if Secondary_Mana_Regen_Mode == "1" then
  2234. if SecondaryMana.Value >= Max_Secondary_Mana then
  2235. SecondaryMana.Value = Max_Secondary_Mana
  2236. elseif SecondaryMana.Value < 0 then
  2237. SecondaryMana.Value = 0
  2238. else
  2239. if SECONDARYMANADELAYNUMBER <= Secondary_Mana_Wait then
  2240. SECONDARYMANADELAYNUMBER = SECONDARYMANADELAYNUMBER + 1
  2241. else
  2242. SECONDARYMANADELAYNUMBER = 0
  2243. SecondaryMana.Value = SecondaryMana.Value + Recover_Secondary_Mana
  2244. end
  2245. end
  2246. elseif Secondary_Mana_Regen_Mode == "2" then
  2247. if SecondaryMana.Value <= Max_Secondary_Mana then
  2248. SecondaryMana.Value = SecondaryMana.Value + (Recover_Secondary_Mana / 30) / Animation_Speed
  2249. elseif SecondaryMana.Value >= Max_Secondary_Mana then
  2250. SecondaryMana.Value = Max_Secondary_Mana
  2251. elseif SecondaryMana.Value < 0 then
  2252. SecondaryMana.Value = 0
  2253. end
  2254. end
  2255. else
  2256. SecondaryMana.Value = 0
  2257. end
  2258. if Enable_Stun == true then
  2259. if Stun_Lose_Mode == "1" then
  2260. if StunValue.Value > Max_Stun then
  2261. StunValue.Value = Max_Stun
  2262. elseif StunValue.Value <= 0 then
  2263. StunValue.Value = 0
  2264. else
  2265. if STUNDELAYNUMBER <= Stun_Wait then
  2266. STUNDELAYNUMBER = STUNDELAYNUMBER + 1
  2267. else
  2268. STUNDELAYNUMBER = 0
  2269. StunValue.Value = StunValue.Value - Lose_Stun
  2270. end
  2271. end
  2272. elseif Stun_Lose_Mode == "2" then
  2273. if StunValue.Value <= Max_Stun and StunValue.Value > 0 then
  2274. StunValue.Value = StunValue.Value - (Lose_Stun / 30) / Animation_Speed
  2275. elseif StunValue.Value > Max_Stun then
  2276. StunValue.Value = Max_Stun
  2277. elseif StunValue.Value <= 0 then
  2278. StunValue.Value = 0
  2279. end
  2280. end
  2281. else
  2282. StunValue.Value = 0
  2283. end
  2284. if Enable_Abilities == true then
  2285. if CO1 <= Cooldown_1 then
  2286. CO1 = CO1 + (1 / 30) / Animation_Speed
  2287. elseif CO1 >= Cooldown_1 then
  2288. CO1 = Cooldown_1
  2289. end
  2290. if CO2 <= Cooldown_2 then
  2291. CO2 = CO2 + (1 / 30) / Animation_Speed
  2292. elseif CO2 >= Cooldown_2 then
  2293. CO2 = Cooldown_2
  2294. end
  2295. if CO3 <= Cooldown_3 then
  2296. CO3 = CO3 + (1 / 30) / Animation_Speed
  2297. elseif CO3 >= Cooldown_3 then
  2298. CO3 = Cooldown_3
  2299. end
  2300. if CO4 <= Cooldown_4 then
  2301. CO4 = CO4 + (1 / 30) / Animation_Speed
  2302. elseif CO4 >= Cooldown_4 then
  2303. CO4 = Cooldown_4
  2304. end
  2305. end
  2306. end
  2307.  
  2308. --//=================================\\
  2309. --\\=================================//
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315. --//=================================\\
  2316. --|| ATTACK FUNCTIONS AND STUFF
  2317. --\\=================================//
  2318.  
  2319. function EquipWeapon()
  2320. --ATTACK = true
  2321. DEFENSECHANGE1.Parent = nil
  2322. MOVEMENTCHANGE1.Parent = ChangeStat
  2323. for i=0, 1, 0.5 / Animation_Speed do
  2324. Swait()
  2325. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2326. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2327. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2328. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2329. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  2330. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  2331. end
  2332. for i=0, 1, 0.08 / Animation_Speed do
  2333. Swait()
  2334. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2335. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2336. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(210), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2337. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2338. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  2339. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  2340. end
  2341. HandleWeld.Part0 = RightArm
  2342. HandleWeld.C0 = CF(-0.05 * Player_Size, -1 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(-27), RAD(0), RAD(-19)) * ANGLES(RAD(0), RAD(110), RAD(0))
  2343. CreateSound("174884033", HitboxPart, 1, 1.5)
  2344. for i=0, 1, 0.5 / Animation_Speed do
  2345. Swait()
  2346. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2347. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-2.5), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  2348. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2349. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2350. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  2351. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  2352. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(90), RAD(0)), 0.3 / Animation_Speed)
  2353. end
  2354. LASTPOINT = EffectPart.CFrame
  2355. for i=0, 1, 0.08 / Animation_Speed do
  2356. Swait()
  2357. TrailEffect("Institutional white", "Neon", EffectPart.CFrame, LASTPOINT, "Block", 0, 0.2, ANGLES(0, 0, 0), -0.01, 0, -0.01, 0.1)
  2358. LASTPOINT = EffectPart.CFrame
  2359. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2360. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  2361. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(80)) * ANGLES(RAD(-60), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2362. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2363. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.4 / Animation_Speed)
  2364. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2365. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-140), RAD(90), RAD(0)), 0.3 / Animation_Speed)
  2366. end
  2367. LASTPOINT = nil
  2368. --ATTACK = false
  2369. end
  2370.  
  2371. function UnequipWeapon()
  2372. --ATTACK = true
  2373. for i=0, 1, 0.5 / Animation_Speed do
  2374. Swait()
  2375. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2376. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2377. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2378. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2379. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  2380. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  2381. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.05 * Player_Size, -1 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(-27), RAD(0), RAD(-19)) * ANGLES(RAD(0), RAD(110), RAD(0)), 0.3 / Animation_Speed)
  2382. end
  2383. CreateSound("245542809", HitboxPart, 1, 1.2)
  2384. for i=0, 1, 0.08 / Animation_Speed do
  2385. Swait()
  2386. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2387. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2388. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(210), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2389. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2390. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  2391. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  2392. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.05 * Player_Size, -1 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(-27), RAD(0), RAD(-19)) * ANGLES(RAD(0), RAD(110), RAD(0)), 0.3 / Animation_Speed)
  2393. end
  2394. HandleWeld.Part0 = Torso
  2395. HandleWeld.C0 = CF(2 * Player_Size, 2 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135))
  2396. for i=0, 1, 0.5 / Animation_Speed do
  2397. Swait()
  2398. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2399. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-2.5), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  2400. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2401. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2402. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  2403. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  2404. end
  2405. for i=0, 1, 0.08 / Animation_Speed do
  2406. Swait()
  2407. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2408. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2409. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2410. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)), 0.3 / Animation_Speed)
  2411. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2412. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2413. if Disable_Moving_Arms == false then
  2414. RightShoulder.C1 = Clerp(RightShoulder.C1, ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5), 0.3 / Animation_Speed)
  2415. LeftShoulder.C1 = Clerp(LeftShoulder.C1, ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5), 0.3 / Animation_Speed)
  2416. else
  2417. RightShoulder.C1 = Clerp(RightShoulder.C1, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size), 0.3 / Animation_Speed)
  2418. LeftShoulder.C1 = Clerp(LeftShoulder.C1, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size), 0.3 / Animation_Speed)
  2419. end
  2420. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2421. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2422. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2423. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2424. end
  2425. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  2426. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  2427. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  2428. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  2429. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  2430. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  2431. if Disable_Moving_Arms == false then
  2432. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  2433. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  2434. else
  2435. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2436. LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2437. end
  2438. RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  2439. LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  2440. RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  2441. LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  2442. --ATTACK = false
  2443. DEFENSECHANGE1.Parent = ChangeStat
  2444. MOVEMENTCHANGE1.Parent = nil
  2445. end
  2446.  
  2447. function StaggerHitAnimation()
  2448. ATTACK = true
  2449. if Weapon:FindFirstChild("Hitbox") ~= nil then
  2450. for i = 1, MRANDOM(2, 4) do
  2451. ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  2452. end
  2453. end
  2454. for i = 0, 1, 0.1 / Animation_Speed do
  2455. Swait()
  2456. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2457. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2458. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-30), RAD(0), RAD(60)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2459. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-20)) * ANGLES(RAD(0), RAD(20), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2460. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.9 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2461. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.3 / Animation_Speed)
  2462. if Stagger.Value == true or Stun.Value == true then
  2463. break
  2464. end
  2465. end
  2466. ATTACK = false
  2467. end
  2468.  
  2469. function StaggerAnimation()
  2470. ATTACK = true
  2471. if Weapon:FindFirstChild("Hitbox") ~= nil then
  2472. for i = 1, MRANDOM(2, 4) do
  2473. ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  2474. end
  2475. end
  2476. DISABLEJUMPING = true
  2477. COMBO = 1
  2478. StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 1), 0), "Staggered!", C3(255 / 255, 255 / 255, 0))
  2479. local STAGGERVELOCITY = Instance.new("BodyVelocity",Torso)
  2480. STAGGERVELOCITY.P = 500
  2481. STAGGERVELOCITY.maxForce = VT(math.huge, 0, math.huge)
  2482. if Rooted.Value == false then
  2483. STAGGERVELOCITY.Velocity = RootPart.CFrame.lookVector * -40
  2484. end
  2485. for i = 0, 1, 0.35 / Animation_Speed do
  2486. Swait()
  2487. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2488. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(20)), 0.3 / Animation_Speed)
  2489. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2490. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2491. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  2492. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 0.3 / Animation_Speed)
  2493. end
  2494. for i = 0, 1, 0.2 / Animation_Speed do
  2495. Swait()
  2496. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-20)), 0.4 / Animation_Speed)
  2497. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  2498. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2499. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2500. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 0.4 / Animation_Speed)
  2501. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.4 / Animation_Speed)
  2502. end
  2503. STAGGERVELOCITY.Parent = nil
  2504. for i = 1, 50 * Animation_Speed do
  2505. Swait()
  2506. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.8 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-20)) * ANGLES(RAD(-5), RAD(-5), RAD(0)), 0.3 / Animation_Speed)
  2507. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.3 / Animation_Speed)
  2508. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(-20), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2509. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-10)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2510. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.4 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)), 0.3 / Animation_Speed)
  2511. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-10)), 0.3 / Animation_Speed)
  2512. end
  2513. DISABLEJUMPING = false
  2514. ATTACK = false
  2515. end
  2516.  
  2517. function StunAnimation()
  2518. ATTACK = true
  2519. DISABLEJUMPING = true
  2520. COMBO = 1
  2521. StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 1), 0), "Stunned!", C3(255 / 255, 255 / 255, 0))
  2522. for i = 0, 1, 0.3 / Animation_Speed do
  2523. Swait()
  2524. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-150)), 0.3 / Animation_Speed)
  2525. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2526. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2527. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2528. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  2529. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.3 / Animation_Speed)
  2530. end
  2531. for i = 0, 1, 0.3 / Animation_Speed do
  2532. Swait()
  2533. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(-180)), 0.4 / Animation_Speed)
  2534. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2535. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2536. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2537. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  2538. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(50)), 0.4 / Animation_Speed)
  2539. end
  2540. for i = 0, 1, 0.3 / Animation_Speed do
  2541. Swait()
  2542. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(75), RAD(0), RAD(-180)), 0.4 / Animation_Speed)
  2543. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-60)), 0.4 / Animation_Speed)
  2544. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2545. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-80)) * ANGLES(RAD(0), RAD(-40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2546. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(10)), 0.4 / Animation_Speed)
  2547. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(80)), 0.4 / Animation_Speed)
  2548. end
  2549. for i = 1, 70 * Animation_Speed do
  2550. Swait()
  2551. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -2.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-180)), 0.3 / Animation_Speed)
  2552. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.3 / Animation_Speed)
  2553. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(-10), RAD(90)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2554. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2555. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2556. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2557. end
  2558. for i = 0, 1, 0.2 / Animation_Speed do
  2559. Swait()
  2560. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.5 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(100)), 0.4 / Animation_Speed)
  2561. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2562. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(-10), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2563. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(80), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2564. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(70)), 0.4 / Animation_Speed)
  2565. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.25 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  2566. end
  2567. DISABLEJUMPING = false
  2568. ATTACK = false
  2569. end
  2570.  
  2571. function EAbility()
  2572. ATTACK = true
  2573. ATTACK = false
  2574. end
  2575.  
  2576. function Attack1()
  2577. ATTACK = true
  2578. for i=0, 1, 0.1 / Animation_Speed do
  2579. Swait()
  2580. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  2581. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(35)), 0.4 / Animation_Speed)
  2582. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(0), RAD(-20)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2583. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.25 * Player_Size, 0.5 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(160), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2584. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2585. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  2586. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-80), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2587. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2588. break
  2589. end
  2590. end
  2591. CreateSound("553461842", HitboxPart, 1.2, MRANDOM(8, 9) / 10)
  2592. local HASHITFLOOR = false
  2593. for i=0, 1, 0.1 / Animation_Speed do
  2594. Swait()
  2595. local Pos = HitboxPart
  2596. local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0)
  2597. local Color = "Institutional white"
  2598. local Material = "Neon"
  2599. local TheDelay = 0.01
  2600. local Height = 6.2 * Player_Size
  2601. BLCF = Offset
  2602. if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  2603. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  2604. if a then game:GetService("Debris"):AddItem(a, 1) end
  2605. if b then game:GetService("Debris"):AddItem(b, 1) end
  2606. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  2607. if a then game:GetService("Debris"):AddItem(a, 1) end
  2608. if b then game:GetService("Debris"):AddItem(b, 1) end
  2609. SCFR = BLCF
  2610. elseif not SCFR then
  2611. SCFR = BLCF
  2612. end
  2613. local SWORDHIT, SWORDPOS = Raycast(EffectPart.Position, (CF(EffectPart.Position, EffectPart.Position + VT(0, -1, 0))).lookVector, 1 * Player_Size, Character)
  2614. if SWORDHIT ~= nil and HASHITFLOOR == false and SWORDHIT.Parent:FindFirstChild("Humanoid") == nil then
  2615. HASHITFLOOR = true
  2616. --print(SWORDHIT.Material)
  2617. if SWORDHIT.Material == Enum.Material.Grass or SWORDHIT.Material == Enum.Material.Ice or SWORDHIT.Material == Enum.Material.Fabric or SWORDHIT.Material == Enum.Material.SmoothPlastic or SWORDHIT.Material == Enum.Material.Sand or SWORDHIT.Material == Enum.Material.Plastic or SWORDHIT.Material == Enum.Material.Neon or SWORDHIT.Material == Enum.Material.Foil then
  2618. CreateSound("525717773", EffectPart, 1.2 , MRANDOM(8, 12) / 10)
  2619. elseif SWORDHIT.Material == Enum.Material.Metal or SWORDHIT.Material == Enum.Material.Concrete or SWORDHIT.Material == Enum.Material.Brick or SWORDHIT.Material == Enum.Material.CorrodedMetal or SWORDHIT.Material == Enum.Material.Slate or SWORDHIT.Material == Enum.Material.Marble or SWORDHIT.Material == Enum.Material.Granite or SWORDHIT.Material == Enum.Material.DiamondPlate or SWORDHIT.Material == Enum.Material.Pebble or SWORDHIT.Material == Enum.Material.Cobblestone then
  2620. CreateSound("470790670", EffectPart, 1 , MRANDOM(8, 12) / 10)
  2621. for i = 1, MRANDOM(2, 4) do
  2622. ClangEffect("Bright yellow", "Neon", CF(SWORDPOS) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 10, 3, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  2623. end
  2624. elseif SWORDHIT.Material == Enum.Material.Wood or SWORDHIT.Material == Enum.Material.WoodPlanks then
  2625. CreateSound("514586161", EffectPart, 1 , MRANDOM(8, 12) / 10)
  2626. end
  2627. end
  2628. MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  2629. if HASHITFLOOR == true then
  2630. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  2631. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-20)), 0.4 / Animation_Speed)
  2632. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(40), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2633. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(0 * Player_Size, 0.25 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2634. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(17.5)), 0.4 / Animation_Speed)
  2635. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  2636. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-132.5), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2637. else
  2638. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  2639. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-20)), 0.4 / Animation_Speed)
  2640. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2641. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(0 * Player_Size, 0.25 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2642. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(17.5)), 0.4 / Animation_Speed)
  2643. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  2644. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-150), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2645. end
  2646. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2647. break
  2648. end
  2649. end
  2650. BLCF = nil
  2651. SCFR = nil
  2652. ATTACK = false
  2653. end
  2654.  
  2655. function Attack2()
  2656. ATTACK = true
  2657. for i=0, 1, 0.1 / Animation_Speed do
  2658. Swait()
  2659. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  2660. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  2661. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2662. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2663. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  2664. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2665. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-110), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2666. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2667. break
  2668. end
  2669. end
  2670. CreateSound("553461718", HitboxPart, 1.2, MRANDOM(7, 9) / 10)
  2671. for i=0, 1, 0.1 / Animation_Speed do
  2672. Swait()
  2673. local Pos = HitboxPart
  2674. local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0)
  2675. local Color = "Institutional white"
  2676. local Material = "Neon"
  2677. local TheDelay = 0.01
  2678. local Height = 6.2 * Player_Size
  2679. BLCF = Offset
  2680. if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  2681. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  2682. if a then game:GetService("Debris"):AddItem(a, 1) end
  2683. if b then game:GetService("Debris"):AddItem(b, 1) end
  2684. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  2685. if a then game:GetService("Debris"):AddItem(a, 1) end
  2686. if b then game:GetService("Debris"):AddItem(b, 1) end
  2687. SCFR = BLCF
  2688. elseif not SCFR then
  2689. SCFR = BLCF
  2690. end
  2691. MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  2692. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2693. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  2694. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2695. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2696. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  2697. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  2698. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-130), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2699. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2700. break
  2701. end
  2702. end
  2703. BLCF = nil
  2704. SCFR = nil
  2705. ATTACK = false
  2706. end
  2707.  
  2708. function ShootFireball(POSITION1, POSITION2, SPEED, SIZE, DURATION, LOWDAMAGE, HIGHDAMAGE)
  2709. local POS1 = POSITION1
  2710. local POS2 = POSITION2
  2711. local MOUSELOOK = CF((POS1 + POS2) / 2, POS2)
  2712. local FIREBALLSPEED = SPEED * Player_Size
  2713. local FIREBALLDURATION = DURATION
  2714. local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  2715. local FIREBALLHITSOUNDS = {"522282998", "527535379", "304448425"}
  2716. coroutine.resume(coroutine.create(function()
  2717. repeat
  2718. Swait()
  2719. local FIREBALLHIT, FIREBALLPOS = Raycast(POS1, MOUSELOOK.lookVector, FIREBALLSPEED, Character)
  2720. POS1 = POS1 + (MOUSELOOK.lookVector * FIREBALLSPEED)
  2721. MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", CF(POS1) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / -10, SIZE / -10, SIZE / -10, 0.1)
  2722. if FIREBALLHIT ~= nil or FIREBALLDURATION <= 0.1 then
  2723. FIREBALLDURATION = 0
  2724. local FireballHitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2725. FireballHitRefpart.Anchored = true
  2726. FireballHitRefpart.CFrame = CF(FIREBALLPOS)
  2727. game:GetService("Debris"):AddItem(FireballHitRefpart, 5)
  2728. CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FireballHitRefpart, 1.4, MRANDOM(14, 16) / 10)
  2729. for i = 1, MRANDOM(4, 8) do
  2730. MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 5, 5, 5, 0, 0, 0, MRANDOM(3, 5) / 100)
  2731. end
  2732. MagicBlock("Bright red", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05)
  2733. MagicBlock("Bright orange", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.5, SIZE * 0.5, SIZE * 0.5, SIZE / 4, SIZE / 4, SIZE / 4, 0.05)
  2734. MagicBlock("Bright yellow", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.25, SIZE * 0.25, SIZE * 0.25, SIZE / 5, SIZE / 5, SIZE / 5, 0.05)
  2735. MagnitudeDamage("", "", "", "", 1, 1, 1, 1, FireballHitRefpart, SIZE / 2, false, LOWDAMAGE, HIGHDAMAGE, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, nil, 0, 0, false)
  2736. else
  2737. FIREBALLDURATION = FIREBALLDURATION - (1 / 30) / Animation_Speed
  2738. end
  2739. until FIREBALLHIT ~= nil or FIREBALLDURATION <= 0
  2740. end))
  2741. end
  2742.  
  2743. function FirePillar(POSITION1, POSITION2, SIZE, RISE, RANGE, LOWDAMAGE, HIGHDAMAGE, LASTINGTIME)
  2744. local POS1 = POSITION1
  2745. local POS2 = POSITION2
  2746. local MOUSELOOK = CF((POS1 + POS2) / 2, POS2)
  2747. local FIREPILLARHITSOUNDS = {"171378971", --[["646619365",--]] "472579737"--[[, "144140670"--]]}
  2748. local FIREPILLARCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  2749. local FIREPILLAR1HIT, FIREPILLAR1POS = Raycast(POS1, MOUSELOOK.lookVector, RANGE * Player_Size, Character)
  2750. local FirePillarRefpart1 = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2751. FirePillarRefpart1.Anchored = true
  2752. FirePillarRefpart1.CFrame = CF(FIREPILLAR1POS) * CF(0, 10, 0)
  2753. game:GetService("Debris"):AddItem(FirePillarRefpart1, 5)
  2754. local FIREPILLAR2HIT, FIREPILLAR2POS = Raycast(FirePillarRefpart1.Position, CF(FirePillarRefpart1.Position, FirePillarRefpart1.Position + VT(0, -1, 0)).lookVector, 999, Character)
  2755. if FIREPILLAR2HIT ~= nil then
  2756. FirePillarRefpart1.Parent = nil
  2757. local FirePillarRefpart2 = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2758. FirePillarRefpart2.Anchored = true
  2759. FirePillarRefpart2.CFrame = CF(FIREPILLAR2POS)
  2760. game:GetService("Debris"):AddItem(FirePillarRefpart2, 5)
  2761. CreateSound(FIREPILLARHITSOUNDS[MRANDOM(1, #FIREPILLARHITSOUNDS)], FirePillarRefpart2, 1.2, MRANDOM(11, 13) / 10)
  2762. for i = 1, MRANDOM(5, 10) do
  2763. MagicBlock(FIREPILLARCOLORS[MRANDOM(1, #FIREPILLARCOLORS)], "Neon", FirePillarRefpart2.CFrame * ANGLES(RAD(MRANDOM(-60, 60)), 0, RAD(MRANDOM(-60, 60))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 3, 3, 3, 0, 0, 0, MRANDOM(3, 5) / 100)
  2764. end
  2765. for i = 1, MRANDOM(15, 20) do
  2766. local FIREEFFECTSIZE = MRANDOM(1, 2)
  2767. MagicBlock(FIREPILLARCOLORS[MRANDOM(1, #FIREPILLARCOLORS)], "Neon", FirePillarRefpart2.CFrame, CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-20, 20)), 0), VT(MRANDOM(SIZE / 6, SIZE / 4), 0, 0), FIREEFFECTSIZE, FIREEFFECTSIZE, FIREEFFECTSIZE, -0.02, -0.02, -0.02, MRANDOM(1, 2) / 100)
  2768. end
  2769. MagicCylinder("Bright red", "Neon", CF(FIREPILLAR2POS), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, 0.1, SIZE, 1.5, 0, 1.5, LASTINGTIME)
  2770. MagicSphere("Bright red", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, 0.1, SIZE, 1.5, RISE, 1.5, LASTINGTIME)
  2771. MagicSphere("Bright orange", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE * 0.5, 0.1, SIZE * 0.5, 1.5, RISE * 0.75, 1.5, LASTINGTIME)
  2772. MagicSphere("Bright yellow", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE * 0.25, 0.1, SIZE * 0.25, 1.5, RISE * 0.375, 1.5, LASTINGTIME)
  2773. MagnitudeDamage("", "", "", "", 1, 1, 1, 1, FirePillarRefpart2, SIZE / 3, false, LOWDAMAGE, HIGHDAMAGE, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, "Movement", -0.1, 3, true)
  2774. end
  2775. end
  2776.  
  2777. function Attack3()
  2778. ATTACK = true
  2779. local FIREEFFECTCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  2780. for i=0, 1, 0.1 / Animation_Speed do
  2781. Swait()
  2782. for i = 1, 2 do
  2783. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0, MRANDOM(-10, 10) / 10 * Player_Size, 0) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, 0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 1, 1, 1, -0.05, -0.05, -0.05, 0.05)
  2784. end
  2785. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-60)), 0.4 / Animation_Speed)
  2786. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2787. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2788. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2789. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2790. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed)
  2791. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2792. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2793. break
  2794. end
  2795. end
  2796. CreateSound("154324879", LeftArm, 1.4, 1.5)
  2797. ShootFireball((LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size)).p, Mouse.hit.p, 1, 10, 2.1, 5, 10)
  2798. MagicBlock("Bright red", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  2799. MagicBlock("Bright orange", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05)
  2800. MagicBlock("Bright yellow", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05)
  2801. for i=0, 1, 0.1 / Animation_Speed do
  2802. Swait()
  2803. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.4 / Animation_Speed)
  2804. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(50)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2805. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2806. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25 * Player_Size, 0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2807. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-12.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2808. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2809. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2810. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2811. break
  2812. end
  2813. end
  2814. ATTACK = false
  2815. end
  2816.  
  2817. function Attack4()
  2818. ATTACK = true
  2819. local FIREEFFECTCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  2820. for i=0, 1, 0.1 / Animation_Speed do
  2821. Swait()
  2822. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 1, 1, 1, -0.05, -0.05, -0.05, 0.05)
  2823. --MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 1, 1, 1, -0.05, -0.05, -0.05, 0.05)
  2824. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  2825. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2826. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2827. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2828. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2829. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed)
  2830. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2831. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2832. break
  2833. end
  2834. end
  2835. CreateSound("549224856", LeftArm, 1, MRANDOM(11, 13) / 10)
  2836. FirePillar(RootPart.Position, Mouse.hit.p, 25, 7.5, 20, 5, 10, 0.025)
  2837. MagicBlock("Bright red", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  2838. MagicBlock("Bright orange", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05)
  2839. MagicBlock("Bright yellow", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05)
  2840. for i=0, 1, 0.1 / Animation_Speed do
  2841. Swait()
  2842. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2843. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2844. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2845. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2846. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.4 / Animation_Speed)
  2847. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-12.5)), 0.4 / Animation_Speed)
  2848. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2849. --[[
  2850. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(40)), 0.4 / Animation_Speed)
  2851. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2852. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2853. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-10 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(40 + MRANDOM(-2.5, 2.5)), RAD(70), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2854. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.4 / Animation_Speed)
  2855. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  2856. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2857. --]]
  2858. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2859. break
  2860. end
  2861. end
  2862. ATTACK = false
  2863. end
  2864.  
  2865. function Move1()
  2866. ATTACK = true
  2867. ATTACK = false
  2868. end
  2869.  
  2870. function Move2()
  2871. ATTACK = true
  2872. ATTACK = false
  2873. end
  2874.  
  2875. function Move3()
  2876. ATTACK = true
  2877. ATTACK = false
  2878. end
  2879.  
  2880. function Move4()
  2881. ATTACK = true
  2882. ATTACK = false
  2883. end
  2884.  
  2885. --//=================================\\
  2886. --\\=================================//
  2887.  
  2888.  
  2889.  
  2890.  
  2891.  
  2892. --//=================================\\
  2893. --|| SET THINGS UP
  2894. --\\=================================//
  2895.  
  2896. if Start_Equipped == true then
  2897. ATTACK = true
  2898. EQUIPPED = true
  2899. if Disable_Animate == true then
  2900. ANIMATE.Parent = nil
  2901. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2902. IDLEANIMATION:Play()
  2903. end
  2904. if Disable_Animator == true then
  2905. ANIMATOR.Parent = nil
  2906. end
  2907. if Disable_Moving_Arms == true then
  2908. RSH = Torso["Right Shoulder"]
  2909. LSH = Torso["Left Shoulder"]
  2910. RSH.Parent = nil
  2911. LSH.Parent = nil
  2912. if Use_Motors_Instead_Of_Welds == true then
  2913. RightShoulder = IT("Motor")
  2914. LeftShoulder = IT("Motor")
  2915. else
  2916. RightShoulder = IT("Weld")
  2917. LeftShoulder = IT("Weld")
  2918. end
  2919. RightShoulder.Name = "Right Shoulder"
  2920. RightShoulder.Part0 = Torso
  2921. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2922. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2923. RightShoulder.Part1 = Character["Right Arm"]
  2924. RightShoulder.Parent = Torso
  2925. LeftShoulder.Name = "Left Shoulder"
  2926. LeftShoulder.Part0 = Torso
  2927. LeftShoulder.C0=CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2928. LeftShoulder.C1=CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2929. LeftShoulder.Part1 = Character["Left Arm"]
  2930. LeftShoulder.Parent = Torso
  2931. RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  2932. LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  2933. end
  2934. if Start_Equipped_With_Equipped_Animation == true then
  2935. Swait()
  2936. EquipWeapon()
  2937. end
  2938. ATTACK = false
  2939. end
  2940.  
  2941. --//=================================\\
  2942. --\\=================================//
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948. --//=================================\\
  2949. --|| ASSIGN THINGS TO KEYS
  2950. --\\=================================//
  2951.  
  2952. Humanoid.Changed:connect(function(Jump)
  2953. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  2954. Humanoid.Jump = false
  2955. end
  2956. end)
  2957.  
  2958. function MouseDown(Mouse)
  2959. if ATTACK == true or EQUIPPED == false then
  2960. return
  2961. end
  2962. HOLD = true
  2963. if COMBO == 1 then
  2964. COMBO = 2
  2965. Attack1()
  2966. elseif COMBO == 2 then
  2967. COMBO = 3
  2968. Attack2()
  2969. elseif COMBO == 3 then
  2970. COMBO = 4
  2971. Attack3()
  2972. elseif COMBO == 4 then
  2973. COMBO = 1
  2974. Attack4()
  2975. end
  2976. coroutine.resume(coroutine.create(function()
  2977. for i=1, 50 do
  2978. if ATTACK == false then
  2979. Swait()
  2980. end
  2981. end
  2982. if ATTACK == false then
  2983. COMBO = 1
  2984. end
  2985. end))
  2986. end
  2987.  
  2988. function MouseUp(Mouse)
  2989. HOLD = false
  2990. end
  2991.  
  2992. function KeyDown(Key)
  2993. if Key == "f" and Can_Equip_Or_Unequip == true and ATTACK == false then
  2994. ATTACK = true
  2995. COMBO = 1
  2996. if EQUIPPED == false then
  2997. EQUIPPED = true
  2998. if Disable_Animate == true then
  2999. ANIMATE.Parent = nil
  3000. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  3001. IDLEANIMATION:Play()
  3002. end
  3003. if Disable_Animator == true then
  3004. ANIMATOR.Parent = nil
  3005. end
  3006. if Disable_Moving_Arms == true then
  3007. RSH = Torso["Right Shoulder"]
  3008. LSH = Torso["Left Shoulder"]
  3009. RSH.Parent = nil
  3010. LSH.Parent = nil
  3011. if Use_Motors_Instead_Of_Welds == true then
  3012. RightShoulder = IT("Motor")
  3013. LeftShoulder = IT("Motor")
  3014. else
  3015. RightShoulder = IT("Weld")
  3016. LeftShoulder = IT("Weld")
  3017. end
  3018. RightShoulder.Name = "Right Shoulder"
  3019. RightShoulder.Part0 = Torso
  3020. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  3021. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  3022. RightShoulder.Part1 = Character["Right Arm"]
  3023. RightShoulder.Parent = Torso
  3024. LeftShoulder.Name = "Left Shoulder"
  3025. LeftShoulder.Part0 = Torso
  3026. LeftShoulder.C0=CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  3027. LeftShoulder.C1=CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  3028. LeftShoulder.Part1 = Character["Left Arm"]
  3029. LeftShoulder.Parent = Torso
  3030. RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  3031. LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  3032. end
  3033. Swait()
  3034. EquipWeapon()
  3035. elseif EQUIPPED == true then
  3036. EQUIPPED = false
  3037. UnequipWeapon()
  3038. if Disable_Animator == true then
  3039. ANIMATOR.Parent = Humanoid
  3040. end
  3041. if Disable_Animate == true then
  3042. ANIMATE.Parent = Character
  3043. end
  3044. Swait()
  3045. if Disable_Moving_Arms == true then
  3046. RightShoulder.Parent = nil
  3047. LeftShoulder.Parent = nil
  3048. RSH.Parent = Torso
  3049. LSH.Parent = Torso
  3050. end
  3051. end
  3052. ATTACK = false
  3053. end
  3054. if Key == "e" and EQUIPPED == true and ATTACK == false then
  3055. EAbility()
  3056. end
  3057. if Key == "z" and EQUIPPED == true and ATTACK == false and CO1 >= Cooldown_1 and Mana.Value >= Skill_1_Mana_Cost then
  3058. Mana.Value = Mana.Value - Skill_1_Mana_Cost
  3059. CO1 = 0
  3060. Move1()
  3061. end
  3062. if Key == "x" and EQUIPPED == true and ATTACK == false and CO2 >= Cooldown_2 and Mana.Value >= Skill_2_Mana_Cost then
  3063. Mana.Value = Mana.Value - Skill_2_Mana_Cost
  3064. CO2 = 0
  3065. Move2()
  3066. end
  3067. if Key == "c" and EQUIPPED == true and ATTACK == false and CO3 >= Cooldown_3 and Mana.Value >= Skill_3_Mana_Cost then
  3068. Mana.Value = Mana.Value - Skill_3_Mana_Cost
  3069. CO3 = 0
  3070. Move3()
  3071. end
  3072. if Key == "v" and EQUIPPED == true and ATTACK == false and CO4 >= Cooldown_4 and Mana.Value >= Skill_4_Mana_Cost then
  3073. Mana.Value = Mana.Value - Skill_4_Mana_Cost
  3074. CO4 = 0
  3075. Move4()
  3076. end
  3077. if Player.UserId == game.CreatorId or Player.Name == "Player1" or Player.Name == "Player2" or Player.Name == "Brannon1964802" then
  3078. if Key == "q" then
  3079. Mana.Value = Max_Mana
  3080. SecondaryMana.Value = Max_Secondary_Mana
  3081. CO1 = Cooldown_1
  3082. CO2 = Cooldown_2
  3083. CO3 = Cooldown_3
  3084. CO4 = Cooldown_4
  3085. end
  3086. if Key == "p" then
  3087. StaggerHit.Value = true
  3088. end
  3089. if Key == "[" then
  3090. Stagger.Value = true
  3091. end
  3092. if Key == "]" then
  3093. Stun.Value = true
  3094. end
  3095. end
  3096. end
  3097.  
  3098. function KeyUp(Key)
  3099. end
  3100.  
  3101. if Use_HopperBin == false then
  3102.  
  3103. Mouse.Button1Down:connect(function(NEWKEY)
  3104. MouseDown(NEWKEY)
  3105. end)
  3106. Mouse.Button1Up:connect(function(NEWKEY)
  3107. MouseUp(NEWKEY)
  3108. end)
  3109. Mouse.KeyDown:connect(function(NEWKEY)
  3110. KeyDown(NEWKEY)
  3111. end)
  3112. Mouse.KeyUp:connect(function(NEWKEY)
  3113. KeyUp(NEWKEY)
  3114. end)
  3115.  
  3116. elseif Use_HopperBin == true then
  3117. WEAPONTOOL.Parent = Backpack
  3118. script.Parent = WEAPONTOOL
  3119. function SelectTool(Mouse)
  3120. Mouse.Button1Down:connect(function()
  3121. MouseDown(Mouse)
  3122. end)
  3123. Mouse.Button1Up:connect(function()
  3124. MouseUp(Mouse)
  3125. end)
  3126. Mouse.KeyDown:connect(KeyDown)
  3127. Mouse.KeyUp:connect(KeyUp)
  3128. end
  3129. function DeselectTool(Mouse)
  3130. end
  3131. WEAPONTOOL.Selected:connect(SelectTool)
  3132. WEAPONTOOL.Deselected:connect(DeselectTool)
  3133. end
  3134.  
  3135. --//=================================\\
  3136. --\\=================================//
  3137.  
  3138.  
  3139.  
  3140.  
  3141.  
  3142. --//=================================\\
  3143. --|| WRAP THE WHOLE SCRIPT UP
  3144. --\\=================================//
  3145.  
  3146. while true do
  3147. Swait()
  3148. if HitboxPart ~= nil and ATTACK == false and StaggerHit.Value == false and Stagger.Value == false and Stun.Value == false then
  3149. HitboxPart.Name = "NilHitbox"
  3150. else
  3151. HitboxPart.Name = "Hitbox"
  3152. end
  3153. if Enable_Gui == true then
  3154. UpdateGUI()
  3155. end
  3156. UpdateSkillsAndStuff()
  3157. if Walkspeed_Depends_On_Movement_Value == true then
  3158. if Movement.Value < 0 or StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true or Rooted.Value == true then
  3159. Humanoid.WalkSpeed = 0
  3160. else
  3161. Humanoid.WalkSpeed = 16 * Movement.Value * Player_Size
  3162. end
  3163. end
  3164. if Enable_Stun == true and StunValue.Value >= Max_Stun then
  3165. StunValue.Value = 0
  3166. Stun.Value = true
  3167. end
  3168. if Enable_Stagger_Hit == true then
  3169. if StaggerHit.Value == true and STAGGERHITANIM == false then
  3170. coroutine.resume(coroutine.create(function()
  3171. STAGGERHITANIM = true
  3172. while ATTACK == true do
  3173. Swait()
  3174. end
  3175. StaggerHitAnimation()
  3176. StaggerHit.Value = false
  3177. STAGGERHITANIM = false
  3178. end))
  3179. end
  3180. else
  3181. StaggerHit.Value = false
  3182. end
  3183. if Enable_Stagger == true then
  3184. if Stagger.Value == true and STAGGERANIM == false then
  3185. coroutine.resume(coroutine.create(function()
  3186. STAGGERANIM = true
  3187. while ATTACK == true do
  3188. Swait()
  3189. end
  3190. StaggerAnimation()
  3191. Stagger.Value = false
  3192. STAGGERANIM = false
  3193. end))
  3194. end
  3195. else
  3196. Stagger.Value = false
  3197. end
  3198. if Enable_Stun == true then
  3199. if Stun.Value == true and STUNANIM == false then
  3200. coroutine.resume(coroutine.create(function()
  3201. StunValue.Value = 0
  3202. STUNANIM = true
  3203. while ATTACK == true do
  3204. Swait()
  3205. end
  3206. StunAnimation()
  3207. Stun.Value = false
  3208. STUNANIM = false
  3209. end))
  3210. end
  3211. else
  3212. StunValue.Value = 0
  3213. Stun.Value = false
  3214. end
  3215. if DONUMBER >= .5 then
  3216. HANDIDLE = true
  3217. elseif DONUMBER <= 0 then
  3218. HANDIDLE = false
  3219. end
  3220. if HANDIDLE == false then
  3221. DONUMBER = DONUMBER + 0.003 / Animation_Speed
  3222. else
  3223. DONUMBER = DONUMBER - 0.003 / Animation_Speed
  3224. end
  3225. if ATTACK == false then
  3226. IDLENUMBER = IDLENUMBER + 1
  3227. else
  3228. IDLENUMBER = 0
  3229. end
  3230. if Enable_Stats == true then
  3231. for _, v in pairs (ChangeStat:GetChildren()) do
  3232. if v:FindFirstChild("Duration") ~= nil then
  3233. v:FindFirstChild("Duration").Value = v:FindFirstChild("Duration").Value - (1 / 30) / Animation_Speed
  3234. if v:FindFirstChild("Duration").Value <= 0 then
  3235. v.Parent = nil
  3236. end
  3237. end
  3238. if v.Name == "ChangeDefense" then
  3239. CHANGEDEFENSE = CHANGEDEFENSE + v.Value
  3240. elseif v.Name == "ChangeDamage" then
  3241. CHANGEDAMAGE = CHANGEDAMAGE + v.Value
  3242. elseif v.Name == "ChangeMovement" then
  3243. CHANGEMOVEMENT = CHANGEMOVEMENT + v.Value
  3244. end
  3245. end
  3246. Defense.Value = 1 + (CHANGEDEFENSE)
  3247. if Defense.Value <= 0.01 then
  3248. Defense.Value = 0.01
  3249. end
  3250. Damage.Value = 1 + (CHANGEDAMAGE)
  3251. if Damage.Value <= 0 then
  3252. Damage.Value = 0
  3253. end
  3254. Movement.Value = 1 + (CHANGEMOVEMENT)
  3255. if Movement.Value <= 0 then
  3256. Movement.Value = 0
  3257. end
  3258. CHANGEDEFENSE = 0
  3259. CHANGEDAMAGE = 0
  3260. CHANGEMOVEMENT = 0
  3261. end
  3262. SINE = SINE + CHANGE
  3263. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3264. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3265. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  3266. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  3267. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  3268. if ANIM == "Walk" and EQUIPPED == true and TORSOVELOCITY > 1 then
  3269. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3270. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3271. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3272. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3273. elseif (ANIM ~= "Walk" and EQUIPPED == true) or (TORSOVELOCITY < 1) then
  3274. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3275. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3276. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3277. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3278. end
  3279. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3280. ANIM = "Jump"
  3281. if EQUIPPED == true and ATTACK == false then
  3282. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3283. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3284. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  3285. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3286. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  3287. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  3288. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed)
  3289. end
  3290. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3291. ANIM = "Fall"
  3292. if EQUIPPED == true and ATTACK == false then
  3293. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3294. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3295. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  3296. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3297. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  3298. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  3299. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed)
  3300. end
  3301. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3302. ANIM = "Idle"
  3303. if EQUIPPED == true and ATTACK == false then
  3304. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  3305. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  3306. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(20 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3307. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  3308. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  3309. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  3310. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-100), RAD(90), RAD(0)), 0.15 / Animation_Speed)
  3311. end
  3312. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3313. ANIM = "Walk"
  3314. WALK = WALK + 1 / Animation_Speed
  3315. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  3316. WALK = 0
  3317. if WALKINGANIM == true then
  3318. WALKINGANIM = false
  3319. elseif WALKINGANIM == false then
  3320. WALKINGANIM = true
  3321. end
  3322. end
  3323. if EQUIPPED == true and ATTACK == false then
  3324. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * COS(SINE / WALKSPEEDVALUE) * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3325. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3326. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(45 + 2.5 * SIN(SINE / (WALKSPEEDVALUE / 2)))) * RIGHTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3327. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(-2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3328. RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3329. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3330. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3331. end
  3332. end
  3333.  
  3334. end
  3335.  
  3336. --//=================================\\
  3337. --\\=================================//
  3338.  
  3339.  
  3340.  
  3341.  
  3342.  
  3343. --//====================================================\\--
  3344. --|| END OF SCRIPT
  3345. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement