Advertisement
Cute_Sylveon

Untitled

May 18th, 2018
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 70.96 KB | None | 0 0
  1.  
  2. wait(0.3)
  3.  
  4. local Player = game.Players.localPlayer
  5. local Character = Player.Character
  6. local Humanoid = Character.Humanoid
  7. local LeftArm = Character["Left Arm"]
  8. local RightArm = Character["Right Arm"]
  9. local LeftLeg = Character["Left Leg"]
  10. local RightLeg = Character["Right Leg"]
  11. local Head = Character.Head
  12. local Torso = Character.Torso
  13. local RootPart = Character.HumanoidRootPart
  14. local RootJoint = RootPart.RootJoint
  15. local txt = Instance.new("BillboardGui", Character)
  16. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  17. local velocity = RootPart.Velocity.y
  18. CV = "Maroon"
  19. Player = game.Players.LocalPlayer
  20. char = Player.Character
  21. local txt = Instance.new("BillboardGui", Character)
  22. txt.Adornee = Character.Head
  23. txt.Name = "_status"
  24. txt.Size = UDim2.new(2, 0, 1.2, 0)
  25. txt.StudsOffset = Vector3.new(-9, 8, 0)
  26. local text = Instance.new("TextLabel", txt)
  27. text.Size = UDim2.new(10, 0, 7, 0)
  28. text.FontSize = "Size24"
  29. text.TextScaled = true
  30. text.TextTransparency = 0
  31. text.BackgroundTransparency = 1
  32. text.TextTransparency = 0
  33. text.TextStrokeTransparency = 1
  34. text.Font = "Cartoon"
  35. v = Instance.new("Part")
  36. v.Name = "ColorBrick"
  37. v.Parent = Player.Character
  38. v.FormFactor = "Symmetric"
  39. v.Anchored = true
  40. v.CanCollide = false
  41. v.BottomSurface = "Smooth"
  42. v.TopSurface = "Smooth"
  43. v.Size = Vector3.new(10, 5, 3)
  44. v.Transparency = 1
  45. v.CFrame = Character.Torso.CFrame
  46. v.BrickColor = BrickColor.new(CV)
  47. v.Transparency = 1
  48. touchCounter = 0
  49. local cR=255
  50. local cG=0
  51. local cB=0
  52. local flg5=1 local omgidk=1
  53. local add=15
  54. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  55. if omgidk>10000 then omgidk=0 end
  56. omgidk=omgidk+1
  57. if cR>=255 then flg5=1 end
  58. if cG>=255 then flg5=2 end
  59. if cB>=255 then flg5=3 end
  60. if flg5==1 then cR=cR-add cG=cG+add end
  61. if flg5==2 then cG=cG-add cB=cB+add end
  62. if flg5==3 then cB=cB-add cR=cR+add end
  63. color=Color3.fromRGB(cR,cG,cB)
  64. text.TextColor3 = color
  65. end)
  66. v.Shape = "Block"
  67. text.Text = "Rainbow Gloves"
  68. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  69. for _, c in pairs(workspace:children()) do
  70. local hum = c:findFirstChild("Humanoid")
  71. if hum ~= nil then
  72. local head = hit
  73. if head ~= nil then
  74. local targ = head.Position - Part.Position
  75. local mag = targ.magnitude
  76. if Magnitude >= mag and c.Name ~= Player.Name then
  77. CFuncs.Sound.Create("324867021", head, 1, 1)
  78. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0.1, HitSound, HitPitch)
  79. end
  80. end
  81. end
  82. end
  83. end
  84.  
  85. Parts={}
  86. function GetDiscoColor(hue)
  87. local section = hue % 1 * 3
  88. local secondary = 0.5 * math.pi * (section % 1)
  89. if section < 1 then
  90. return Vector3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  91. elseif section < 2 then
  92. return Vector3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  93. else
  94. return Vector3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  95. end
  96. end
  97. Part = function(x,y,z,color,tr,cc,an,parent)
  98. local p = Instance.new('Part',parent or Weapon)
  99. p.formFactor = 'Custom'
  100. p.Size = Vector3.new(x,y,z)
  101. p.BrickColor = BrickColor.new(color)
  102. p.CanCollide = cc
  103. p.Transparency = tr
  104. p.Anchored = an
  105. p.TopSurface,p.BottomSurface = 0,0
  106. p:BreakJoints''
  107. table.insert(Parts,p)
  108. return p
  109. end
  110. Weld = function(p0,p1)
  111. local w = Instance.new('Motor',p0)
  112. w.Part0 = p0
  113. w.Part1 = p1
  114. return w
  115. end
  116. Mesh = function(par,num,x,y,z)
  117. local msh = 0
  118. if num == 1 then
  119. msh = Instance.new("SpecialMesh",par)
  120. msh.MeshId='rbxasset://fonts/torso.mesh'
  121. msh.TextureId='rbxasset://25701026'
  122. end
  123. if num == 2 then
  124. msh = Instance.new("SpecialMesh",par)
  125. msh.MeshId='rbxasset://fonts/head.mesh'
  126. msh.TextureId='rbxassetid://25701026'
  127. end
  128. msh.Scale = Vector3.new(x,y,z)
  129. return msh
  130. end
  131. plr=Game.Players.LocalPlayer
  132. char=plr.Character
  133. for _,v in pairs(char:GetChildren()) do
  134. if v.ClassName=="Part" then
  135. v.Transparency=1
  136. elseif v.ClassName=="Hat" then
  137. v.Handle.Mesh.TextureId='rbxassetid://25701026'
  138. table.insert(Parts,v.Handle)
  139. end
  140. end
  141. t=Part(1,1,1,'',0,false,false,char)
  142. Mesh(t,1,1,1,1)
  143. Weld(char.Torso,t)
  144. a=Part(1,1,1,'',0,false,false,char)
  145. Mesh(a,1,.5,1,1)
  146. Weld(char['Right Arm'],a)
  147. a=Part(1,1,1,'',0,false,false,char)
  148. Mesh(a,1,.5,1,1)
  149. Weld(char['Left Arm'],a)
  150. l=Part(1,1,1,'',0,false,false,char)
  151. Mesh(l,1,.5,1,1)
  152. Weld(char['Right Leg'],l)
  153. l=Part(1,1,1,'',0,false,false,char)
  154. Mesh(l,1,.5,1,1)
  155. Weld(char['Left Leg'],l)
  156. h=Part(1,1,1,'',0,false,false,char)
  157. Mesh(h,2,1,1,1)
  158. Weld(char.Head,h)
  159. Spawn(function()
  160. while(coroutine.yield())do
  161. for i=1,#Parts do
  162. Parts[i].Mesh.VertexColor=GetDiscoColor(tick()*.8)--vertex 4 lyfe
  163. end
  164. end;
  165. end);
  166.  
  167. char.Head.face:Destroy()
  168.  
  169. for i,v in pairs(char:GetChildren()) do
  170. if v.ClassName == "Accessory" then
  171. v:Remove()
  172. elseif v.ClassName == "Shirt" then
  173. v:Remove()
  174. elseif v.ClassName == "Pants" then
  175. v:Remove()
  176. elseif v.ClassName == "ShirtGraphic" then
  177. v:Remove()
  178. end
  179. end
  180.  
  181. wait(0.3)
  182.  
  183. Player = game:GetService("Players").LocalPlayer
  184. PlayerGui = Player.PlayerGui
  185. Cam = workspace.CurrentCamera
  186. Backpack = Player.Backpack
  187. Character = Player.Character
  188. Humanoid = Character.Humanoid
  189. Mouse = Player:GetMouse()
  190. RootPart = Character["HumanoidRootPart"]
  191. Torso = Character["Torso"]
  192. Head = Character["Head"]
  193. RightArm = Character["Right Arm"]
  194. LeftArm = Character["Left Arm"]
  195. RightLeg = Character["Right Leg"]
  196. LeftLeg = Character["Left Leg"]
  197. RootJoint = RootPart["RootJoint"]
  198. Neck = Torso["Neck"]
  199. RightShoulder = Torso["Right Shoulder"]
  200. LeftShoulder = Torso["Left Shoulder"]
  201. RightHip = Torso["Right Hip"]
  202. LeftHip = Torso["Left Hip"]
  203. local sick = Instance.new("Sound",Character)
  204. sick.SoundId = "rbxassetid://405975616"
  205. sick.Looped = true
  206. sick.Pitch = 1
  207. sick.Volume = 10
  208. sick:Play()
  209.  
  210. IT = Instance.new
  211. CF = CFrame.new
  212. VT = Vector3.new
  213. RAD = math.rad
  214. C3 = Color3.new
  215. UD2 = UDim2.new
  216. BRICKC = BrickColor.new
  217. ANGLES = CFrame.Angles
  218. EULER = CFrame.fromEulerAnglesXYZ
  219. COS = math.cos
  220. ACOS = math.acos
  221. SIN = math.sin
  222. ASIN = math.asin
  223. ABS = math.abs
  224. MRANDOM = math.random
  225. FLOOR = math.floor
  226.  
  227. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  228. local NEWMESH = IT(MESH)
  229. if MESH == "SpecialMesh" then
  230. NEWMESH.MeshType = MESHTYPE
  231. if MESHID ~= "nil" and MESHID ~= "" then
  232. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  233. end
  234. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  235. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  236. end
  237. end
  238. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  239. NEWMESH.Scale = SCALE
  240. NEWMESH.Parent = PARENT
  241. return NEWMESH
  242. end
  243.  
  244. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  245. local NEWPART = IT("Part")
  246. NEWPART.formFactor = FORMFACTOR
  247. NEWPART.Reflectance = REFLECTANCE
  248. NEWPART.Transparency = TRANSPARENCY
  249. NEWPART.CanCollide = false
  250. NEWPART.Locked = true
  251. NEWPART.Anchored = true
  252. if ANCHOR == false then
  253. NEWPART.Anchored = false
  254. end
  255. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  256. NEWPART.Name = NAME
  257. NEWPART.Size = SIZE
  258. NEWPART.Position = Torso.Position
  259. NEWPART.Material = MATERIAL
  260. NEWPART:BreakJoints()
  261. NEWPART.Parent = PARENT
  262. return NEWPART
  263. end
  264.  
  265.  
  266. function CreatePart1(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, NAME, SIZE, ANCHOR)
  267. local NEWPART = IT("Part")
  268. NEWPART.formFactor = FORMFACTOR
  269. NEWPART.Reflectance = REFLECTANCE
  270. NEWPART.Transparency = TRANSPARENCY
  271. NEWPART.CanCollide = false
  272. NEWPART.Locked = true
  273. NEWPART.Anchored = true
  274. if ANCHOR == false then
  275. NEWPART.Anchored = false
  276. end
  277. NEWPART.Name = NAME
  278. NEWPART.Size = SIZE
  279. NEWPART.Position = Torso.Position
  280. NEWPART.Material = MATERIAL
  281. NEWPART:BreakJoints()
  282. NEWPART.Parent = PARENT
  283. return NEWPART
  284. end
  285.  
  286. --//=================================\\
  287. --|| CUSTOMIZATION
  288. --\\=================================//
  289.  
  290. Player_Size = 1 --Size of the player.
  291. Animation_Speed = 5
  292. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  293.  
  294. local Speed = 100
  295. local Effects2 = {}
  296.  
  297. local Rainbow = { --This is the main color set. Try to use more than just a few, make it fade in order as well
  298. "Crimson",
  299. "Bright red",
  300. "Neon orange",
  301. "Deep orange",
  302. "Bright yellow",
  303. "New Yeller",
  304. "Br. yellowish green",
  305. "Lime green",
  306. "Sea green",
  307. "Bright bluish green",
  308. "Bright blue",
  309. "Lavender",
  310. "Royal purple",
  311. "Eggplant",
  312. "Hot pink"
  313. }
  314.  
  315. --//=================================\\
  316. --|| END OF CUSTOMIZATION
  317. --\\=================================//
  318.  
  319. local function weldBetween(a, b)
  320. local weldd = Instance.new("ManualWeld")
  321. weldd.Part0 = a
  322. weldd.Part1 = b
  323. weldd.C0 = CFrame.new()
  324. weldd.C1 = b.CFrame:inverse() * a.CFrame
  325. weldd.Parent = a
  326. return weldd
  327. end
  328.  
  329. --//=================================\\
  330. --|| USEFUL VALUES
  331. --\\=================================//
  332.  
  333. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  334. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  335. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  336. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  337. local CHANGEDEFENSE = 0
  338. local CHANGEDAMAGE = 0
  339. local CHANGEMOVEMENT = 0
  340. local ANIM = "Idle"
  341. local ATTACK = false
  342. local EQUIPPED = false
  343. local HOLD = false
  344. local COMBO = 1
  345. local Rooted = false
  346. local SINE = 0
  347. local KEYHOLD = false
  348. local CHANGE = 2 / Animation_Speed
  349. local WALKINGANIM = false
  350. local WALK = 0
  351. local VALUE1 = false
  352. local VALUE2 = false
  353. local ROBLOXIDLEANIMATION = IT("Animation")
  354. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  355. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  356. --ROBLOXIDLEANIMATION.Parent = Humanoid
  357. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  358. WEAPONGUI.Name = "Weapon GUI"
  359. local Weapon = IT("Model")
  360. Weapon.Name = "Adds"
  361. local HITFLOOR = nil
  362. local Effects = IT("Folder", Weapon)
  363. Effects.Name = "Effects"
  364. local ANIMATOR = Humanoid.Animator
  365. local ANIMATE = Character.Animate
  366. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  367. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  368. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  369. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  370. local UNANCHOR = true
  371.  
  372. rainbowNumber = 1
  373.  
  374. local SKILLTEXTCOLOR = BrickColor.new(Rainbow[rainbowNumber]).Color
  375.  
  376. --//=================================\\
  377. --\\=================================//
  378.  
  379.  
  380.  
  381.  
  382. --//=================================\\
  383. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  384. --\\=================================//
  385.  
  386. ArtificialHB = Instance.new("BindableEvent", script)
  387. ArtificialHB.Name = "ArtificialHB"
  388.  
  389. script:WaitForChild("ArtificialHB")
  390.  
  391. frame = Frame_Speed
  392. tf = 0
  393. allowframeloss = false
  394. tossremainder = false
  395. lastframe = tick()
  396. script.ArtificialHB:Fire()
  397.  
  398. game:GetService("RunService").Heartbeat:connect(function(s, p)
  399. tf = tf + s
  400. if tf >= frame then
  401. if allowframeloss then
  402. script.ArtificialHB:Fire()
  403. lastframe = tick()
  404. else
  405. for i = 1, math.floor(tf / frame) do
  406. script.ArtificialHB:Fire()
  407. end
  408. lastframe = tick()
  409. end
  410. if tossremainder then
  411. tf = 0
  412. else
  413. tf = tf - frame * math.floor(tf / frame)
  414. end
  415. end
  416. end)
  417.  
  418. --//=================================\\
  419. --\\=================================//
  420.  
  421.  
  422.  
  423. --//=================================\\
  424. --|| SOME FUNCTIONS
  425. --\\=================================//
  426.  
  427. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  428. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  429. end
  430.  
  431. function PositiveAngle(NUMBER)
  432. if NUMBER >= 0 then
  433. NUMBER = 0
  434. end
  435. return NUMBER
  436. end
  437.  
  438. function NegativeAngle(NUMBER)
  439. if NUMBER <= 0 then
  440. NUMBER = 0
  441. end
  442. return NUMBER
  443. end
  444.  
  445. function Swait(NUMBER)
  446. if NUMBER == 0 or NUMBER == nil then
  447. ArtificialHB.Event:wait()
  448. else
  449. for i = 1, NUMBER do
  450. ArtificialHB.Event:wait()
  451. end
  452. end
  453. end
  454.  
  455. function QuaternionFromCFrame(cf)
  456. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  457. local trace = m00 + m11 + m22
  458. if trace > 0 then
  459. local s = math.sqrt(1 + trace)
  460. local recip = 0.5 / s
  461. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  462. else
  463. local i = 0
  464. if m11 > m00 then
  465. i = 1
  466. end
  467. if m22 > (i == 0 and m00 or m11) then
  468. i = 2
  469. end
  470. if i == 0 then
  471. local s = math.sqrt(m00 - m11 - m22 + 1)
  472. local recip = 0.5 / s
  473. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  474. elseif i == 1 then
  475. local s = math.sqrt(m11 - m22 - m00 + 1)
  476. local recip = 0.5 / s
  477. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  478. elseif i == 2 then
  479. local s = math.sqrt(m22 - m00 - m11 + 1)
  480. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  481. end
  482. end
  483. end
  484.  
  485. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  486. local xs, ys, zs = x + x, y + y, z + z
  487. local wx, wy, wz = w * xs, w * ys, w * zs
  488. local xx = x * xs
  489. local xy = x * ys
  490. local xz = x * zs
  491. local yy = y * ys
  492. local yz = y * zs
  493. local zz = z * zs
  494. 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))
  495. end
  496.  
  497. function QuaternionSlerp(a, b, t)
  498. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  499. local startInterp, finishInterp;
  500. if cosTheta >= 0.0001 then
  501. if (1 - cosTheta) > 0.0001 then
  502. local theta = ACOS(cosTheta)
  503. local invSinTheta = 1 / SIN(theta)
  504. startInterp = SIN((1 - t) * theta) * invSinTheta
  505. finishInterp = SIN(t * theta) * invSinTheta
  506. else
  507. startInterp = 1 - t
  508. finishInterp = t
  509. end
  510. else
  511. if (1 + cosTheta) > 0.0001 then
  512. local theta = ACOS(-cosTheta)
  513. local invSinTheta = 1 / SIN(theta)
  514. startInterp = SIN((t - 1) * theta) * invSinTheta
  515. finishInterp = SIN(t * theta) * invSinTheta
  516. else
  517. startInterp = t - 1
  518. finishInterp = t
  519. end
  520. end
  521. 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
  522. end
  523.  
  524. function Clerp(a, b, t)
  525. local qa = {QuaternionFromCFrame(a)}
  526. local qb = {QuaternionFromCFrame(b)}
  527. local ax, ay, az = a.x, a.y, a.z
  528. local bx, by, bz = b.x, b.y, b.z
  529. local _t = 1 - t
  530. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  531. end
  532.  
  533. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  534. local frame = IT("Frame")
  535. frame.BackgroundTransparency = TRANSPARENCY
  536. frame.BorderSizePixel = BORDERSIZEPIXEL
  537. frame.Position = POSITION
  538. frame.Size = SIZE
  539. frame.BackgroundColor3 = COLOR
  540. frame.BorderColor3 = BORDERCOLOR
  541. frame.Name = NAME
  542. frame.Parent = PARENT
  543. return frame
  544. end
  545.  
  546. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  547. local label = IT("TextLabel")
  548. label.BackgroundTransparency = 1
  549. label.Size = UD2(1, 0, 1, 0)
  550. label.Position = UD2(0, 0, 0, 0)
  551. label.TextColor3 = TEXTCOLOR
  552. label.TextStrokeTransparency = STROKETRANSPARENCY
  553. label.TextTransparency = TRANSPARENCY
  554. label.FontSize = TEXTFONTSIZE
  555. label.Font = TEXTFONT
  556. label.BorderSizePixel = BORDERSIZEPIXEL
  557. label.TextScaled = false
  558. label.Text = TEXT
  559. label.Name = NAME
  560. label.Parent = PARENT
  561. return label
  562. end
  563.  
  564. function NoOutlines(PART)
  565. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  566. end
  567.  
  568.  
  569. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  570. local NEWWELD = IT(TYPE)
  571. NEWWELD.Part0 = PART0
  572. NEWWELD.Part1 = PART1
  573. NEWWELD.C0 = C0
  574. NEWWELD.C1 = C1
  575. NEWWELD.Parent = PARENT
  576. return NEWWELD
  577. end
  578.  
  579. function CreateSound(ID, PARENT, VOLUME, PITCH)
  580. local NEWSOUND = nil
  581. coroutine.resume(coroutine.create(function()
  582. NEWSOUND = IT("Sound", PARENT)
  583. NEWSOUND.Volume = VOLUME
  584. NEWSOUND.Pitch = PITCH
  585. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  586. Swait()
  587. NEWSOUND:play()
  588. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  589. end))
  590. return NEWSOUND
  591. end
  592.  
  593. function CFrameFromTopBack(at, top, back)
  594. local right = top:Cross(back)
  595. 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)
  596. end
  597.  
  598. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  599. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Maroon"), "Effect", VT(0,0,0))
  600. local mesh = IT("SpecialMesh",wave)
  601. mesh.MeshType = "FileMesh"
  602. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  603. mesh.Scale = SIZE
  604. mesh.Offset = VT(0,0,-SIZE.X/8)
  605. wave.CFrame = CFRAME
  606. coroutine.resume(coroutine.create(function(PART)
  607. for i = 1, WAIT do
  608. Swait()
  609. mesh.Scale = mesh.Scale + GROW
  610. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  611. if DOESROT == true then
  612. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  613. end
  614. wave.Transparency = wave.Transparency + (0.5/WAIT)
  615. if wave.Transparency > 0.99 then
  616. wave:remove()
  617. end
  618. end
  619. end))
  620. end
  621.  
  622. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  623. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Maroon"), "Effect", VT(0,0,0))
  624. local mesh = IT("SpecialMesh",wave)
  625. mesh.MeshType = "FileMesh"
  626. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  627. mesh.Scale = SIZE
  628. --mesh.Offset = VT(0,0,-SIZE.X/8)
  629. wave.CFrame = CFRAME
  630. coroutine.resume(coroutine.create(function(PART)
  631. for i = 1, WAIT do
  632. Swait()
  633. mesh.Scale = mesh.Scale + GROW
  634. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  635. if DOESROT == true then
  636. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  637. end
  638. wave.Transparency = wave.Transparency + (0.5/WAIT)
  639. if wave.Transparency > 0.99 then
  640. wave:remove()
  641. end
  642. end
  643. end))
  644. end
  645.  
  646. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  647. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Maroon"), "Effect", VT(0,0,0))
  648. local mesh = IT("SpecialMesh",wave)
  649. mesh.MeshType = "FileMesh"
  650. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  651. mesh.Scale = SIZE
  652. wave.CFrame = CFRAME
  653. coroutine.resume(coroutine.create(function(PART)
  654. for i = 1, WAIT do
  655. Swait()
  656. mesh.Scale = mesh.Scale + GROW
  657. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  658. if DOESROT == true then
  659. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  660. end
  661. wave.Transparency = wave.Transparency + (0.5/WAIT)
  662. if wave.Transparency > 0.99 then
  663. wave:remove()
  664. end
  665. end
  666. end))
  667. end
  668.  
  669.  
  670. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  671. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Maroon"), "Effect", VT(1,1,1), true)
  672. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  673. wave.CFrame = CFRAME
  674. coroutine.resume(coroutine.create(function(PART)
  675. for i = 1, WAIT do
  676. Swait()
  677. mesh.Scale = mesh.Scale * GROW
  678. wave.Transparency = wave.Transparency + (0.5/WAIT)
  679. if wave.Transparency > 0.99 then
  680. wave:remove()
  681. end
  682. end
  683. end))
  684. end
  685.  
  686. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  687. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Maroon"), "Effect", VT(1,1,1), true)
  688. local mesh = IT("SpecialMesh",wave)
  689. mesh.MeshType = "Sphere"
  690. mesh.Scale = SIZE
  691. mesh.Offset = VT(0,0,0)
  692. wave.CFrame = CFRAME
  693. coroutine.resume(coroutine.create(function(PART)
  694. for i = 1, WAIT do
  695. Swait()
  696. mesh.Scale = mesh.Scale + GROW
  697. wave.Transparency = wave.Transparency + (1/WAIT)
  698. if wave.Transparency > 0.99 then
  699. wave:remove()
  700. end
  701. end
  702. end))
  703. end
  704.  
  705. function MakeForm(PART,TYPE)
  706. if TYPE == "Cyl" then
  707. local MSH = IT("CylinderMesh",PART)
  708. elseif TYPE == "Ball" then
  709. local MSH = IT("SpecialMesh",PART)
  710. MSH.MeshType = "Sphere"
  711. elseif TYPE == "Wedge" then
  712. local MSH = IT("SpecialMesh",PART)
  713. MSH.MeshType = "Wedge"
  714. end
  715. end
  716.  
  717. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  718. if FLOOR ~= nil then
  719. coroutine.resume(coroutine.create(function()
  720. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  721. PART.CFrame = CF(POSITION)
  722. for i = 1, 45 do
  723. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  724. RingPiece.Material = FLOOR.Material
  725. RingPiece.Color = FLOOR.Color
  726. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  727. Debris:AddItem(RingPiece,SWAIT/100)
  728. end
  729. PART:remove()
  730. end))
  731. end
  732. end
  733.  
  734. function CheckTableForString(Table, String)
  735. for i, v in pairs(Table) do
  736. if string.find(string.lower(String), string.lower(v)) then
  737. return true
  738. end
  739. end
  740. return false
  741. end
  742.  
  743. function CheckIntangible(Hit)
  744. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  745. if Hit and Hit.Parent then
  746. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  747. return true
  748. end
  749. end
  750. return false
  751. end
  752.  
  753. Debris = game:GetService("Debris")
  754.  
  755. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  756. local Direction = CFrame.new(StartPos, Vec).lookVector
  757. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  758. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  759. if RayHit and CheckIntangible(RayHit) then
  760. if DelayIfHit then
  761. wait()
  762. end
  763. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  764. end
  765. return RayHit, RayPos, RayNormal
  766. end
  767.  
  768. function turnto(position)
  769. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  770. end
  771.  
  772. --//=================================\\
  773. --|| WEAPON CREATION
  774. --\\=================================//
  775. local FIST = CreatePart1(3, Weapon, "Neon", 0, 0, "Neon Gauntlet Part1", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false)
  776. Light = Instance.new("PointLight",FIST)
  777. Light.Brightness = 0.85
  778. touchCounter = 0
  779. local cR=255
  780. local cG=0
  781. local cB=0
  782. local flg5=1 local omgidk=1
  783. local add=7.5
  784. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  785. if omgidk>10000 then omgidk=0 end
  786. omgidk=omgidk+1
  787. if cR>=255 then flg5=1 end
  788. if cG>=255 then flg5=2 end
  789. if cB>=255 then flg5=3 end
  790. if flg5==1 then cR=cR-add cG=cG+add end
  791. if flg5==2 then cG=cG-add cB=cB+add end
  792. if flg5==3 then cB=cB-add cR=cR+add end
  793. color=Color3.fromRGB(cR,cG,cB)
  794. Light.Color = color
  795. end)
  796. local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  797. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false)
  798. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  799.  
  800. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  801. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  802. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  803. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  804. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  805. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  806. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  807. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  808.  
  809. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false)
  810. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  811. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Maroon", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false)
  812. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.05 * Player_Size, -0.375 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  813. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  814. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  815. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  816. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  817. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  818. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, -0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  819. touchCounter = 0
  820. local cR=255
  821. local cG=0
  822. local cB=0
  823. local flg5=1 local omgidk=1
  824. local add=7.5
  825. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  826. if omgidk>10000 then omgidk=0 end
  827. omgidk=omgidk+1
  828. if cR>=255 then flg5=1 end
  829. if cG>=255 then flg5=2 end
  830. if cB>=255 then flg5=3 end
  831. if flg5==1 then cR=cR-add cG=cG+add end
  832. if flg5==2 then cG=cG-add cB=cB+add end
  833. if flg5==3 then cB=cB-add cR=cR+add end
  834. color=Color3.fromRGB(cR,cG,cB)
  835. local d = Weapon:FindFirstChild("Neon Gauntlet Part")
  836. if d then
  837. d.Color = color
  838. end
  839. local d = Weapon:FindFirstChild("Neon Gauntlet Part1")
  840. if d then
  841. d.Color = color
  842. end
  843. end)
  844. for _, c in pairs(Weapon:GetChildren()) do
  845. if c.ClassName == "Part" then
  846. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  847. end
  848. end
  849.  
  850. Weapon.Parent = Character
  851.  
  852. local BODY = {}
  853.  
  854. for _, c in pairs(Character:GetChildren()) do
  855. if c.ClassName == "Part" then
  856. table.insert(BODY,{c,Character})
  857. for _, q in pairs(c:GetChildren()) do
  858. if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then
  859. table.insert(BODY,{q,c})
  860. end
  861. end
  862. end
  863. end
  864.  
  865. function refit()
  866. Character.Parent = workspace
  867. for e = 1, #BODY do
  868. if BODY[e] ~= nil then
  869. local STUFF = BODY[e]
  870. local PART = STUFF[1]
  871. local PARENT = STUFF[2]
  872. PART.Parent = PARENT
  873. end
  874. end
  875. end
  876.  
  877. Humanoid.HealthChanged:connect(function()
  878. Humanoid.Parent = nil
  879. Humanoid.MaxHealth = "inf"
  880. Humanoid.Health = "inf"
  881. refit()
  882. Humanoid.Parent = Character
  883. end)
  884.  
  885. Humanoid.Died:connect(function()
  886. Humanoid.Parent = nil
  887. Humanoid.MaxHealth = "inf"
  888. Humanoid.Health = "inf"
  889. refit()
  890. Humanoid.Parent = Character
  891. end)
  892.  
  893. Humanoid.Died:connect(function()
  894. ATTACK = true
  895. end)
  896.  
  897. function onTouched(brick)
  898. local humn = brick.Parent:FindFirstChildOfClass("Humanoid")
  899. if humn then
  900. humn.Health = -1
  901. end
  902. end
  903.  
  904. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  905. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  906. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  907. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  908. local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.130, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  909. local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.130, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  910. local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.01, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
  911.  
  912. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[E] Ultra Punch", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
  913. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[F] Punish", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
  914. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Dash", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3")
  915. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[Q] Ultimate Punch", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4")
  916. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[G] R.I.P World", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text5")
  917. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[R] Destruction", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text6")
  918. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[T] Apocalypse", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text7")
  919.  
  920. --//=================================\\
  921. --|| DAMAGE FUNCTIONS
  922. --\\=================================//
  923.  
  924. function onTouched(Torso)
  925. local humn = brick.Parent:FindFirstChildOfClass("Humanoid")
  926. if humn then
  927. humn.Health = -1
  928. end
  929. end
  930.  
  931. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  932. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  933. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  934. local BODYGYRO = IT("BodyGyro", STATPART)
  935. local BODYPOSITION = IT("BodyPosition", STATPART)
  936. BODYPOSITION.P = 2000
  937. BODYPOSITION.D = 100
  938. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  939. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  940. game:GetService("Debris"):AddItem(STATPART ,5)
  941. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  942. BILLBOARDGUI.Adornee = STATPART
  943. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  944. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  945. BILLBOARDGUI.AlwaysOnTop = false
  946. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  947. TEXTLABEL.BackgroundTransparency = 1
  948. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  949. TEXTLABEL.Text = TEXT
  950. TEXTLABEL.Font = "SciFi"
  951. TEXTLABEL.FontSize="Size42"
  952. TEXTLABEL.TextColor3 = COLOR
  953. TEXTLABEL.TextStrokeTransparency = 1
  954. TEXTLABEL.TextScaled = true
  955. TEXTLABEL.TextWrapped = true
  956. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  957. if LABELTYPE == "Normal" then
  958. for i = 1, 30 do
  959. Swait()
  960. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  961. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  962. end
  963. elseif LABELTYPE == "Debuff" then
  964. for i = 1, 30 do
  965. Swait()
  966. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  967. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  968. end
  969. elseif LABELTYPE == "Shock" then
  970. local ORIGIN = STATPART.Position
  971. for i = 1, 30 do
  972. Swait()
  973. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  974. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  975. end
  976. end
  977. THEPART.Parent = nil
  978. end),STATPART, BODYPOSITION, TEXTLABEL)
  979. end
  980.  
  981. --//=================================\\
  982. --|| DAMAGING
  983. --\\=================================//
  984.  
  985. function killnearest(position,range,maxstrength,direction)
  986. for i,v in ipairs(workspace:GetChildren()) do
  987. local body = v:GetChildren()
  988. for part = 1, #body do
  989. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  990. if(body[part].Position - position).Magnitude < range then
  991. if v.ClassName == "Model" then
  992. --v:BreakJoints()
  993. end
  994. local POS = position
  995. coroutine.resume(coroutine.create(function()
  996. body[part].Anchored = true
  997. body[part].Parent = Effects
  998. body[part].CanCollide = true
  999. local SIZE = body[part].Size
  1000. body[part].Material = "Neon"
  1001. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  1002. for i = 1, 75 do
  1003. Swait()
  1004. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1005. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1006. end
  1007. coroutine.resume(coroutine.create(function()
  1008. while true do
  1009. Swait()
  1010. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1011. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1012. end
  1013. end))
  1014. body[part].Anchored = false
  1015. body[part].Velocity = direction.lookVector*maxstrength
  1016. end))
  1017. end
  1018. end
  1019. end
  1020. if v.ClassName == "Part" then
  1021. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1022. local POS = position
  1023. coroutine.resume(coroutine.create(function()
  1024. v.Anchored = true
  1025. v.Parent = Effects
  1026. local SIZE = v.Size
  1027. v.Material = "Neon"
  1028. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  1029. for i = 1, 75 do
  1030. Swait()
  1031. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1032. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1033. end
  1034. coroutine.resume(coroutine.create(function()
  1035. while true do
  1036. Swait()
  1037. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1038. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1039. end
  1040. end))
  1041. v.Anchored = false
  1042. v.Velocity = direction.lookVector*maxstrength
  1043. end))
  1044. end
  1045. end
  1046. end
  1047. end
  1048.  
  1049. --//=================================\\
  1050. --|| ATTACK FUNCTIONS AND STUFF
  1051. --\\=================================//
  1052.  
  1053. function AttackTemplate()
  1054. ATTACK = true
  1055. Rooted = false
  1056. for i=0, 1, 0.1 / Animation_Speed do
  1057. Swait()
  1058. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1059. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1060. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1061. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1062. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1063. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1064. end
  1065. ATTACK = false
  1066. Rooted = false
  1067. end
  1068.  
  1069. function UltraPunch()
  1070. ATTACK = true
  1071. Rooted = false
  1072. local SPEED = Speed
  1073. Speed = 8
  1074. CreateSound("214876666", RightArm, 7.5, 0.8)
  1075. for i=0, 0, 0.1 / Animation_Speed do
  1076. Swait()
  1077. turnto(Mouse.Hit.p)
  1078. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Maroon",VT(-1/15,-1/15,-1/15))
  1079. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Maroon",VT(-2/15,-2/15,-2/15))
  1080. 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(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  1081. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
  1082. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1083. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1084. 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.15 / Animation_Speed)
  1085. 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.15 / Animation_Speed)
  1086. end
  1087. for i=0, 0, 0.1 / Animation_Speed do
  1088. Swait()
  1089. turnto(Mouse.Hit.p)
  1090. 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(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  1091. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  1092. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1093. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1094. 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)), 1 / Animation_Speed)
  1095. 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)), 1 / Animation_Speed)
  1096. end
  1097. local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Maroon", "Punch", VT(50,50,50),false)
  1098. PART.CFrame = RootPart.CFrame * CF(0,0,-25)
  1099. PART.Shape = "Ball"
  1100. local bv = Instance.new("BodyVelocity")
  1101. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1102. bv.velocity = RootPart.CFrame.lookVector*600
  1103. bv.Parent = PART
  1104. bv.Name = "PROJECTILEVELOCITY"
  1105. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Maroon",VT(2.5,0.2,2.5))
  1106. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Maroon",VT(3,0.2,3))
  1107. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Maroon",VT(2,0.6,2))
  1108. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Maroon",VT(2.2,0.6,2.2))
  1109. CreateSound("414517163", Effects, 3.5, MRANDOM(7, 12) / 10)
  1110. coroutine.resume(coroutine.create(function()
  1111. for i = 1, 11 do
  1112. Swait()
  1113. PART.Transparency = PART.Transparency + 0.2/10
  1114. PART.Size = PART.Size + VT(5,5,5)
  1115. killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
  1116. end
  1117. PART:Destroy()
  1118. end))
  1119. for i=0, 0, 0.1 / Animation_Speed do
  1120. Swait()
  1121. 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(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  1122. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
  1123. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1124. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1125. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
  1126. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
  1127. end
  1128. Speed = SPEED
  1129. ATTACK = false
  1130. Rooted = false
  1131. end
  1132.  
  1133. function Punish()
  1134. Animation_Speed = 1
  1135. ATTACK = true
  1136. Rooted = false
  1137. local HASGRABBED = false
  1138. local WELD = nil
  1139. local TORS = nil
  1140. local hitting = FIST.Touched:connect(function(hit)
  1141. if hit.Parent:FindFirstChild("Humanoid") then
  1142. if hit.Parent.Humanoid.Health ~= 0 then
  1143. UNANCHOR = false
  1144. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1145. TORS.Anchored = true
  1146. TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0))
  1147. WELD = weldBetween(RightArm,TORS)
  1148. HASGRABBED = true
  1149. Rooted = true
  1150. end
  1151. end
  1152. end)
  1153. for i=0, 2, 0.1 / Animation_Speed do
  1154. Swait()
  1155. if HASGRABBED == true then
  1156. break
  1157. end
  1158. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed)
  1159. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed)
  1160. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1161. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1162. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1163. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1164. end
  1165. hitting:disconnect()
  1166. if HASGRABBED == true then
  1167. TORS.Anchored = false
  1168. RootPart.Anchored = true
  1169. for i=0, 1.6, 0.1 / Animation_Speed do
  1170. Swait()
  1171. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1172. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1173. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1174. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1175. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1176. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1177. end
  1178. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5))
  1179. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6))
  1180. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Maroon", "Sound", VT(0,0,0))
  1181. SOUNDPART.CFrame = RootPart.CFrame
  1182. Debris:AddItem(SOUNDPART,5)
  1183. CreateSound("357202073", SOUNDPART, 0, 1)
  1184. for i = 1, 16 do
  1185. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Pearl", 1 + MRANDOM(1,30)/15)
  1186. end
  1187. for i=0, 1.6, 0.1 / Animation_Speed do
  1188. Swait()
  1189. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1190. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1191. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1192. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1193. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1194. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1195. end
  1196. for i=0, 0.4, 0.1 / Animation_Speed do
  1197. Swait()
  1198. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed)
  1199. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1200. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1201. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1202. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1203. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1204. end
  1205. if HITFLOOR ~= nil then
  1206. CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85)
  1207. end
  1208. CreateSound("414517163", Effects, 3.5, MRANDOM(7, 12) / 10)
  1209. WELD:remove()
  1210. for i = 1, 26 do
  1211. Swait()
  1212. killnearest(RootPart.Position,45,100,Torso.CFrame)
  1213. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Pearl",VT(0.3,3,0.3))
  1214. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Maroon",VT(1,0.4,1))
  1215. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Maroon",VT(2.3,0.3,2.3))
  1216. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5)
  1217. Slice(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"Maroon", 1 + MRANDOM(1,30)/15)
  1218. end
  1219. end
  1220. UNANCHOR = true
  1221. ATTACK = false
  1222. Rooted = false
  1223. Animation_Speed = 8
  1224. end
  1225.  
  1226. function Dash()
  1227. local ORIGIN = RootPart.Position
  1228. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
  1229. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
  1230. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Maroon", "Sound", VT(0,0,0))
  1231. SOUNDPART.CFrame = RootPart.CFrame
  1232. Debris:AddItem(SOUNDPART,5)
  1233. CreateSound("357202032", SOUNDPART, 0, 1)
  1234. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z))
  1235. Swait()
  1236. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
  1237. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
  1238. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Maroon", "Sound", VT(0,0,0))
  1239. SOUNDPART.CFrame = RootPart.CFrame
  1240. Debris:AddItem(SOUNDPART,5)
  1241. CreateSound("1295446488", SOUNDPART, 2.5, 1)
  1242. for i=0, 0.5, 0.1 / Animation_Speed do
  1243. Swait()
  1244. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1245. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1246. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1247. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1248. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1249. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1250. end
  1251. ATTACK = false
  1252. Rooted = false
  1253. end
  1254. function Begoner9000()
  1255. ATTACK = true
  1256. Rooted = true
  1257. CreateSound("255679384", RightArm, 8, 1)
  1258. for i=0, 0, 0.1 / Animation_Speed do
  1259. Swait()
  1260. turnto(Mouse.Hit.p)
  1261. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Maroon",VT(0.2,0,0.2))
  1262. Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Maroon", 1.1)
  1263. MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"New Yeller",VT(0.001,0.001,1),0)
  1264. MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"Maroon",VT(0.001,0.001,2),0)
  1265. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Maroon",VT(-1/15,-1/15,-1/15))
  1266. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Maroon",VT(-2/15,-2/15,-2/15))
  1267. 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(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  1268. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
  1269. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1270. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1271. 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.15 / Animation_Speed)
  1272. 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.15 / Animation_Speed)
  1273. end
  1274. for i=0, 0, 0.1 / Animation_Speed do
  1275. Swait()
  1276. turnto(Mouse.Hit.p)
  1277. 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(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  1278. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  1279. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1280. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1281. 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)), 1 / Animation_Speed)
  1282. 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)), 1 / Animation_Speed)
  1283. end
  1284. MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Maroon",VT(-0.04,-0.04,-0.04))
  1285. MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.035,-0.035,-0.035))
  1286. coroutine.resume(coroutine.create(function()
  1287. Swait(0.01)
  1288. for i = 1, 2 do
  1289. MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"Maroon",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i))))
  1290. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Maroon",VT(4.5*i,0.2,4.5*i))
  1291. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Maroon",VT(4*i,0.6,4*i))
  1292. end
  1293. killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame)
  1294. for i = 1, 3 do
  1295. CreateSound("414517163", Effects, 3.5, 0.8)
  1296. CreateSound("414517163", Effects, 3.5, 0.8)
  1297. end
  1298. coroutine.resume(coroutine.create(function()
  1299. for i = 1, 3 do
  1300. Swait()
  1301. for i = 1, 1 do
  1302. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5)
  1303. end
  1304. for i = 1, 2 do
  1305. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Maroon", 1 + MRANDOM(1,30)/3)
  1306. end
  1307. end
  1308. end))
  1309. end))
  1310. for i=0, 0, 0.1 / Animation_Speed do
  1311. Swait()
  1312. 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(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  1313. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
  1314. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1315. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1316. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
  1317. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
  1318. end
  1319. ATTACK = false
  1320. Rooted = false
  1321. end
  1322.  
  1323. --//=================================\\
  1324. --|| ASSIGN THINGS TO KEYS
  1325. --\\=================================//
  1326.  
  1327. function MouseDown(Mouse)
  1328. if ATTACK == false then
  1329. end
  1330. end
  1331.  
  1332. function MouseUp(Mouse)
  1333. HOLD = false
  1334. end
  1335.  
  1336. function KeyDown(Key)
  1337. KEYHOLD = true
  1338. if Key == "e" and ATTACK == false then
  1339. UltraPunch()
  1340. end
  1341.  
  1342. if Key == "f" and ATTACK == false then
  1343. Punish()
  1344. end
  1345.  
  1346. if Key == "c" and ATTACK == false then
  1347. Dash()
  1348. end
  1349.  
  1350. if Key == "q" and ATTACK == false then
  1351. Begoner9000()()
  1352. end
  1353.  
  1354. if Key == "t" and ATTACK == false then
  1355. Begoner9000()
  1356. wait(0.43)
  1357. Begoner9000()
  1358. wait(0.43)
  1359. Begoner9000()
  1360. wait(0.43)
  1361. Begoner9000()
  1362. wait(0.43)
  1363. Begoner9000()
  1364. wait(0.43)
  1365. Begoner9000()
  1366. wait(0.43)
  1367. Begoner9000()
  1368. wait(0.43)
  1369. Begoner9000()
  1370. wait(0.43)
  1371. Begoner9000()
  1372. wait(0.43)
  1373. Begoner9000()
  1374. end
  1375.  
  1376. if Key == "g" and ATTACK == false then
  1377. Begoner9000()
  1378. UltraPunch()
  1379. wait(0.0001)
  1380. Begoner9000()
  1381. UltraPunch()
  1382. wait(0.0001)
  1383. Begoner9000()
  1384. UltraPunch()
  1385. wait(0.0001)
  1386. Begoner9000()
  1387. UltraPunch()
  1388. wait(0.0001)
  1389. Begoner9000()
  1390. UltraPunch()
  1391. wait(0.0001)
  1392. Begoner9000()
  1393. UltraPunch()
  1394. wait(0.0001)
  1395. Begoner9000()
  1396. UltraPunch()
  1397. wait(0.0001)
  1398. Begoner9000()
  1399. UltraPunch()
  1400. wait(0.0001)
  1401. Begoner9000()
  1402. UltraPunch()
  1403. wait(0.0001)
  1404. Begoner9000()
  1405. UltraPunch()
  1406. wait(0.0001)
  1407. Begoner9000()
  1408. UltraPunch()
  1409. wait(0.0001)
  1410. Begoner9000()
  1411. UltraPunch()
  1412. wait(0.0001)
  1413. Begoner9000()
  1414. UltraPunch()
  1415. wait(0.0001)
  1416. Begoner9000()
  1417. UltraPunch()
  1418. wait(0.0001)
  1419. Begoner9000()
  1420. UltraPunch()
  1421. wait(0.0001)
  1422. Begoner9000()
  1423. UltraPunch()
  1424. wait(0.0001)
  1425. Begoner9000()
  1426. UltraPunch()
  1427. wait(0.0001)
  1428. Begoner9000()
  1429. UltraPunch()
  1430. wait(0.0001)
  1431. Begoner9000()
  1432. UltraPunch()
  1433. wait(0.0001)
  1434. Begoner9000()
  1435. UltraPunch()
  1436. wait(0.0001)
  1437. Begoner9000()
  1438. UltraPunch()
  1439. wait(0.0001)
  1440. Begoner9000()
  1441. UltraPunch()
  1442. wait(0.0001)
  1443. Begoner9000()
  1444. UltraPunch()
  1445. wait(0.0001)
  1446. Begoner9000()
  1447. UltraPunch()
  1448. wait(0.0001)
  1449. Begoner9000()
  1450. UltraPunch()
  1451. wait(0.0001)
  1452. Begoner9000()
  1453. UltraPunch()
  1454. wait(0.0001)
  1455. Begoner9000()
  1456. UltraPunch()
  1457. wait(0.0001)
  1458. Begoner9000()
  1459. UltraPunch()
  1460. wait(0.0001)
  1461. Begoner9000()
  1462. UltraPunch()
  1463. wait(0.0001)
  1464. Begoner9000()
  1465. UltraPunch()
  1466. wait(0.0001)
  1467. Begoner9000()
  1468. UltraPunch()
  1469. wait(0.0001)
  1470. Begoner9000()
  1471. UltraPunch()
  1472. wait(0.0001)
  1473. Begoner9000()
  1474. UltraPunch()
  1475. wait(0.0001)
  1476. Begoner9000()
  1477. UltraPunch()
  1478. wait(0.0001)
  1479. Begoner9000()
  1480. UltraPunch()
  1481. wait(0.0001)
  1482. Begoner9000()
  1483. UltraPunch()
  1484. wait(0.0001)
  1485. Begoner9000()
  1486. UltraPunch()
  1487. wait(0.0001)
  1488. Begoner9000()
  1489. UltraPunch()
  1490. wait(0.0001)
  1491. Begoner9000()
  1492. UltraPunch()
  1493. wait(0.0001)
  1494. Begoner9000()
  1495. UltraPunch()
  1496. wait(0.0001)
  1497. Begoner9000()
  1498. UltraPunch()
  1499. wait(0.0001)
  1500. Begoner9000()
  1501. UltraPunch()
  1502. wait(0.0001)
  1503. Begoner9000()
  1504. UltraPunch()
  1505. wait(0.0001)
  1506. Begoner9000()
  1507. UltraPunch()
  1508. wait(0.0001)
  1509. Begoner9000()
  1510. UltraPunch()
  1511. wait(0.0001)
  1512. Begoner9000()
  1513. UltraPunch()
  1514. wait(0.0001)
  1515. Begoner9000()
  1516. UltraPunch()
  1517. wait(0.0001)
  1518. Begoner9000()
  1519. UltraPunch()
  1520. wait(0.0001)
  1521. Begoner9000()
  1522. UltraPunch()
  1523. wait(0.0001)
  1524. Begoner9000()
  1525. UltraPunch()
  1526. wait(0.0001)
  1527. Begoner9000()
  1528. UltraPunch()
  1529. wait(0.0001)
  1530. Begoner9000()
  1531. UltraPunch()
  1532. wait(0.0001)
  1533. Begoner9000()
  1534. UltraPunch()
  1535. wait(0.0001)
  1536. Begoner9000()
  1537. UltraPunch()
  1538. wait(0.0001)
  1539. Begoner9000()
  1540. UltraPunch()
  1541. wait(0.0001)
  1542. Begoner9000()
  1543. UltraPunch()
  1544. wait(0.0001)
  1545. Begoner9000()
  1546. UltraPunch()
  1547. wait(0.0001)
  1548. Begoner9000()
  1549. UltraPunch()
  1550. wait(0.0001)
  1551. Begoner9000()
  1552. UltraPunch()
  1553. wait(0.0001)
  1554. Begoner9000()
  1555. UltraPunch()
  1556. wait(0.0001)
  1557. Begoner9000()
  1558. UltraPunch()
  1559. wait(0.0001)
  1560. Begoner9000()
  1561. UltraPunch()
  1562. wait(0.0001)
  1563. Begoner9000()
  1564. UltraPunch()
  1565. wait(0.0001)
  1566. Begoner9000()
  1567. UltraPunch()
  1568. wait(0.0001)
  1569. Begoner9000()
  1570. UltraPunch()
  1571. wait(0.0001)
  1572. Begoner9000()
  1573. UltraPunch()
  1574. wait(0.0001)
  1575. Begoner9000()
  1576. UltraPunch()
  1577. wait(0.0001)
  1578. Begoner9000()
  1579. UltraPunch()
  1580. wait(0.0001)
  1581. Begoner9000()
  1582. UltraPunch()
  1583. wait(0.0001)
  1584. Begoner9000()
  1585. UltraPunch()
  1586. wait(0.0001)
  1587. Begoner9000()
  1588. UltraPunch()
  1589. wait(0.0001)
  1590. Begoner9000()
  1591. UltraPunch()
  1592. wait(0.0001)
  1593. Begoner9000()
  1594. UltraPunch()
  1595. wait(0.0001)
  1596. Begoner9000()
  1597. UltraPunch()
  1598. wait(0.0001)
  1599. Begoner9000()
  1600. UltraPunch()
  1601. wait(0.0001)
  1602. Begoner9000()
  1603. UltraPunch()
  1604. wait(0.0001)
  1605. Begoner9000()
  1606. UltraPunch()
  1607. wait(0.0001)
  1608. Begoner9000()
  1609. UltraPunch()
  1610. wait(0.0001)
  1611. Begoner9000()
  1612. UltraPunch()
  1613. wait(0.0001)
  1614. Begoner9000()
  1615. UltraPunch()
  1616. wait(0.0001)
  1617. Begoner9000()
  1618. UltraPunch()
  1619. wait(0.0001)
  1620. Begoner9000()
  1621. UltraPunch()
  1622. wait(0.0001)
  1623. Begoner9000()
  1624. UltraPunch()
  1625. wait(0.0001)
  1626. Begoner9000()
  1627. UltraPunch()
  1628. wait(0.0001)
  1629. Begoner9000()
  1630. UltraPunch()
  1631. wait(0.0001)
  1632. Begoner9000()
  1633. UltraPunch()
  1634. wait(0.0001)
  1635. Begoner9000()
  1636. UltraPunch()
  1637. wait(0.0001)
  1638. Begoner9000()
  1639. UltraPunch()
  1640. wait(0.0001)
  1641. Begoner9000()
  1642. UltraPunch()
  1643. wait(0.0001)
  1644. Begoner9000()
  1645. UltraPunch()
  1646. wait(0.0001)
  1647. Begoner9000()
  1648. UltraPunch()
  1649. wait(0.0001)
  1650. Begoner9000()
  1651. UltraPunch()
  1652. wait(0.0001)
  1653. Begoner9000()
  1654. UltraPunch()
  1655. wait(0.0001)
  1656. Begoner9000()
  1657. UltraPunch()
  1658. wait(0.0001)
  1659. Begoner9000()
  1660. UltraPunch()
  1661. wait(0.0001)
  1662. Begoner9000()
  1663. UltraPunch()
  1664. wait(0.0001)
  1665. Begoner9000()
  1666. UltraPunch()
  1667. wait(0.0001)
  1668. Begoner9000()
  1669. UltraPunch()
  1670. wait(0.0001)
  1671. Begoner9000()
  1672. UltraPunch()
  1673. wait(0.0001)
  1674. Begoner9000()
  1675. UltraPunch()
  1676. end
  1677.  
  1678. if Key == "r" and ATTACK == false then
  1679. UltraPunch()
  1680. wait(0.0002)
  1681. UltraPunch()
  1682. wait(0.0002)
  1683. UltraPunch()
  1684. wait(0.0002)
  1685. UltraPunch()
  1686. wait(0.0002)
  1687. UltraPunch()
  1688. wait(0.0002)
  1689. UltraPunch()
  1690. wait(0.0002)
  1691. UltraPunch()
  1692. wait(0.0002)
  1693. UltraPunch()
  1694. wait(0.0002)
  1695. UltraPunch()
  1696. wait(0.0002)
  1697. UltraPunch()
  1698. wait(0.0002)
  1699. UltraPunch()
  1700. wait(0.0002)
  1701. UltraPunch()
  1702. wait(0.0002)
  1703. UltraPunch()
  1704. wait(0.0002)
  1705. UltraPunch()
  1706. wait(0.0002)
  1707. UltraPunch()
  1708. wait(0.0002)
  1709. UltraPunch()
  1710. wait(0.0002)
  1711. UltraPunch()
  1712. wait(0.0002)
  1713. UltraPunch()
  1714. wait(0.0002)
  1715. UltraPunch()
  1716. wait(0.0002)
  1717. UltraPunch()
  1718. wait(0.0002)
  1719. UltraPunch()
  1720. wait(0.0002)
  1721. UltraPunch()
  1722. end
  1723.  
  1724. if Key == "p" and ATTACK == false then
  1725. if Speed == 16 then
  1726. Speed = 150
  1727. elseif Speed == 150 then
  1728. Speed = 16
  1729. end
  1730. end
  1731. end
  1732.  
  1733. function KeyUp(Key)
  1734. KEYHOLD = false
  1735. end
  1736.  
  1737. Mouse.Button1Down:connect(function(NEWKEY)
  1738. MouseDown(NEWKEY)
  1739. end)
  1740. Mouse.Button1Up:connect(function(NEWKEY)
  1741. MouseUp(NEWKEY)
  1742. end)
  1743. Mouse.KeyDown:connect(function(NEWKEY)
  1744. KeyDown(NEWKEY)
  1745. end)
  1746. Mouse.KeyUp:connect(function(NEWKEY)
  1747. KeyUp(NEWKEY)
  1748. end)
  1749.  
  1750. --//=================================\\
  1751. --\\=================================//
  1752.  
  1753.  
  1754. function unanchor()
  1755. if UNANCHOR == true then
  1756. g = Character:GetChildren()
  1757. for i = 1, #g do
  1758. if g[i].ClassName == "Part" then
  1759. g[i].Anchored = false
  1760. end
  1761. end
  1762. end
  1763. end
  1764.  
  1765.  
  1766. --//=================================\\
  1767. --|| WRAP THE WHOLE SCRIPT UP
  1768. --\\=================================//
  1769.  
  1770. Humanoid.Changed:connect(function(Jump)
  1771. if Jump == "Jump" and (Disable_Jump == true) then
  1772. Humanoid.Jump = false
  1773. end
  1774. end)
  1775.  
  1776. while true do
  1777. Swait()
  1778. ANIMATE.Parent = nil
  1779. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1780. IDLEANIMATION:Play()
  1781. SINE = SINE + CHANGE
  1782. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1783. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1784. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1785. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1786. local WALKSPEEDVALUE = 0
  1787. if Speed < 35 then
  1788. WALKSPEEDVALUE = 48
  1789. else
  1790. WALKSPEEDVALUE = 48
  1791. end
  1792. if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then
  1793. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (1) / Animation_Speed)
  1794. 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)
  1795. if Speed < 35 then
  1796. 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(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1797. 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(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1798. else
  1799. 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(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1800. 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(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1801. end
  1802. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
  1803. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1804. 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)
  1805. 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)
  1806. 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)
  1807. end
  1808. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1809. ANIM = "Jump"
  1810. if ATTACK == false then
  1811. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1812. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1813. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1814. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1815. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1816. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1817. end
  1818. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1819. ANIM = "Fall"
  1820. if ATTACK == false then
  1821. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1822. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1823. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1824. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1825. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1826. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1827. end
  1828. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1829. ANIM = "Idle"
  1830. if ATTACK == false then
  1831. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1832. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1833. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1834. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1835. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1836. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1837. end
  1838. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then
  1839. ANIM = "Walk"
  1840. WALK = WALK + 1 / Animation_Speed
  1841. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1842. WALK = 0
  1843. if WALKINGANIM == true then
  1844. WALKINGANIM = false
  1845. elseif WALKINGANIM == false then
  1846. WALKINGANIM = true
  1847. end
  1848. end
  1849. --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)
  1850. --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)
  1851. if ATTACK == false then
  1852. if Speed < 35 then
  1853. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1854. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1855. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1856. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1857. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1858. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1859. else
  1860. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1861. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1862. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1863. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1864. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1865. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1866. end
  1867. end
  1868. end
  1869. unanchor()
  1870. Humanoid.MaxHealth = "inf"
  1871. Humanoid.Health = "inf"
  1872. if Rooted == false then
  1873. Disable_Jump = false
  1874. Humanoid.WalkSpeed = Speed
  1875. elseif Rooted == true then
  1876. Disable_Jump = true
  1877. Humanoid.WalkSpeed = 0
  1878. end
  1879. local MATHS = {"0","1"}
  1880. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1881. Humanoid.PlatformStand = false
  1882. end
  1883.  
  1884.  
  1885. --//====================================================\\--
  1886. --|| END OF SCRIPT
  1887. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement