Advertisement
PR0J3CT11

Untitled

Jun 26th, 2019
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Player = game:GetService("Players").TameDoNotClick
  2.  
  3.  
  4. local Mouse,mouse,UserInputService,ContextActionService
  5. do
  6.     script.Parent = Player.Character
  7.     local CAS = {Actions={}}
  8.     local Event = Instance.new("RemoteEvent")
  9.     Event.Name = "UserInput_Event"
  10.     Event.Parent = Player.Character
  11.     local fakeEvent = function()
  12.         local t = {_fakeEvent=true}
  13.         t.Connect = function(self,f)self.Function=f end
  14.         t.connect = t.Connect
  15.         return t
  16.     end
  17.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  18.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19.     function CAS:BindAction(name,fun,touch,...)
  20.         CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  21.     end
  22.     function CAS:UnbindAction(name)
  23.         CAS.Actions[name] = nil
  24.     end
  25.     local function te(self,ev,...)
  26.         local t = m[ev]
  27.         if t and t._fakeEvent and t.Function then
  28.             t.Function(...)
  29.         end
  30.     end
  31.     m.TrigEvent = te
  32.     UIS.TrigEvent = te
  33.     Event.OnServerEvent:Connect(function(plr,io)
  34.         if plr~=Player then return end
  35.         if io.isMouse then
  36.             m.Target = io.Target
  37.             m.Hit = io.Hit
  38.         elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  39.             if io.UserInputState == Enum.UserInputState.Begin then
  40.                 m:TrigEvent("Button1Down")
  41.             else
  42.                 m:TrigEvent("Button1Up")
  43.             end
  44.         else
  45.             for n,t in pairs(CAS.Actions) do
  46.                 for _,k in pairs(t.Keys) do
  47.                     if k==io.KeyCode then
  48.                         t.Function(t.Name,io.UserInputState,io)
  49.                     end
  50.                 end
  51.             end
  52.             if io.UserInputState == Enum.UserInputState.Begin then
  53.                 m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  54.                 UIS:TrigEvent("InputBegan",io,false)
  55.             else
  56.                 m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  57.                 UIS:TrigEvent("InputEnded",io,false)
  58.             end
  59.         end
  60.     end)
  61.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  62. end
  63.  
  64. wait(1/100)
  65. --for studio testing
  66. --burbolizer/turbolizer idfk
  67. --sans made this spaghetti coding
  68. --salvo basically made the gui and wan reanimated some stuff along with adding effects to attacks kthx
  69. ----------------
  70. --Salvo is trying to tweak
  71. --also made gui
  72. ----------------------------
  73. --ae sans works on this again why the f-
  74. --bugetti spaghetti for some reason Godz is here
  75. local player = game:service'Players'.TameDoNotClick
  76. local char = player.Character
  77. Character = player.Character
  78. Humanoid = Character.Humanoid
  79. RootPart = Character.HumanoidRootPart
  80. Torso = Character.Torso
  81. Head = Character.Head
  82. RightArm = Character['Right Arm']
  83. LeftArm = Character['Left Arm']
  84. RightLeg = Character['Right Leg']
  85. LeftLeg = Character['Left Leg']
  86. RightS = Torso['Right Shoulder']
  87. RootJ = RootPart['RootJoint']
  88. RootJoint = RootJ
  89. LeftS = Torso['Left Shoulder']
  90. RightH = Torso['Right Hip']
  91. LeftH = Torso['Left Hip']
  92. it=Instance.new
  93. local attacking = false
  94. vt=Vector3.new
  95. cf=CFrame.new
  96. local sne = 0
  97. local chaeng = 1
  98. euler=CFrame.fromEulerAnglesXYZ
  99. angles=CFrame.Angles
  100. ---im good at shack's coding so stop blaming me you dumbfucks
  101.  rarm = RightArm
  102. larm = LeftArm
  103. IT = Instance.new
  104. CF = CFrame.new
  105. VT = Vector3.new
  106. RAD = math.rad
  107. C3 = Color3.new
  108. UD2 = UDim2.new
  109. BRICKC = BrickColor.new
  110. ANGLES = CFrame.Angles
  111. EULER = CFrame.fromEulerAnglesXYZ
  112. COS = math.cos
  113. ACOS = math.acos
  114. SIN = math.sin
  115. ASIN = math.asin
  116. ABS = math.abs
  117. MRANDOM = math.random
  118. FLOOR = math.floor
  119. local hum = char.Humanoid
  120. local ra = char["Right Arm"]
  121. local la= char["Left Arm"]
  122. local rl= char["Right Leg"]
  123. local ll = char["Left Leg"]
  124. local hed = char.Head
  125. local root = char.HumanoidRootPart
  126. local rootj = root.RootJoint
  127. local tors = char.Torso
  128. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  129. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  130. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  131. ------------------
  132. local Chill = false
  133. local sine = sne
  134. -------------------------------------------------------
  135. --Start Cret's variables stuff--
  136. -------------------------------------------------------
  137. cam = game.Workspace.CurrentCamera
  138. CF = CFrame.new
  139. angles = CFrame.Angles
  140. attack = false
  141. Euler = CFrame.fromEulerAnglesXYZ
  142. Rad = math.rad
  143. IT = Instance.new
  144. BrickC = BrickColor.new
  145. Cos = math.cos
  146. Acos = math.acos
  147. Sin = math.sin
  148. Asin = math.asin
  149. Abs = math.abs
  150. Mrandom = math.random
  151. Floor = math.floor
  152. -------------------------------------------------------
  153. --End Cret's variables stuff--
  154. -------------------------------------------------------
  155. Player = player
  156. local MoonEffect2 = script.Effect2
  157. MoonEffect2.Parent = Player.PlayerGui
  158. local PyramidEffect = script.Pyramid
  159. PyramidEffect.Parent = Player.PlayerGui
  160. local Triangle1 = script.Triangle
  161. Triangle1.Parent = Player.PlayerGui
  162. local Triangle2 = script.Triangle2
  163. Triangle2.Parent = Player.PlayerGui
  164. local CrystalEff = script.Crystal
  165. CrystalEff.Parent = Player.PlayerGui
  166. local MAINCOLOR = BrickColor.new("Deep orange")
  167. neckcf=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  168. neckcf2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  169. LeftHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  170. LeftHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  171. RightHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  172. RightHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  173. RootCF=euler(-1.57,0,3.14)
  174. necko=neckcf
  175. root = Character.HumanoidRootPart
  176. RH,LH = RightH,LeftH
  177.     local NewInstance = function(instance,parent,properties)
  178.         local inst = Instance.new(instance,parent)
  179.         if(properties)then
  180.             for i,v in next, properties do
  181.                 pcall(function() inst[i] = v end)
  182.             end
  183.         end
  184.         return inst;
  185.     end
  186.     local SONG = 570332815
  187. local gauntlet = script.Gauntlet2
  188. local gauntlet2 = script.Gauntlet
  189. gauntlet.Parent = char
  190. gauntlet2.Parent = char
  191. for i,v in pairs(gauntlet:GetChildren()) do
  192. v.Anchored = false
  193. end
  194. for i,v in pairs(gauntlet2:GetChildren()) do
  195. v.Anchored = false
  196. end
  197. local music = Instance.new("Sound",char.HumanoidRootPart)
  198. music.SoundId = "rbxassetid://570332815"
  199. music.Looped = true
  200. music.Pitch = 1
  201. music.Volume = 2
  202. music.TimePosition = 0
  203. music:Play()
  204.     local HW = NewInstance('Weld',char,{Part0 = char["Right Arm"], Part1 = gauntlet2.Handle, C0 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)})
  205.     local HWx = NewInstance('Weld',char,{Part0 = char["Left Arm"], Part1 = gauntlet.Handle, C0 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)})
  206. local TurboCore = script.Core.Core
  207. for i,v in pairs(script.Core.Core:GetChildren()) do
  208. v.Anchored = false
  209. end
  210. Weld = Instance.new("Weld",script.Core.Core)
  211. Weld.Part0 = script.Core.Core.Handle
  212. Weld.Part1 = Player.Character.Torso
  213. Weld.C0 = Weld.C0*CFrame.new(0,-0.25,0)
  214. script.Core.Parent = Player.Character
  215. local Speed = 18
  216. local storedspeed = 18
  217.  
  218. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  219. local p = Instance.new("Part")
  220. p.TopSurface = 0
  221. p.BottomSurface = 0
  222. p.Parent = parent
  223. p.Size = Vector3.new(0.1,0.1,0.1)
  224. p.Transparency = transparency
  225. p.Reflectance = reflectance
  226. p.CanCollide = false
  227. p.Locked = true
  228. p.BrickColor = brickcolor
  229. p.Material = material
  230. return p
  231. end
  232.  
  233. function CreateMesh(parent,meshtype,x1,y1,z1)
  234. local mesh = Instance.new("SpecialMesh",parent)
  235. mesh.MeshType = meshtype
  236. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  237. return mesh
  238. end
  239.  
  240. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  241. local mesh = Instance.new("SpecialMesh",parent)
  242. mesh.MeshType = "FileMesh"
  243. mesh.MeshId = meshid
  244. mesh.Scale = Vector3.new(x1,y1,z1)
  245. return mesh
  246. end
  247.  
  248.  
  249. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  250. local mesh = Instance.new("SpecialMesh",parent)
  251. mesh.MeshType = "FileMesh"
  252. mesh.MeshId = meshid
  253. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  254. mesh.Scale = Vector3.new(x1,y1,z1)
  255. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  256. return mesh
  257. end
  258.  
  259. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  260. local weld = Instance.new("Weld")
  261. weld.Parent = parent
  262. weld.Part0 = part0
  263. weld.Part1 = part1
  264. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  265. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  266. return weld
  267. end
  268.  
  269.  
  270. Debris = game:GetService("Debris")
  271.  
  272.  
  273. --------------
  274. local m = Instance.new("Model",char)
  275. m.Name = MRANDOM(10,403583950)
  276. --------------
  277. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  278. CreateWeld(sorb,RightArm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  279. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  280. CreateWeld(sorb2,LeftArm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  281.  
  282. local luna = MoonEffect2:Clone()
  283. luna.Anchored = true
  284. luna.Parent = nil
  285. luna.CanCollide = false
  286. luna.Name = "LunaticEffect"
  287.  
  288. local basketball = script.Helkern
  289. basketball.Parent = player.PlayerGui
  290.  
  291. function clerp(a,b,t)
  292. local qa = {QuaternionFromCFrame(a)}
  293. local qb = {QuaternionFromCFrame(b)}
  294. local ax, ay, az = a.x, a.y, a.z
  295. local bx, by, bz = b.x, b.y, b.z
  296. local _t = 1-t
  297. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  298. end
  299.  
  300. function QuaternionFromCFrame(cf)
  301. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  302. local trace = m00 + m11 + m22
  303. if trace > 0 then
  304. local s = math.sqrt(1 + trace)
  305. local recip = 0.5/s
  306. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  307. else
  308. local i = 0
  309. if m11 > m00 then
  310. i = 1
  311. end
  312. if m22 > (i == 0 and m00 or m11) then
  313. i = 2
  314. end
  315. if i == 0 then
  316. local s = math.sqrt(m00-m11-m22+1)
  317. local recip = 0.5/s
  318. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  319. elseif i == 1 then
  320. local s = math.sqrt(m11-m22-m00+1)
  321. local recip = 0.5/s
  322. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  323. elseif i == 2 then
  324. local s = math.sqrt(m22-m00-m11+1)
  325. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  326. end
  327. end
  328. end
  329.  
  330. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  331. local xs, ys, zs = x + x, y + y, z + z
  332. local wx, wy, wz = w*xs, w*ys, w*zs
  333. local xx = x*xs
  334. local xy = x*ys
  335. local xz = x*zs
  336. local yy = y*ys
  337. local yz = y*zs
  338. local zz = z*zs
  339. 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))
  340. end
  341.  
  342. function QuaternionSlerp(a, b, t)
  343. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  344. local startInterp, finishInterp;
  345. if cosTheta >= 0.0001 then
  346. if (1 - cosTheta) > 0.0001 then
  347. local theta = math.acos(cosTheta)
  348. local invSinTheta = 1/math.sin(theta)
  349. startInterp = math.sin((1-t)*theta)*invSinTheta
  350. finishInterp = math.sin(t*theta)*invSinTheta  
  351. else
  352. startInterp = 1-t
  353. finishInterp = t
  354. end
  355. else
  356. if (1+cosTheta) > 0.0001 then
  357. local theta = math.acos(-cosTheta)
  358. local invSinTheta = 1/math.sin(theta)
  359. startInterp = math.sin((t-1)*theta)*invSinTheta
  360. finishInterp = math.sin(t*theta)*invSinTheta
  361. else
  362. startInterp = t-1
  363. finishInterp = t
  364. end
  365. end
  366. 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
  367. end
  368.  
  369. local function CFrameFromTopBack(at, top, back)
  370. local right = top:Cross(back)
  371. return CFrame.new(at.x, at.y, at.z,
  372. right.x, top.x, back.x,
  373. right.y, top.y, back.y,
  374. right.z, top.z, back.z)
  375. end
  376.  
  377.  
  378. function QuaternionFromCFrame2(cf)
  379.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  380.     local trace = m00 + m11 + m22
  381.     if trace > 0 then
  382.         local s = math.sqrt(1 + trace)
  383.         local recip = 0.5 / s
  384.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  385.     else
  386.         local i = 0
  387.         if m11 > m00 then
  388.             i = 1
  389.         end
  390.         if m22 > (i == 0 and m00 or m11) then
  391.             i = 2
  392.         end
  393.         if i == 0 then
  394.             local s = math.sqrt(m00 - m11 - m22 + 1)
  395.             local recip = 0.5 / s
  396.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  397.         elseif i == 1 then
  398.             local s = math.sqrt(m11 - m22 - m00 + 1)
  399.             local recip = 0.5 / s
  400.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  401.         elseif i == 2 then
  402.             local s = math.sqrt(m22 - m00 - m11 + 1)
  403.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  404.         end
  405.     end
  406. end
  407.  
  408. function QuaternionToCFrame2(px, py, pz, x, y, z, w)
  409.     local xs, ys, zs = x + x, y + y, z + z
  410.     local wx, wy, wz = w * xs, w * ys, w * zs
  411.     local xx = x * xs
  412.     local xy = x * ys
  413.     local xz = x * zs
  414.     local yy = y * ys
  415.     local yz = y * zs
  416.     local zz = z * zs
  417.     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))
  418. end
  419.  
  420. function QuaternionSlerp2(a, b, t)
  421.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  422.     local startInterp, finishInterp;
  423.     if cosTheta >= 0.0001 then
  424.         if (1 - cosTheta) > 0.0001 then
  425.             local theta = ACOS(cosTheta)
  426.             local invSinTheta = 1 / SIN(theta)
  427.             startInterp = SIN((1 - t) * theta) * invSinTheta
  428.             finishInterp = SIN(t * theta) * invSinTheta
  429.         else
  430.             startInterp = 1 - t
  431.             finishInterp = t
  432.         end
  433.     else
  434.         if (1 + cosTheta) > 0.0001 then
  435.             local theta = ACOS(-cosTheta)
  436.             local invSinTheta = 1 / SIN(theta)
  437.             startInterp = SIN((t - 1) * theta) * invSinTheta
  438.             finishInterp = SIN(t * theta) * invSinTheta
  439.         else
  440.             startInterp = t - 1
  441.             finishInterp = t
  442.         end
  443.     end
  444.     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
  445. end
  446.  
  447. function clerp2(a, b, t)
  448.     local qa = {QuaternionFromCFrame2(a)}
  449.     local qb = {QuaternionFromCFrame2(b)}
  450.     local ax, ay, az = a.x, a.y, a.z
  451.     local bx, by, bz = b.x, b.y, b.z
  452.     local _t = 1 - t
  453.     return QuaternionToCFrame2(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp2(qa, qb, t))
  454. end
  455.  
  456.  
  457. local TextUI = script.TextUi
  458. TextUI.Enabled = true
  459. TextUI.Parent = char.Head
  460. TextUI.Text.Image = "rbxassetid://2863687732"
  461.  
  462. local MainGui = script.Main
  463. MainGui.Enabled = true
  464. MainGui.Parent = player.PlayerGui
  465. local SideFrame_0 = Instance.new("Frame",MainGui)
  466. SideFrame_0.Position = UDim2.new(0,0,0.671,0)
  467. SideFrame_0.Size = UDim2.new(0,457,0,216)
  468. SideFrame_0.BorderSizePixel = 4
  469. SideFrame_0.BorderColor3 = BrickColor.new"White".Color
  470. SideFrame_0.BackgroundColor3 = BrickColor.new"Really black".Color
  471. SideFrame_0.Rotation = 0
  472. --[[
  473. local SideFrame_1 = Instance.new("Frame",basgui)
  474. SideFrame_1.Position = UDim2.new(0.75,0,0.801,0)
  475. SideFrame_1.Size = UDim2.new(0,457,0,216)
  476. SideFrame_1.BorderSizePixel = 4
  477. SideFrame_1.BorderColor3 = BrickColor.new"White".Color
  478. SideFrame_1.BackgroundColor3 = BrickColor.new"Really black".Color
  479. SideFrame_1.Rotation = 0]]--
  480. local SideFrame0 = Instance.new("Frame",MainGui)
  481. SideFrame0.Position = UDim2.new(0,0,0.731,0)
  482. SideFrame0.Size = UDim2.new(0,457,0,216)
  483. SideFrame0.BorderSizePixel = 4
  484. SideFrame0.BorderColor3 = BrickColor.new"White".Color
  485. SideFrame0.BackgroundColor3 = BrickColor.new"Really black".Color
  486. SideFrame0.Rotation = 0
  487. local SideFrame1 = Instance.new("Frame",MainGui)
  488. SideFrame1.Position = UDim2.new(0,0,0.781,0)
  489. SideFrame1.Size = UDim2.new(0,457,0,216)
  490. SideFrame1.BorderSizePixel = 4
  491. SideFrame1.BorderColor3 = BrickColor.new"White".Color
  492. SideFrame1.BackgroundColor3 = BrickColor.new"Really black".Color
  493. SideFrame1.Rotation = 0
  494. local SideFrame2 = Instance.new("Frame",MainGui)
  495. SideFrame2.Position = UDim2.new(0,0,0.831,0)
  496. SideFrame2.Size = UDim2.new(0,457,0,216)
  497. SideFrame2.BorderSizePixel = 4
  498. SideFrame2.BorderColor3 = BrickColor.new"White".Color
  499. SideFrame2.BackgroundColor3 = BrickColor.new"Really black".Color
  500. SideFrame2.Rotation = 0
  501. local SideFrame3 = Instance.new("Frame",MainGui) --0.75
  502. SideFrame3.Position = UDim2.new(0,0,0.876,0)
  503. SideFrame3.Size = UDim2.new(0,457,0,216)
  504. SideFrame3.BorderSizePixel = 4
  505. SideFrame3.BorderColor3 = BrickColor.new"White".Color
  506. SideFrame3.BackgroundColor3 = BrickColor.new"Really black".Color
  507. SideFrame3.Rotation = -180
  508. local SideFrame4 = Instance.new("Frame",MainGui) --0.75
  509. SideFrame4.Position = UDim2.new(0,0,0.921,0)
  510. SideFrame4.Size = UDim2.new(0,457,0,216)
  511. SideFrame4.BorderSizePixel = 4
  512. SideFrame4.BorderColor3 = BrickColor.new"White".Color
  513. SideFrame4.BackgroundColor3 = BrickColor.new"Really black".Color
  514. SideFrame4.Rotation = -180
  515. local SideFrame5 = Instance.new("Frame",MainGui) --0.75
  516. SideFrame5.Position = UDim2.new(0,0,0.971,0)
  517. SideFrame5.Size = UDim2.new(0,457,0,216)
  518. SideFrame5.BorderSizePixel = 4
  519. SideFrame5.BorderColor3 = BrickColor.new"White".Color
  520. SideFrame5.BackgroundColor3 = BrickColor.new"Really black".Color
  521. SideFrame5.Rotation = -180
  522. local MainFrame = MainGui.MainFrame
  523. local MainFrame2 = MainFrame.AAaa
  524.  
  525. if char:findFirstChild("Animate")then
  526. char:findFirstChild("Animate"):Remove()
  527. end
  528.  
  529. if Humanoid:findFirstChild("Animator")then
  530. Humanoid:findFirstChild("Animator"):Remove()
  531. end
  532.  
  533. ArtificiaLeftHB = Instance.new("BindableEvent", script)
  534. ArtificiaLeftHB.Name = "Heartbeat"
  535. script:WaitForChild("Heartbeat")
  536.  
  537. frame = 1 / 60
  538. tf = 0
  539. allowframeloss = false
  540. tossremainder = false
  541.  
  542.  
  543. lastframe = tick()
  544. script.Heartbeat:Fire()
  545.  
  546.  
  547. game:GetService("RunService").Heartbeat:connect(function(s, p)
  548.     tf = tf + s
  549.     if tf >= frame then
  550.         if allowframeloss then
  551.             script.Heartbeat:Fire()
  552.             lastframe = tick()
  553.         else
  554.             for i = 1, math.floor(tf / frame) do
  555.                 script.Heartbeat:Fire()
  556.             end
  557.             lastframe = tick()
  558.         end
  559.         if tossremainder then
  560.             tf = 0
  561.         else
  562.             tf = tf - frame * math.floor(tf / frame)
  563.         end
  564.     end
  565. end)
  566. function swait(num)
  567.     if num == 0 or num == nil then
  568.         game:service("RunService").Stepped:wait(0)
  569.     else
  570.         for i = 0, num do
  571.             game:service("RunService").Stepped:wait(0)
  572.         end
  573.     end
  574. end
  575.  
  576. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  577. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  578. end
  579. local Mode = "T"
  580. LW=Torso["Left Shoulder"]
  581. LH=Torso["Left Hip"]
  582. RW=Torso["Right Shoulder"]
  583. RH=Torso["Right Hip"]
  584. RW.Name="Right Shoulder"
  585. RW.Part0=char.Torso
  586. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  587. RW.C1=cf(0, 0.5, 0)
  588. RW.Part1=char["Right Arm"]
  589. RW.Parent=char.Torso
  590. --
  591. LW.Name="Left Shoulder"
  592. LW.Part0=char.Torso
  593. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  594. LW.C1=cf(0, 0.5, 0)
  595. LW.Part1=char["Left Arm"]
  596. LW.Parent=char.Torso
  597. function NoOutline(Part)
  598. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  599. end
  600. --
  601. local r = 255
  602. local g = 0
  603. local b = 0
  604. coroutine.resume(coroutine.create(function()
  605.     while wait() do
  606.         for i = 0, 254/5 do
  607.             swait()
  608.             g = g + 5
  609.         end
  610.         for i = 0, 254/5 do
  611.             swait()
  612.             r = r - 5
  613.         end
  614.         for i = 0, 254/5 do
  615.             swait()
  616.             b = b + 5
  617.         end
  618.         for i = 0, 254/5 do
  619.             swait()
  620.             g = g - 5
  621.         end
  622.         for i = 0, 254/5 do
  623.             swait()
  624.             r = r + 5
  625.         end
  626.         for i = 0, 254/5 do
  627.             swait()
  628.             b = b - 5
  629.         end
  630.     end
  631. end))
  632. TurboArrow = script.SpeedArrow1
  633. ToothpasteArrow = script.SpeedArrow2
  634. ToothpasteArrow.Parent = Player.PlayerGui
  635. TurboArrow.Parent = Player.PlayerGui
  636.  
  637.  
  638.  
  639. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  640. local fp=it("Part")
  641. fp.formFactor=formfactor
  642. fp.Parent=parent
  643. fp.Reflectance=reflectance
  644. fp.Transparency=transparency
  645. fp.CanCollide=false
  646. fp.Locked=true
  647. fp.BrickColor=brickcolor
  648. fp.Name=name
  649. fp.Size=size
  650. fp.Position=Torso.Position
  651. NoOutline(fp)
  652. fp.Material="SmoothPlastic"
  653. fp:BreakJoints()
  654. return fp
  655. end
  656.  
  657. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  658. local mesh=it(Mesh)
  659. mesh.Parent=part
  660. if Mesh=="SpecialMesh" then
  661. mesh.MeshType=meshtype
  662. if meshid~="nil" then
  663. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  664. end
  665. end
  666. mesh.Offset=offset
  667. mesh.Scale=scale
  668. return mesh
  669. end
  670. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  671. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  672. prt.Anchored=true
  673. prt.Material = "Neon"
  674. prt.CFrame=cframe
  675. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  676. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  677. game:GetService("Debris"):AddItem(prt,5)
  678. coroutine.resume(coroutine.create(function(Part,Mesh)
  679. for i=0,1,delay do
  680. swait()
  681. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  682. Part.Transparency=i
  683. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  684. end
  685. Part.Parent=nil
  686. end),prt,msh)
  687. end
  688. function wind(type,pos,scale,value,speed,ahy)
  689. local type = type
  690. local rng = Instance.new("Part", char)
  691.         rng.Anchored = true
  692.         rng.BrickColor = BrickColor.new("Institutional white")
  693.         rng.CanCollide = false
  694.         rng.FormFactor = 3
  695.         rng.Name = "Ring"
  696.         rng.Size = Vector3.new(1, 1, 1)
  697.         rng.Transparency = 0
  698.         rng.TopSurface = 0
  699.         rng.BottomSurface = 0
  700.         rng.CFrame = pos
  701.         local rngm = Instance.new("SpecialMesh", rng)
  702.         rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  703. rngm.Scale = scale
  704. local scaler2 = 1
  705. if type == "Add" then
  706. scaler2 = 1*value
  707. elseif type == "Divide" then
  708. scaler2 = 1/value
  709. end
  710. coroutine.resume(coroutine.create(function()
  711.     if ahy == false then
  712. for i = 0,8,0.1 do
  713. swait()
  714. if type == "Add" then
  715. scaler2 = scaler2 - 0.01*value
  716. elseif type == "Divide" then
  717. scaler2 = scaler2 - 0.01/value
  718. end
  719. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  720. rng.Transparency = rng.Transparency + 0.05
  721. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  722. end
  723.     else
  724.         for i = 0,10,0.1 do
  725. swait()
  726. if type == "Add" then
  727. scaler2 = scaler2 - 0.01*value
  728. elseif type == "Divide" then
  729. scaler2 = scaler2 - 0.01/value
  730. end
  731. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  732. rng.Transparency = rng.Transparency + 0.01
  733. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  734. end
  735.         end
  736. rng:Destroy()
  737. end))
  738. end
  739.  
  740. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  741. local type = type
  742. local rng = Instance.new("Part", char)
  743.         rng.Anchored = true
  744.         rng.BrickColor = color
  745.         rng.CanCollide = false
  746.         rng.FormFactor = 3
  747.         rng.Name = "Ring"
  748.         rng.Material = "Neon"
  749.         rng.Size = Vector3.new(1, 1, 1)
  750.         rng.Transparency = 0
  751.         rng.TopSurface = 0
  752.         rng.BottomSurface = 0
  753.         rng.CFrame = pos
  754. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  755.         local rngm = Instance.new("SpecialMesh", rng)
  756.         rngm.MeshType = "Sphere"
  757. rngm.Scale = vt(x1,y1,z1)
  758. local glitchval = math.random(1,255)
  759. if Mode == "R" then
  760. rng.Color = Color3.new(r/255,g/255,b/255)
  761. end
  762. if Mode == "G" then
  763. rng.Color = Color3.new(glitchval,glitchval,glitchval)
  764. end
  765. local scaler2 = 1
  766. local speeder = FastSpeed
  767. if type == "Add" then
  768. scaler2 = 1*value
  769. elseif type == "Divide" then
  770. scaler2 = 1/value
  771. end
  772. coroutine.resume(coroutine.create(function()
  773. for i = 0,10/bonuspeed,0.1 do
  774. swait()
  775. if Mode == "R" then
  776. rng.Color = Color3.new(r/255,g/255,b/255)
  777. end
  778. if Mode == "G" then
  779. rng.Color = Color3.new(glitchval,glitchval,glitchval)
  780. end
  781. if type == "Add" then
  782. scaler2 = scaler2 - 0.01*value/bonuspeed
  783. elseif type == "Divide" then
  784. scaler2 = scaler2 - 0.01/value*bonuspeed
  785. end
  786. speeder = speeder - 0.01*FastSpeed*bonuspeed
  787. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  788. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  789. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  790. end
  791. rng:Destroy()
  792. end))
  793. end
  794.  
  795. --
  796. RW.Name="Right Shoulder"
  797. RW.Part0=char.Torso
  798. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  799. RW.C1=cf(0, 0.5, 0)
  800. RW.Part1=char["Right Arm"]
  801. RW.Parent=char.Torso
  802. --
  803. LW.Name="Left Shoulder"
  804. LW.Part0=char.Torso
  805. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  806. LW.C1=cf(0, 0.5, 0)
  807. LW.Part1=char["Left Arm"]
  808. LW.Parent=char.Torso
  809.  
  810. turboli = 0
  811. turboli2 = 0
  812. function sphere(bonuspeed, type, pos, scale, value, color)
  813. local type = type
  814. local rng = Instance.new("Part", char)
  815. rng.Anchored = true
  816. rng.BrickColor = color
  817. rng.CanCollide = false
  818. rng.FormFactor = 3
  819. rng.Name = "Ring"
  820. rng.Material = "Neon"
  821. rng.Size = Vector3.new(1, 1, 1)
  822. rng.Transparency = 0
  823. rng.TopSurface = 0
  824. rng.BottomSurface = 0
  825. rng.CFrame = pos
  826. local rngm = Instance.new("SpecialMesh", rng)
  827. rngm.MeshType = "Sphere"
  828. rngm.Scale = scale
  829. if rainbowmode == true then
  830. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  831. end
  832. local scaler2 = 1
  833. if type == "Add" then
  834. scaler2 = 1 * value
  835. elseif type == "Divide" then
  836. scaler2 = 1 / value
  837. end
  838. coroutine.resume(coroutine.create(function()
  839. for i = 0, 10 / bonuspeed, 0.1 do
  840. swait()
  841. if rainbowmode == true then
  842. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  843. end
  844. if type == "Add" then
  845. scaler2 = scaler2 - 0.01 * value / bonuspeed
  846. elseif type == "Divide" then
  847. scaler2 = scaler2 - 0.01 / value * bonuspeed
  848. end
  849. if chaosmode == true then
  850. rng.BrickColor = BrickColor.random()
  851. end
  852. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  853. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  854. end
  855. rng:Destroy()
  856. end))
  857. end
  858. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  859. local type = type
  860. local rng = Instance.new("Part", char)
  861. rng.Anchored = true
  862. if ModeOfGlitch ~= 9 then
  863. rng.BrickColor = color
  864. elseif ModeOfGlitch == 9 then
  865. rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
  866. end
  867. rng.CanCollide = false
  868. rng.FormFactor = 3
  869. rng.Name = "Ring"
  870. rng.Material = "Neon"
  871. rng.Size = Vector3.new(1, 1, 1)
  872. rng.Transparency = 0
  873. rng.TopSurface = 0
  874. rng.BottomSurface = 0
  875. rng.CFrame = pos
  876. local rngm = Instance.new("SpecialMesh", rng)
  877. rngm.MeshType = "Sphere"
  878. rngm.Scale = scale
  879. if rainbowmode == true then
  880. rng.Color = Color3.new(r/255,g/255,b/255)
  881. end
  882. local scaler2 = 1
  883. local scaler2b = 1
  884. local scaler2c = 1
  885. if type == "Add" then
  886. scaler2 = 1*value
  887. scaler2b = 1*value2
  888. scaler2c = 1*value3
  889. elseif type == "Divide" then
  890. scaler2 = 1/value
  891. scaler2b = 1/value2
  892. scaler2c = 1/value3
  893. end
  894. if ModeOfGlitch == 9 then
  895. coroutine.resume(coroutine.create(function()
  896. while true do
  897. swait()
  898. if rng.Parent ~= nil then
  899. rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
  900. else
  901. break
  902. end
  903. end
  904. end))
  905. end
  906. coroutine.resume(coroutine.create(function()
  907. for i = 0,10/bonuspeed,0.1 do
  908. swait()
  909. if type == "Add" then
  910. scaler2 = scaler2 - 0.01*value/bonuspeed
  911. scaler2b = scaler2b - 0.01*value/bonuspeed
  912. scaler2c = scaler2c - 0.01*value/bonuspeed
  913. elseif type == "Divide" then
  914. scaler2 = scaler2 - 0.01/value*bonuspeed
  915. scaler2b = scaler2b - 0.01/value*bonuspeed
  916. scaler2c = scaler2c - 0.01/value*bonuspeed
  917. end
  918. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  919. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  920. end
  921. rng:Destroy()
  922. end))
  923. end
  924.  
  925. function Wedge2(bonuspeed,type,pos,scale,value,value2,value3,color)
  926. local type = type
  927. local rng = Instance.new("Part", char)
  928. rng.Anchored = true
  929. if ModeOfGlitch ~= 9 then
  930. rng.BrickColor = color
  931. elseif ModeOfGlitch == 9 then
  932. rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
  933. end
  934. rng.CanCollide = false
  935. rng.FormFactor = 3
  936. rng.Name = "Ring"
  937. rng.Material = "Neon"
  938. rng.Size = Vector3.new(1, 1, 1)
  939. rng.Transparency = 0
  940. rng.TopSurface = 0
  941. rng.BottomSurface = 0
  942. rng.CFrame = pos
  943. local rngm = Instance.new("SpecialMesh", rng)
  944. rngm.MeshType = "Wedge"
  945. rngm.Scale = scale
  946. if rainbowmode == true then
  947. rng.Color = Color3.new(r/255,g/255,b/255)
  948. end
  949. local scaler2 = 1
  950. local scaler2b = 1
  951. local scaler2c = 1
  952. if type == "Add" then
  953. scaler2 = 1*value
  954. scaler2b = 1*value2
  955. scaler2c = 1*value3
  956. elseif type == "Divide" then
  957. scaler2 = 1/value
  958. scaler2b = 1/value2
  959. scaler2c = 1/value3
  960. end
  961. if ModeOfGlitch == 9 then
  962. coroutine.resume(coroutine.create(function()
  963. while true do
  964. swait()
  965. if rng.Parent ~= nil then
  966. rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
  967. else
  968. break
  969. end
  970. end
  971. end))
  972. end
  973. coroutine.resume(coroutine.create(function()
  974. for i = 0,10/bonuspeed,0.1 do
  975. swait()
  976. if type == "Add" then
  977. scaler2 = scaler2 - 0.01*value/bonuspeed
  978. scaler2b = scaler2b - 0.01*value/bonuspeed
  979. scaler2c = scaler2c - 0.01*value/bonuspeed
  980. elseif type == "Divide" then
  981. scaler2 = scaler2 - 0.01/value*bonuspeed
  982. scaler2b = scaler2b - 0.01/value*bonuspeed
  983. scaler2c = scaler2c - 0.01/value*bonuspeed
  984. end
  985. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  986. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  987. end
  988. rng:Destroy()
  989. end))
  990. end
  991.  
  992. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  993. local type = type
  994. local rotenable = rotatingop
  995. local rng = Instance.new("Part", char)
  996. rng.Anchored = true
  997. rng.BrickColor = color
  998. rng.CanCollide = false
  999. rng.FormFactor = 3
  1000. rng.Name = "Ring"
  1001. rng.Material = "Neon"
  1002. rng.Size = Vector3.new(1, 1, 1)
  1003. rng.Transparency = 0
  1004. if typeoftrans == "In" then
  1005. rng.Transparency = 1
  1006. end
  1007. rng.TopSurface = 0
  1008. rng.BottomSurface = 0
  1009. rng.CFrame = pos
  1010. local rngm = Instance.new("SpecialMesh", rng)
  1011. rngm.MeshType = "FileMesh"
  1012. if typeofshape == "Normal" then
  1013. rngm.MeshId = "rbxassetid://662586858"
  1014. elseif typeofshape == "Round" then
  1015. rngm.MeshId = "rbxassetid://662585058"
  1016. end
  1017. rngm.Scale = scale
  1018. local scaler2 = 1/10
  1019. if type == "Add" then
  1020. scaler2 = 1*value/10
  1021. elseif type == "Divide" then
  1022. scaler2 = 1/value/10
  1023. end
  1024. local randomrot = math.random(1,2)
  1025. coroutine.resume(coroutine.create(function()
  1026. for i = 0,10/bonuspeed,0.1 do
  1027. swait()
  1028. if type == "Add" then
  1029. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  1030. elseif type == "Divide" then
  1031. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  1032. end
  1033. if rotenable == true then
  1034. if randomrot == 1 then
  1035. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  1036. elseif randomrot == 2 then
  1037. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  1038. end
  1039. end
  1040. if typeoftrans == "Out" then
  1041. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1042. elseif typeoftrans == "In" then
  1043. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  1044. end
  1045. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  1046. end
  1047. rng:Destroy()
  1048. end))
  1049. end
  1050.  
  1051. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  1052. local type = type
  1053. local rng = Instance.new("Part", char)
  1054. rng.Anchored = true
  1055. rng.BrickColor = color
  1056. rng.CanCollide = false
  1057. rng.FormFactor = 3
  1058. rng.Name = "Ring"
  1059. rng.Material = "Neon"
  1060. rng.Size = Vector3.new(1, 1, 1)
  1061. rng.Transparency = 0
  1062. rng.TopSurface = 0
  1063. rng.BottomSurface = 0
  1064. rng.CFrame = pos
  1065. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  1066. local rngm = Instance.new("SpecialMesh", rng)
  1067. rngm.MeshType = "Brick"
  1068. rngm.Scale = vt(x1,y1,z1)
  1069. if rainbowmode == true then
  1070. rng.Color = Color3.new(r/255,g/255,b/255)
  1071. end
  1072. local scaler2 = 1
  1073. local speeder = FastSpeed/10
  1074. if type == "Add" then
  1075. scaler2 = 1*value
  1076. elseif type == "Divide" then
  1077. scaler2 = 1/value
  1078. end
  1079. coroutine.resume(coroutine.create(function()
  1080. for i = 0,10/bonuspeed,0.1 do
  1081. swait()
  1082. if rainbowmode == true then
  1083. rng.Color = Color3.new(r/255,g/255,b/255)
  1084. end
  1085. if type == "Add" then
  1086. scaler2 = scaler2 - 0.01*value/bonuspeed
  1087. elseif type == "Divide" then
  1088. scaler2 = scaler2 - 0.01/value*bonuspeed
  1089. end
  1090. if chaosmode == true then
  1091. rng.BrickColor = BrickColor.random()
  1092. end
  1093. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  1094. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  1095. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1096. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  1097. end
  1098. rng:Destroy()
  1099. end))
  1100. end
  1101.  
  1102. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  1103. local type = type
  1104. local rng = Instance.new("Part", char)
  1105. rng.Anchored = true
  1106. rng.BrickColor = color
  1107. rng.CanCollide = false
  1108. rng.FormFactor = 3
  1109. rng.Name = "Ring"
  1110. rng.Material = "Neon"
  1111. rng.Size = Vector3.new(1, 1, 1)
  1112. rng.Transparency = 0
  1113. rng.TopSurface = 0
  1114. rng.BottomSurface = 0
  1115. rng.CFrame = pos
  1116. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  1117. local rngm = Instance.new("SpecialMesh", rng)
  1118. rngm.MeshType = "Brick"
  1119. rngm.Scale = vt(x1,y1,z1)
  1120. if rainbowmode == true then
  1121. rng.Color = Color3.new(r/255,g/255,b/255)
  1122. end
  1123. local scaler2 = 1
  1124. local speeder = FastSpeed/10
  1125. if type == "Add" then
  1126. scaler2 = 1*value
  1127. elseif type == "Divide" then
  1128. scaler2 = 1/value
  1129. end
  1130. coroutine.resume(coroutine.create(function()
  1131. for i = 0,10/bonuspeed,0.1 do
  1132. swait()
  1133. if rainbowmode == true then
  1134. rng.Color = Color3.new(r/255,g/255,b/255)
  1135. end
  1136. if type == "Add" then
  1137. scaler2 = scaler2 - 0.01*value/bonuspeed
  1138. elseif type == "Divide" then
  1139. scaler2 = scaler2 - 0.01/value*bonuspeed
  1140. end
  1141. if chaosmode == true then
  1142. rng.BrickColor = BrickColor.random()
  1143. end
  1144. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  1145. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  1146. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1147. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  1148. end
  1149. rng:Destroy()
  1150. end))
  1151. end
  1152.  
  1153. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  1154. local type = type
  1155. local rng = Instance.new("Part", char)
  1156. rng.Anchored = true
  1157. rng.BrickColor = color
  1158. rng.CanCollide = false
  1159. rng.FormFactor = 3
  1160. rng.Name = "Ring"
  1161. rng.Material = "Neon"
  1162. rng.Size = Vector3.new(1, 1, 1)
  1163. rng.Transparency = 0
  1164. rng.TopSurface = 0
  1165. rng.BottomSurface = 0
  1166. rng.CFrame = pos
  1167. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  1168. local rngm = Instance.new("SpecialMesh", rng)
  1169. rngm.MeshType = "Brick"
  1170. rngm.Scale = vt(x1,y1,z1)
  1171. if Mode == "G" then
  1172. rng.Color = Color3.new(glitchval,glitchval,glitchval)
  1173. end
  1174. --[[
  1175. coroutine.resume(coroutine.create(function()
  1176.     while true do
  1177.         swait()
  1178.         glitchval = math.random(1,255)
  1179.     end
  1180. end))]]--
  1181. local scaler2 = 0
  1182. local speeder = FastSpeed/10
  1183. if type == "Add" then
  1184. scaler2 = 1*value
  1185. elseif type == "Divide" then
  1186. scaler2 = 1/value
  1187. end
  1188. coroutine.resume(coroutine.create(function()
  1189. for i = 0,10/bonuspeed,0.1 do
  1190. swait()
  1191. if Mode == "G" then
  1192. rng.Color = Color3.new(glitchval,glitchval,glitchval)
  1193. end
  1194. if type == "Add" then
  1195. scaler2 = scaler2 - 0.01*value/bonuspeed
  1196. elseif type == "Divide" then
  1197. scaler2 = scaler2 - 0.01/value*bonuspeed
  1198. end
  1199. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  1200. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  1201. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1202. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  1203. end
  1204. rng:Destroy()
  1205. end))
  1206. end
  1207.  
  1208. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  1209. local type = type
  1210. local rng = Instance.new("Part", char)
  1211. rng.Anchored = true
  1212. rng.BrickColor = color
  1213. rng.Color = color3
  1214. rng.CanCollide = false
  1215. rng.FormFactor = 3
  1216. rng.Name = "Ring"
  1217. rng.Material = "Neon"
  1218. rng.Size = Vector3.new(1, 1, 1)
  1219. rng.Transparency = 0
  1220. rng.TopSurface = 0
  1221. rng.BottomSurface = 0
  1222. rng.CFrame = pos
  1223. local rngm = Instance.new("SpecialMesh", rng)
  1224. rngm.MeshType = "Brick"
  1225. rngm.Scale = scale
  1226. local scaler2 = 1
  1227. local scaler2b = 1
  1228. local scaler2c = 1
  1229. if type == "Add" then
  1230. scaler2 = 1*value
  1231. scaler2b = 1*value2
  1232. scaler2c = 1*value3
  1233. elseif type == "Divide" then
  1234. scaler2 = 1/value
  1235. scaler2b = 1/value2
  1236. scaler2c = 1/value3
  1237. end
  1238. coroutine.resume(coroutine.create(function()
  1239. for i = 0,10/bonuspeed,0.1 do
  1240. swait()
  1241. if type == "Add" then
  1242. scaler2 = scaler2 - 0.01*value/bonuspeed
  1243. scaler2b = scaler2b - 0.01*value/bonuspeed
  1244. scaler2c = scaler2c - 0.01*value/bonuspeed
  1245. elseif type == "Divide" then
  1246. scaler2 = scaler2 - 0.01/value*bonuspeed
  1247. scaler2b = scaler2b - 0.01/value*bonuspeed
  1248. scaler2c = scaler2c - 0.01/value*bonuspeed
  1249. end
  1250. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1251. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1252. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  1253. end
  1254. rng:Destroy()
  1255. end))
  1256. end
  1257. local Create = LoadLibrary("RbxUtility").Create
  1258. CFuncs = {
  1259. Part = {
  1260. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1261. local Part = Create("Part")({
  1262. Parent = Parent,
  1263. Reflectance = Reflectance,
  1264. Transparency = Transparency,
  1265. CanCollide = false,
  1266. Locked = true,
  1267. BrickColor = BrickColor.new(tostring(BColor)),
  1268. Name = Name,
  1269. Size = Size,
  1270. Material = Material
  1271. })
  1272. RemoveOutlines(Part)
  1273. return Part
  1274. end
  1275. },
  1276. Mesh = {
  1277. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1278. local Msh = Create(Mesh)({
  1279. Parent = Part,
  1280. Offset = OffSet,
  1281. Scale = Scale
  1282. })
  1283. if Mesh == "SpecialMesh" then
  1284. Msh.MeshType = MeshType
  1285. Msh.MeshId = MeshId
  1286. end
  1287. return Msh
  1288. end
  1289. },
  1290. Mesh = {
  1291. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1292. local Msh = Create(Mesh)({
  1293. Parent = Part,
  1294. Offset = OffSet,
  1295. Scale = Scale
  1296. })
  1297. if Mesh == "SpecialMesh" then
  1298. Msh.MeshType = MeshType
  1299. Msh.MeshId = MeshId
  1300. end
  1301. return Msh
  1302. end
  1303. },
  1304. Weld = {
  1305. Create = function(Parent, Part0, Part1, C0, C1)
  1306. local Weld = Create("Weld")({
  1307. Parent = Parent,
  1308. Part0 = Part0,
  1309. Part1 = Part1,
  1310. C0 = C0,
  1311. C1 = C1
  1312. })
  1313. return Weld
  1314. end
  1315. },
  1316. Sound = {
  1317. Create = function(id, par, vol, pit)
  1318. coroutine.resume(coroutine.create(function()
  1319. local S = Create("Sound")({
  1320. Volume = vol,
  1321. Pitch = pit or 1,
  1322. SoundId = id,
  1323. Parent = par or workspace
  1324. })
  1325. wait()
  1326. S:play()
  1327. game:GetService("Debris"):AddItem(S, 10)
  1328. end))
  1329. end
  1330. },
  1331.  
  1332. ["TimeSound"] = {
  1333. Create = function(id, par, vol, pit, timepos)
  1334. coroutine.resume(coroutine.create(function()
  1335. local S = Create("Sound"){
  1336. Volume = vol,
  1337. Name = "EffectSoundo",
  1338. Pitch = pit or 1,
  1339. SoundId = id,
  1340. TimePosition = timepos,
  1341. Parent = par or workspace,
  1342. }
  1343. wait()
  1344. S:play()
  1345. game:GetService("Debris"):AddItem(S, 10)
  1346. end))
  1347. end;
  1348. };
  1349. ["EchoSound"] = {
  1350. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  1351. coroutine.resume(coroutine.create(function()
  1352. local Sas = Create("Sound"){
  1353. Volume = vol,
  1354. Name = "EffectSoundo",
  1355. Pitch = pit or 1,
  1356. SoundId = id,
  1357. TimePosition = timepos,
  1358. Parent = par or workspace,
  1359. }
  1360. local E = Create("EchoSoundEffect"){
  1361. Delay = echodelay,
  1362. Name = "Echo",
  1363. Feedback = fedb,
  1364. DryLevel = dryl,
  1365. Parent = Sas,
  1366. }
  1367. wait()
  1368. Sas:play()
  1369. game:GetService("Debris"):AddItem(Sas, delays)
  1370. end))
  1371. end;
  1372. };
  1373. LongSound = {
  1374. Create = function(id, par, vol, pit)
  1375. coroutine.resume(coroutine.create(function()
  1376. local S = Create("Sound")({
  1377. Volume = vol,
  1378. Pitch = pit or 1,
  1379. SoundId = id,
  1380. Parent = par or workspace
  1381. })
  1382. wait()
  1383. S:play()
  1384. game:GetService("Debris"):AddItem(S, 30)
  1385. end))
  1386. end
  1387. },
  1388. ParticleEmitter = {
  1389. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1390. local fp = Create("ParticleEmitter")({
  1391. Parent = Parent,
  1392. Color = ColorSequence.new(Color1, Color2),
  1393. LightEmission = LightEmission,
  1394. Size = Size,
  1395. Texture = Texture,
  1396. Transparency = Transparency,
  1397. ZOffset = ZOffset,
  1398. Acceleration = Accel,
  1399. Drag = Drag,
  1400. LockedToPart = LockedToPart,
  1401. VelocityInheritance = VelocityInheritance,
  1402. EmissionDirection = EmissionDirection,
  1403. Enabled = Enabled,
  1404. Lifetime = LifeTime,
  1405. Rate = Rate,
  1406. Rotation = Rotation,
  1407. RotSpeed = RotSpeed,
  1408. Speed = Speed,
  1409. VelocitySpread = VelocitySpread
  1410. })
  1411. return fp
  1412. end
  1413. },
  1414. CreateTemplate = {}
  1415. }
  1416. function waveEff(bonuspeed,type,typeoftrans,pos,scale,value,value2,color)
  1417. local type = type
  1418. local rng = Instance.new("Part", char)
  1419.         rng.Anchored = true
  1420.         rng.BrickColor = color
  1421.         rng.CanCollide = false
  1422.         rng.FormFactor = 3
  1423.         rng.Name = "Ring"
  1424.         rng.Material = "Neon"
  1425.         rng.Size = Vector3.new(1, 1, 1)
  1426.         rng.Transparency = 0
  1427. if typeoftrans == "In" then
  1428. rng.Transparency = 1
  1429. end
  1430.         rng.TopSurface = 0
  1431.         rng.BottomSurface = 0
  1432.         rng.CFrame = pos
  1433.         local rngm = Instance.new("SpecialMesh", rng)
  1434.         rngm.MeshType = "FileMesh"
  1435. rngm.MeshId = "rbxassetid://20329976"
  1436. rngm.Scale = scale
  1437. local scaler2 = 1
  1438. local scaler2b = 1
  1439. if type == "Add" then
  1440. scaler2 = 1*value
  1441. scaler2b = 1*value2
  1442. elseif type == "Divide" then
  1443. scaler2 = 1/value
  1444. scaler2b = 1/value2
  1445. end
  1446. local randomrot = math.random(1,2)
  1447. coroutine.resume(coroutine.create(function()
  1448. for i = 0,10/bonuspeed,0.1 do
  1449. swait()
  1450. if type == "Add" then
  1451. scaler2 = scaler2 - 0.01*value/bonuspeed
  1452. scaler2b = scaler2b - 0.01*value/bonuspeed
  1453. elseif type == "Divide" then
  1454. scaler2 = scaler2 - 0.01/value*bonuspeed
  1455. scaler2b = scaler2b - 0.01/value*bonuspeed
  1456. end
  1457. if randomrot == 1 then
  1458. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(5*bonuspeed/2),0)
  1459. elseif randomrot == 2 then
  1460. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-5*bonuspeed/2),0)
  1461. end
  1462. if typeoftrans == "Out" then
  1463. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1464. elseif typeoftrans == "In" then
  1465. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  1466. end
  1467. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2*bonuspeed)
  1468. end
  1469. rng:Destroy()
  1470. end))
  1471. end
  1472.  
  1473. function dmg(dude)
  1474.     local keptcolor = MAINCOLOR
  1475. if dude.Name ~= Character then
  1476. local bgf = Instance.new("BodyGyro",dude.Head)
  1477. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  1478. --[[local val = Instance.new("BoolValue",dude)
  1479. val.Name = "IsHit"]]--
  1480. local ds = coroutine.wrap(function()
  1481. dude:WaitForChild("Head"):BreakJoints()
  1482. for i, v in pairs(dude:GetChildren()) do
  1483. if v:IsA("BasePart") or v:IsA("MeshPart") then
  1484. v.Name = "DEMINISHED"
  1485. CFuncs["Sound"].Create("rbxassetid://763718160", v, 0.75, 1.1)
  1486. CFuncs["Sound"].Create("rbxassetid://782353443", v, 1, 1)
  1487. --[[for i = 0, 1 do
  1488. sphere2(1,"Add",v.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,10,-0.01,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
  1489. end]]--
  1490. end
  1491. end
  1492. wait(0.5)
  1493. targetted = nil
  1494. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.25, 0.285)
  1495. coroutine.resume(coroutine.create(function()
  1496. for i, v in pairs(dude:GetChildren()) do
  1497. if v:IsA("Accessory") then
  1498. v:Destroy()
  1499. end
  1500. if v:IsA("Humanoid") then
  1501. v:Destroy()
  1502. end
  1503. if v:IsA("CharacterMesh") then
  1504. v:Destroy()
  1505. end
  1506. if v:IsA("Model") then
  1507. v:Destroy()
  1508. end
  1509. if v:IsA("BasePart") or v:IsA("MeshPart") then
  1510. for x, o in pairs(v:GetChildren()) do
  1511. if o:IsA("Decal") then
  1512. o:Destroy()
  1513. end
  1514. end
  1515. coroutine.resume(coroutine.create(function()
  1516. v.Material = "Neon"
  1517. v.CanCollide = false
  1518. v.Anchored = false
  1519. local bld = Instance.new("ParticleEmitter",v)
  1520. bld.LightEmission = 0.75
  1521. bld.Texture = "rbxassetid://2273224484" ---284205403
  1522. bld.Color = ColorSequence.new(keptcolor.Color)
  1523. bld.Rate = 15
  1524. bld.Lifetime = NumberRange.new(1)
  1525. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  1526. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  1527. bld.Speed = NumberRange.new(2,5)
  1528. bld.VelocitySpread = 50000
  1529. bld.Rotation = NumberRange.new(-500,500)
  1530. bld.RotSpeed = NumberRange.new(-500,500)
  1531.         local sbs = Instance.new("BodyPosition", v)
  1532.         sbs.P = 3000
  1533.         sbs.D = 1000
  1534.         sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1535.         sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  1536. v.Color = keptcolor.Color
  1537. coroutine.resume(coroutine.create(function()
  1538. for i = 0, 49 do
  1539. swait(1)
  1540. v:BreakJoints()
  1541. v.Transparency = v.Transparency + 0.02
  1542. end
  1543. v:BreakJoints()
  1544. for i = 0, 4 do
  1545. slash(math.random(10,50)/10,3,true,"Round","Add","Out",v.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.0025,0.01),math.random(10,100)/2500,BrickColor.new("White"))
  1546. end
  1547. block(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  1548. CFuncs["Sound"].Create("rbxassetid://782353117", v, 0.25, 1.2)
  1549. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  1550. bld.Speed = NumberRange.new(10,25)
  1551. bld.Drag = 5
  1552. bld.Acceleration = vt(0,2,0)
  1553. wait(0.5)
  1554. bld.Enabled = false
  1555. wait(4)
  1556. coroutine.resume(coroutine.create(function()
  1557. for i = 0, 99 do
  1558. swait()
  1559. v:Destroy()
  1560. dude:Destroy()
  1561. end
  1562. end))
  1563. end))
  1564. end))
  1565. end
  1566. end
  1567. end))
  1568. end)
  1569. ds()
  1570. end
  1571. end
  1572.  
  1573. function FindNearestHead(Position, Distance, SinglePlayer)
  1574.     if SinglePlayer then
  1575.         return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  1576.     end
  1577.     local List = {}
  1578.     for i, v in pairs(workspace:GetChildren()) do
  1579.         if v:IsA("Model") then
  1580.             if v:findFirstChild("Head") then
  1581.                 if v ~= Character then
  1582.                     if (v.Head.Position - Position).magnitude <= Distance then
  1583.                         table.insert(List, v)
  1584.                     end
  1585.                 end
  1586.             end
  1587.         end
  1588.     end
  1589.     return List
  1590. end
  1591.  
  1592.  
  1593.  
  1594. --        RAGDOLL STUFF
  1595.  
  1596.  
  1597. function recurse(root,callback,i)
  1598.     i= i or 0
  1599.     for _,v in pairs(root:GetChildren()) do
  1600.         i = i + 1
  1601.         callback(i,v)
  1602.        
  1603.         if #v:GetChildren() > 0 then
  1604.             i = recurse(v,callback,i)
  1605.         end
  1606.     end
  1607.    
  1608.     return i
  1609. end
  1610.  
  1611. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  1612.     attachmentName = attachmentName.."RigAttachment"
  1613.     local constraint = Instance.new(className.."Constraint")
  1614.     constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  1615.     constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  1616.     constraint.Name = "RagdollConstraint"..part1.Name
  1617.    
  1618.     for _,propertyData in next,properties or {} do
  1619.         constraint[propertyData[1]] = propertyData[2]
  1620.     end
  1621.    
  1622.     constraint.Parent = character
  1623. end
  1624.  
  1625. function getAttachment0(character, attachmentName)
  1626.     for _,child in next,character:GetChildren() do
  1627.         local attachment = child:FindFirstChild(attachmentName)
  1628.         if attachment then
  1629.             return attachment
  1630.         end
  1631.     end
  1632. end
  1633.  
  1634. function ArtificialHitbox(Part)
  1635.     local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  1636.     HITBOX.CanCollide = true
  1637.     HITBOX.CFrame = Part.CFrame
  1638.     weldBetween(Part,HITBOX)
  1639. end
  1640.  
  1641. function R15Ragdoll(character,KeepArms)
  1642.     character:BreakJoints()
  1643.     coroutine.resume(coroutine.create(function()
  1644.         recurse(character, function(_,v)
  1645.             if v:IsA("Attachment") then
  1646.                 v.Axis = Vector3.new(0, 1, 0)
  1647.                 v.SecondaryAxis = Vector3.new(0, 0, 1)
  1648.                 v.Rotation = Vector3.new(0, 0, 0)
  1649.             end
  1650.         end)
  1651.         for _,child in next,character:GetChildren() do
  1652.             if child:IsA("Accoutrement") then
  1653.                 for _,part in next,child:GetChildren() do
  1654.                     if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  1655.                         local attachment1 = part:FindFirstChildOfClass("Attachment")
  1656.                         local attachment0 = getAttachment0(character,attachment1.Name)
  1657.                         if attachment0 and attachment1 then
  1658.                             local constraint = Instance.new("HingeConstraint")
  1659.                             constraint.Attachment0 = attachment0
  1660.                             constraint.Attachment1 = attachment1
  1661.                             constraint.LimitsEnabled = true
  1662.                             constraint.UpperAngle = 0
  1663.                             constraint.LowerAngle = 0
  1664.                             constraint.Parent = character
  1665.                         end
  1666.                         ArtificialHitbox(part)
  1667.                     elseif part.Name == "HumanoidRootPart" then
  1668.                         part:remove()
  1669.                     end
  1670.                 end
  1671.             end
  1672.         end
  1673.        
  1674.         ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  1675.             {"LimitsEnabled",true};
  1676.             {"UpperAngle",5};
  1677.         })
  1678.         if character:FindFirstChild("Head") then
  1679.             ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  1680.                 {"LimitsEnabled",true};
  1681.                 {"UpperAngle",15};
  1682.             })
  1683.         end
  1684.        
  1685.         local handProperties = {
  1686.             {"LimitsEnabled", true};
  1687.             {"UpperAngle",0};
  1688.             {"LowerAngle",0};
  1689.         }
  1690.         ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  1691.         ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  1692.        
  1693.         local shinProperties = {
  1694.             {"LimitsEnabled", true};
  1695.             {"UpperAngle", 0};
  1696.             {"LowerAngle", -75};
  1697.         }
  1698.         ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  1699.         ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  1700.        
  1701.         local footProperties = {
  1702.             {"LimitsEnabled", true};
  1703.             {"UpperAngle", 15};
  1704.             {"LowerAngle", -45};
  1705.         }
  1706.         ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  1707.         ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  1708.         if KeepArms == true then
  1709.             ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  1710.             ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  1711.             ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  1712.             ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  1713.         end
  1714.         ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  1715.         ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  1716.         Debris:AddItem(character,50)
  1717.     end))
  1718. end
  1719.  
  1720. function Ragdoll(Character2,CharTorso,KeepArms)
  1721.     coroutine.resume(coroutine.create(function()
  1722.         Character2:BreakJoints()
  1723.         local hum = Character2:findFirstChild("Humanoid")
  1724.         hum:remove()
  1725.         local function Scan(ch)
  1726.             local e
  1727.             for e = 1,#ch do
  1728.                 Scan(ch[e]:GetChildren())
  1729.                 if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1730.                     ch[e]:remove()
  1731.                 end
  1732.             end
  1733.         end
  1734.         local NEWHUM = IT("Humanoid")
  1735.         NEWHUM.Name = "Corpse"
  1736.         NEWHUM.Health = 0
  1737.         NEWHUM.MaxHealth = 0
  1738.         NEWHUM.PlatformStand = true
  1739.         NEWHUM.Parent = Character2
  1740.         NEWHUM.DisplayDistanceType = "None"
  1741.    
  1742.         local ch = Character2:GetChildren()
  1743.         local i
  1744.         for i = 1,#ch do
  1745.             if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1746.                 ch[i]:remove()
  1747.             end
  1748.         end
  1749.    
  1750.         local Torso2 = Character2.Torso
  1751.         local movevector = Vector3.new()
  1752.    
  1753.         if Torso2 then
  1754.             movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  1755.             local Head = Character2:FindFirstChild("Head")
  1756.             if Head then
  1757.                 local Neck = Instance.new("Weld")
  1758.                 Neck.Name = "Neck"
  1759.                 Neck.Part0 = Torso2
  1760.                 Neck.Part1 = Head
  1761.                 Neck.C0 = CFrame.new(0, 1.5, 0)
  1762.                 Neck.C1 = CFrame.new()
  1763.                 Neck.Parent = Torso2
  1764.    
  1765.             end
  1766.             local Limb = Character2:FindFirstChild("Right Arm")
  1767.             if Limb and KeepArms == true then
  1768.    
  1769.                 Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1770.                 local Joint = Instance.new("Glue")
  1771.                 Joint.Name = "RightShoulder"
  1772.                 Joint.Part0 = Torso2
  1773.                 Joint.Part1 = Limb
  1774.                 Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1775.                 Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1776.                 Joint.Parent = Torso2
  1777.    
  1778.                 local B = Instance.new("Part")
  1779.                 B.TopSurface = 0
  1780.                 B.BottomSurface = 0
  1781.                 B.formFactor = "Symmetric"
  1782.                 B.Size = Vector3.new(1, 1, 1)
  1783.                 B.Transparency = 1
  1784.                 B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1785.                 B.Parent = Character2
  1786.                 local W = Instance.new("Weld")
  1787.                 W.Part0 = Limb
  1788.                 W.Part1 = B
  1789.                 W.C0 = CFrame.new(0, -0.5, 0)
  1790.                 W.Parent = Limb
  1791.    
  1792.             end
  1793.             local Limb = Character2:FindFirstChild("Left Arm")
  1794.             if Limb and KeepArms == true then
  1795.    
  1796.                 Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1797.                 local Joint = Instance.new("Glue")
  1798.                 Joint.Name = "LeftShoulder"
  1799.                 Joint.Part0 = Torso2
  1800.                 Joint.Part1 = Limb
  1801.                 Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1802.                 Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1803.                 Joint.Parent = Torso2
  1804.    
  1805.                 local B = Instance.new("Part")
  1806.                 B.TopSurface = 0
  1807.                 B.BottomSurface = 0
  1808.                 B.formFactor = "Symmetric"
  1809.                 B.Size = Vector3.new(1, 1, 1)
  1810.                 B.Transparency = 1
  1811.                 B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1812.                 B.Parent = Character2
  1813.                 local W = Instance.new("Weld")
  1814.                 W.Part0 = Limb
  1815.                 W.Part1 = B
  1816.                 W.C0 = CFrame.new(0, -0.5, 0)
  1817.                 W.Parent = Limb
  1818.    
  1819.             end
  1820.             local Limb = Character2:FindFirstChild("Right Leg")
  1821.             if Limb then
  1822.    
  1823.                 Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1824.                 local Joint = Instance.new("Glue")
  1825.                 Joint.Name = "RightHip"
  1826.                 Joint.Part0 = Torso2
  1827.                 Joint.Part1 = Limb
  1828.                 Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1829.                 Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1830.                 Joint.Parent = Torso2
  1831.    
  1832.                 local B = Instance.new("Part")
  1833.                 B.TopSurface = 0
  1834.                 B.BottomSurface = 0
  1835.                 B.formFactor = "Symmetric"
  1836.                 B.Size = Vector3.new(1, 1, 1)
  1837.                 B.Transparency = 1
  1838.                 B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1839.                 B.Parent = Character2
  1840.                 local W = Instance.new("Weld")
  1841.                 W.Part0 = Limb
  1842.                 W.Part1 = B
  1843.                 W.C0 = CFrame.new(0, -0.5, 0)
  1844.                 W.Parent = Limb
  1845.    
  1846.             end
  1847.             local Limb = Character2:FindFirstChild("Left Leg")
  1848.             if Limb then
  1849.    
  1850.                 Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1851.                 local Joint = Instance.new("Glue")
  1852.                 Joint.Name = "LeftHip"
  1853.                 Joint.Part0 = Torso2
  1854.                 Joint.Part1 = Limb
  1855.                 Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1856.                 Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1857.                 Joint.Parent = Torso2
  1858.    
  1859.                 local B = Instance.new("Part")
  1860.                 B.TopSurface = 0
  1861.                 B.BottomSurface = 0
  1862.                 B.formFactor = "Symmetric"
  1863.                 B.Size = Vector3.new(1, 1, 1)
  1864.                 B.Transparency = 1
  1865.                 B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1866.                 B.Parent = Character2
  1867.                 local W = Instance.new("Weld")
  1868.                 W.Part0 = Limb
  1869.                 W.Part1 = B
  1870.                 W.C0 = CFrame.new(0, -0.5, 0)
  1871.                 W.Parent = Limb
  1872.    
  1873.             end
  1874.             --[
  1875.             local Bar = Instance.new("Part")
  1876.             Bar.TopSurface = 0
  1877.             Bar.BottomSurface = 0
  1878.             Bar.formFactor = "Symmetric"
  1879.             Bar.Size = Vector3.new(1, 1, 1)
  1880.             Bar.Transparency = 1
  1881.             Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1882.             Bar.Parent = Character2
  1883.             local Weld = Instance.new("Weld")
  1884.             Weld.Part0 = Torso2
  1885.             Weld.Part1 = Bar
  1886.             Weld.C0 = CFrame.new(0, 0.5, 0)
  1887.             Weld.Parent = Torso2
  1888.             --]]
  1889.         end
  1890.         Character2.Parent = workspace
  1891.         Debris:AddItem(Character2,50)
  1892.    
  1893.         return Character2,Torso2
  1894.     end))
  1895. end
  1896.  
  1897.  
  1898. function Freeze(CHARACTER,LAST)
  1899.         local q = CHARACTER:GetChildren()
  1900.         for i = 1, #q do
  1901.             local bob = q[i]
  1902.             if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then
  1903.                 if bob.Transparency < 1 then
  1904.                     bob.Anchored = true
  1905.                     if bob:FindFirstChild("Ice") == nil then
  1906.                     local icelayer = bob:Clone()
  1907.                     icelayer.Parent = bob
  1908.                     icelayer.Material = "Ice"
  1909.                     icelayer.CanCollide = false
  1910.                     icelayer.BrickColor = BRICKC"Steel blue"
  1911.                     icelayer.Transparency = 0.5
  1912.                     icelayer.CFrame = bob.CFrame
  1913.                     icelayer.Name = "Ice"
  1914.                     icelayer.Size = icelayer.Size + VT(0.1,0.1,0.1)
  1915.                     if icelayer:FindFirstChildOfClass("Decal") then
  1916.                         icelayer:FindFirstChildOfClass("Decal"):remove()
  1917.                     end
  1918.                     end
  1919.                 end
  1920.             end
  1921.         end
  1922.         coroutine.resume(coroutine.create(function()
  1923.             swait(LAST*100)
  1924.             local q = CHARACTER:GetChildren()
  1925.             for i = 1, #q do
  1926.                 local bob = q[i]
  1927.                 if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then
  1928.                     if bob.Transparency < 1 then
  1929.                         bob.Anchored = false
  1930.                         bob.Ice:remove()
  1931.                     end
  1932.                 end
  1933.             end
  1934.         end))
  1935. end
  1936.  
  1937.  
  1938. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1939.   if hit.Parent == nil then
  1940.     return
  1941.   end
  1942.   local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1943.   for _, v in pairs(hit.Parent:children()) do
  1944.     if v:IsA("Humanoid") then
  1945.       h = v
  1946.     end
  1947.   end
  1948.   if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1949.     if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1950.       return
  1951.     end
  1952.     local c = Create("ObjectValue")({
  1953.       Name = "creator",
  1954.       Value = Player,
  1955.       Parent = h
  1956.     })
  1957.     game:GetService("Debris"):AddItem(c, 0.5)
  1958.     if HitSound ~= nil and HitPitch ~= nil then
  1959.       CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1960.     end
  1961.     local Damage = math.random(minim, maxim)
  1962.     local blocked = false
  1963.     local block = hit.Parent:findFirstChild("Block")
  1964.     if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1965.       blocked = true
  1966.       block.Value = block.Value - 1
  1967.       print(block.Value)
  1968.     end
  1969.     if blocked == false then
  1970.       HitHealth = h.Health
  1971.       h.MaxHealth = 100
  1972.       h.Health = h.Health - Damage
  1973.       if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1974.         print("gained kill")
  1975.                             if h.Parent:FindFirstChild("Torso") then
  1976.                       --  h.Parent:FindFirstChild("Torso").CFrame = h.Parent:FindFirstChild("Torso").CFrame * ANGLES(RAD(2), RAD(0), RAD(0))
  1977.                         Ragdoll(h.Parent,Torso,true)
  1978.                     elseif h.Parent:FindFirstChild("UpperTorso") then
  1979.                         R15Ragdoll(h.Parent,true)
  1980.                     end
  1981.       end
  1982.       ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1983.     else
  1984.       h.Health = h.Health - Damage / 2
  1985.       ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1986.     end
  1987.     if Type == "Knockdown" then
  1988.       local hum = hit.Parent.Humanoid
  1989.       hum.PlatformStand = true
  1990.       coroutine.resume(coroutine.create(function(HHumanoid)
  1991.         swait(1)
  1992.         HHumanoid.PlatformStand = false
  1993.       end), hum)
  1994.       local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1995.       local bodvol = Create("BodyVelocity")({
  1996.         velocity = angle * knockback,
  1997.         P = 5000,
  1998.         maxForce = Vector3.new(8000, 8000, 8000),
  1999.         Parent = hit
  2000.       })
  2001.       local rl = Create("BodyAngularVelocity")({
  2002.         P = 3000,
  2003.         maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  2004.         angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  2005.         Parent = hit
  2006.       })
  2007.       game:GetService("Debris"):AddItem(bodvol, 0.5)
  2008.       game:GetService("Debris"):AddItem(rl, 0.5)
  2009. elseif Type == "Freeze" then
  2010.           local vp = Create("BodyVelocity")({
  2011.         P = 500,
  2012.         maxForce = Vector3.new(math.huge, 0, math.huge),
  2013.         velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2014.       })
  2015.       if knockback > 0 then
  2016.         vp.Parent = hit.Parent.Head
  2017.       end
  2018.       game:GetService("Debris"):AddItem(vp, 0.5)
  2019.     if h.Parent then
  2020.     Freeze(h.Parent,3)
  2021.     end
  2022.     elseif Type == "Normal" then
  2023.       local vp = Create("BodyVelocity")({
  2024.         P = 500,
  2025.         maxForce = Vector3.new(math.huge, 0, math.huge),
  2026.         velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2027.       })
  2028.       if knockback > 0 then
  2029.         vp.Parent = hit.Parent.Head
  2030.       end
  2031.       game:GetService("Debris"):AddItem(vp, 0.5)
  2032.     elseif Type == "Up" then
  2033.       local bodyVelocity = Create("BodyVelocity")({
  2034.         velocity = Vector3.new(0, 20, 0),
  2035.         P = 5000,
  2036.         maxForce = Vector3.new(8000, 8000, 8000),
  2037.         Parent = hit
  2038.       })
  2039.       game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2040.       local bodyVelocity = Create("BodyVelocity")({
  2041.         velocity = Vector3.new(0, 20, 0),
  2042.         P = 5000,
  2043.         maxForce = Vector3.new(8000, 8000, 8000),
  2044.         Parent = hit
  2045.       })
  2046.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2047.     elseif Type == "Leech" then
  2048.       local hum = hit.Parent.Humanoid
  2049.       if hum ~= nil then
  2050.         for i = 0, 2 do
  2051.         --  Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  2052.         end
  2053.         Humanoid.Health = Humanoid.Health + 10
  2054.       end
  2055.     elseif Type == "UpKnock" then
  2056.       local hum = hit.Parent.Humanoid
  2057.       hum.PlatformStand = true
  2058.       if hum ~= nil then
  2059.         hitr = true
  2060.       end
  2061.       coroutine.resume(coroutine.create(function(HHumanoid)
  2062.         swait(5)
  2063.         HHumanoid.PlatformStand = false
  2064.         hitr = false
  2065.       end), hum)
  2066.       local bodyVelocity = Create("BodyVelocity")({
  2067.         velocity = Vector3.new(0, 20, 0),
  2068.         P = 5000,
  2069.         maxForce = Vector3.new(8000, 8000, 8000),
  2070.         Parent = hit
  2071.       })
  2072.       game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2073.       local bodyVelocity = Create("BodyVelocity")({
  2074.         velocity = Vector3.new(0, 20, 0),
  2075.         P = 5000,
  2076.         maxForce = Vector3.new(8000, 8000, 8000),
  2077.         Parent = hit
  2078.       })
  2079.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2080.     elseif Type == "Snare" then
  2081.       local bp = Create("BodyPosition")({
  2082.         P = 2000,
  2083.         D = 100,
  2084.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2085.         position = hit.Parent.Torso.Position,
  2086.         Parent = hit.Parent.Torso
  2087.       })
  2088.       game:GetService("Debris"):AddItem(bp, 1)
  2089.     elseif Type == "Slashnare" then
  2090.     --  Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  2091.       for i = 1, math.random(4, 5) do
  2092.      -- Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  2093.       end
  2094.       local bp = Create("BodyPosition")({
  2095.         P = 2000,
  2096.         D = 100,
  2097.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2098.         position = hit.Parent.Torso.Position,
  2099.         Parent = hit.Parent.Torso
  2100.       })
  2101.       game:GetService("Debris"):AddItem(bp, 1)
  2102.     elseif Type == "Spike" then
  2103.      -- CreateBigIceSword(hit.Parent.Torso.CFrame)
  2104.       local bp = Create("BodyPosition")({
  2105.         P = 2000,
  2106.         D = 100,
  2107.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2108.         position = hit.Parent.Torso.Position,
  2109.         Parent = hit.Parent.Torso
  2110.       })
  2111.       game:GetService("Debris"):AddItem(bp, 1)
  2112.     elseif Type == "Freeze" then
  2113.       local BodPos = Create("BodyPosition")({
  2114.         P = 50000,
  2115.         D = 1000,
  2116.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2117.         position = hit.Parent.Torso.Position,
  2118.         Parent = hit.Parent.Torso
  2119.       })
  2120.       local BodGy = Create("BodyGyro")({
  2121.         maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  2122.         P = 20000,
  2123.         Parent = hit.Parent.Torso,
  2124.         cframe = hit.Parent.Torso.CFrame
  2125.       })
  2126.       hit.Parent.Torso.Anchored = true
  2127.       coroutine.resume(coroutine.create(function(Part)
  2128.         swait(1.5)
  2129.         Part.Anchored = false
  2130.       end), hit.Parent.Torso)
  2131.       game:GetService("Debris"):AddItem(BodPos, 3)
  2132.       game:GetService("Debris"):AddItem(BodGy, 3)
  2133.     end
  2134.     local debounce = Create("BoolValue")({
  2135.       Name = "DebounceHit",
  2136.       Parent = hit.Parent,
  2137.       Value = true
  2138.     })
  2139.     game:GetService("Debris"):AddItem(debounce, Delay)
  2140.     c = Instance.new("ObjectValue")
  2141.     c.Name = "creator"
  2142.     c.Value = Player
  2143.     c.Parent = h
  2144.     game:GetService("Debris"):AddItem(c, 0.5)
  2145.   end
  2146. end
  2147. function RemoveOutlines(part)
  2148.   part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  2149. end
  2150.  
  2151. function CrystalEffect(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,outerpos)
  2152. local type = type
  2153. local rng = CrystalEff:Clone()
  2154.         rng.Parent = char
  2155.         rng.Anchored = true
  2156.         rng.CanCollide = false
  2157.         rng.Name = "Ring"
  2158.         rng.Material = "Neon"
  2159.         rng.Size = Vector3.new(x1, y1, z1)
  2160.         rng.Transparency = 0.25
  2161.         rng.TopSurface = 0
  2162.         rng.BottomSurface = 0
  2163.         rng.CFrame = pos
  2164. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2165. local scaler2 = 1
  2166. local speeder = FastSpeed
  2167. if type == "Add" then
  2168. scaler2 = 1*value
  2169. elseif type == "Divide" then
  2170. scaler2 = 1/value
  2171. end
  2172. coroutine.resume(coroutine.create(function()
  2173. for i = 0,10/bonuspeed,0.1 do
  2174. swait()
  2175. if type == "Add" then
  2176. scaler2 = scaler2 - 0.01*value/bonuspeed
  2177. elseif type == "Divide" then
  2178. scaler2 = scaler2 - 0.01/value*bonuspeed
  2179. end
  2180. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2181. rng.CFrame = rng.CFrame + Vector3.new(0,0.05,0)
  2182. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2183. end
  2184. rng:Destroy()
  2185. end))
  2186. end
  2187.  
  2188.  
  2189.  
  2190. function TriangleEffect(bonuspeed,FastSpeed,type,pos,value,outerpos)
  2191. local type = type
  2192. local rng = Triangle2:Clone()
  2193.         rng.Parent = char
  2194.         rng.Anchored = true
  2195.         rng.CanCollide = false
  2196.         rng.Name = "Ring"
  2197.         rng.Material = "Neon"
  2198.         rng.Transparency = 0.32
  2199.         rng.TopSurface = 0
  2200.         rng.BottomSurface = 0
  2201.         rng.CFrame = pos
  2202. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2203. local scaler2 = 1
  2204. local speeder = FastSpeed
  2205. if type == "Add" then
  2206. scaler2 = 1*value
  2207. elseif type == "Divide" then
  2208. scaler2 = 1/value
  2209. end
  2210. coroutine.resume(coroutine.create(function()
  2211. for i = 0,10/bonuspeed,0.1 do
  2212. swait()
  2213. if type == "Add" then
  2214. scaler2 = scaler2 - 0.01*value/bonuspeed
  2215. elseif type == "Divide" then
  2216. scaler2 = scaler2 - 0.01/value*bonuspeed
  2217. end
  2218. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2219. rng.CFrame = rng.CFrame + Vector3.new(0,0.05,0)
  2220. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2221. end
  2222. rng:Destroy()
  2223. end))
  2224. end
  2225.  
  2226. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2227.   local Part = Create("Part")({
  2228.     Parent = Parent,
  2229.     Reflectance = Reflectance,
  2230.     Transparency = Transparency,
  2231.     CanCollide = false,
  2232.     Locked = true,
  2233.     BrickColor = BrickColor.new(tostring(BColor)),
  2234.     Name = Name,
  2235.     Size = Size,
  2236.     Material = Material
  2237.   })
  2238.   Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  2239.   RemoveOutlines(Part)
  2240.   return Part
  2241. end
  2242. function ShowDamage(Pos, Text, Time, Color)
  2243. coroutine.resume(coroutine.create(function()
  2244.   local Rate = 0.03333333333333333
  2245.   local Pos = Pos or Vector3.new(0, 0, 0)
  2246.   local Text = Text or ""
  2247.   local Color = Color or Color3.new(1, 0, 1)
  2248.   local EffectPart = CreatePart(Character, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2249.   EffectPart.Anchored = true
  2250.   EffectPart.CFrame = CFrame.new(Pos)
  2251.   local BillboardGui = Create("BillboardGui")({
  2252.     Size = UDim2.new(6, 0, 6, 0),
  2253.     Adornee = EffectPart,
  2254.     Parent = EffectPart,
  2255.     AlwaysOnTop=true,
  2256.     Active=true
  2257.   })
  2258.   local TextLabel = Create("TextLabel")({
  2259.     BackgroundTransparency = 1,
  2260.     AnchorPoint=Vector2.new(.5,.5),
  2261.     Position = UDim2.new(.5, 0, .5, 0),
  2262.     Size = UDim2.new(1, 0, 1, 0),
  2263.     Text = Text,
  2264.     TextColor3 = MAINCOLOR.Color,
  2265.     TextStrokeColor3 = Color3.new(0,0,0),
  2266.     TextStrokeTransparency=0,
  2267.     TextScaled = true,
  2268.     Font = "Arcade",
  2269.     Parent = BillboardGui,
  2270.     ZIndex=4,
  2271.   })
  2272. local raise=.2
  2273. local rot=math.random(-10,10)/15
  2274. local aaa=math.random(-360,360)
  2275. local bbb=math.random(-360,360)
  2276. for aaa=0,2,.01 do
  2277. swait()
  2278. raise=raise-.008
  2279. if Mode == "R" then
  2280.     TextLabel.TextColor3 = C3(r/255,g/255,b/255)
  2281. end
  2282. TextLabel.Rotation = TextLabel.Rotation+rot
  2283. TextLabel.TextTransparency=aaa
  2284. TextLabel.TextStrokeTransparency=aaa
  2285. EffectPart.Position=EffectPart.Position+Vector3.new(0,raise,0)
  2286. end
  2287. wait(3)
  2288. BillboardGui:Remove()
  2289. EffectPart:Remove()
  2290. end))
  2291. end
  2292. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2293.   for _, c in pairs(workspace:children()) do
  2294.     local hum = c:findFirstChildOfClass("Humanoid")
  2295.     if hum ~= nil then
  2296.       local head = c:findFirstChild("Head")
  2297.       if head ~= nil then
  2298.         local targ = head.Position - Part.Position
  2299.         local mag = targ.magnitude
  2300.         if magni >= mag and c.Name ~= Player.Name then
  2301.           Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2302.         end
  2303.       end
  2304.     end
  2305.   end
  2306. end
  2307.  
  2308. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2309.   for _, c in pairs(workspace:children()) do
  2310.     local hum = c:findFirstChild("Humanoid")
  2311.     if hum ~= nil then
  2312.       local head = c:findFirstChild("Torso")
  2313.       if head ~= nil then
  2314.         local targ = head.Position - Part.Position
  2315.         local mag = targ.magnitude
  2316.         if magni >= mag and c.Name ~= Player.Name then
  2317.     --MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2318.           Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2319.         end
  2320.       end
  2321.     end
  2322.   end
  2323. end
  2324. function FindNearestTorso(pos,distance)
  2325. local list=(workspace:children())
  2326. local torso=nil
  2327. local dist=distance
  2328. local temp,human,temp2=nil,nil,nil
  2329. for x=1,#list do
  2330. temp2=list[x]
  2331. if temp2.className=="Model"and temp2.Name~=char.Name then
  2332. temp=temp2:findFirstChild("Torso")
  2333. human=temp2:findFirstChildOfClass("Humanoid")
  2334. if temp~=nil and human~=nil and human.Health>=0 and (temp.Position-pos).magnitude<dist then
  2335. local dohit=true
  2336. if dohit==true then
  2337. torso=temp
  2338. dist=(temp.Position-pos).magnitude
  2339. end
  2340. end
  2341. end
  2342. end
  2343. return torso,dist
  2344. end
  2345.  
  2346. function LunarAttack()
  2347. attacking = true
  2348. Speed = 0
  2349. CFuncs["Sound"].Create("rbxassetid://1368583274", larm, 4.5, 1.625)
  2350. local OverCut = false
  2351. for i = 0, 4, 0.1 do
  2352. swait()
  2353. MagniDamage(Torso, 13, 2,6, 0, "Normal",153092213)
  2354. --slash(math.random(10,30)/10,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.001,0.1),math.random(50,400)/420,BrickColor.new("White"))
  2355. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  2356. slash(math.random(20,40)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.025,0.001,0.025),-0.025,BrickColor.new("White"))
  2357. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  2358. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(3)),.3)
  2359. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  2360. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(5),math.rad(-50)),.3)
  2361. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-170),math.rad(-10),math.rad(0)),.3)
  2362. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(20),math.rad(40),math.rad(-20)),.3)
  2363. end
  2364. local orb = basketball:Clone()
  2365. orb.Parent = Character
  2366. orb.Name = "basketball"
  2367. orb.Torso.CFrame = root.CFrame*CFrame.new(0,7,0)--50,0)
  2368. local x = orb.Torso
  2369. local keptcolor = MAINCOLOR
  2370. local poste = 0
  2371. local rotation = 0
  2372. local upperpos = 0
  2373. local rate = 0
  2374. for i,v in pairs(orb:GetChildren()) do
  2375.     if v:IsA("BasePart") then
  2376. v.Anchored = true
  2377. v.CanCollide = false
  2378. v.Transparency = 0
  2379. end
  2380. end
  2381. OverCut = true
  2382. for i = 0, 6 do
  2383. --slash(math.random(10,30)/10,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.001,0.1),math.random(50,400)/420,BrickColor.new("White"))
  2384. end
  2385. --sphere2(2,"Add",x.CFrame,vt(10,10,10),0.5,0.5,0.5,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
  2386. --sphere2(3,"Add",x.CFrame,vt(10,10,10),0.75,0.75,0.75,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
  2387. --sphere2(4,"Add",x.CFrame,vt(10,10,10),1,1,1,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
  2388. CFuncs["Sound"].Create("rbxassetid://1368637781", orb, 7.5, 1)
  2389. local a = Instance.new("Part",workspace)
  2390. a.Name = "Direction"   
  2391. a.Anchored = true
  2392. a.Transparency = 1
  2393. a.CanCollide = false
  2394. local ray = Ray.new(
  2395. x.CFrame.p,                           -- origin
  2396. (mouse.Hit.p - x.CFrame.p).unit * 500 -- direction
  2397. )
  2398. local ignore = x
  2399. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2400. a.BottomSurface = 10
  2401. a.TopSurface = 10
  2402. local distance = (x.CFrame.p - position).magnitude
  2403. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2404. a.CFrame = CFrame.new(x.CFrame.p, position) * CFrame.new(0, 0, 0)
  2405. x.CFrame = a.CFrame
  2406. for i = 0, 2, 0.1 do
  2407. swait()
  2408. --sphere2(5,"Add",x.CFrame*CFrame.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
  2409. ray = Ray.new(
  2410. x.CFrame.p,                           -- origin
  2411. (mouse.Hit.p - x.CFrame.p).unit * 500 -- direction
  2412. )
  2413. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2414. distance = (x.CFrame.p - position).magnitude
  2415. a.CFrame = CFrame.new(x.CFrame.p, position) * CFrame.new(0, 0, 0)
  2416. x.CFrame = a.CFrame
  2417. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  2418. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  2419. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(40),math.rad(3)),.3)
  2420. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  2421. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-60)),.3)
  2422. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-100),math.rad(-0),math.rad(110)),.3)
  2423. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(1),math.rad(11),math.rad(12)),.3)
  2424. end
  2425. swait(30)
  2426. x.CFrame = a.CFrame
  2427. for i,v in pairs(orb:GetChildren()) do
  2428.     if v:IsA("BasePart") then
  2429. v.Anchored = false
  2430. end
  2431. end
  2432. a:Destroy()
  2433. local bv = Instance.new("BodyVelocity")
  2434. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2435. bv.velocity = x.CFrame.lookVector*100
  2436. bv.Parent = x
  2437. local hitted = false
  2438. CFuncs["Sound"].Create("rbxassetid://466493476", orb, 7.5, 0.7)
  2439. x.CFrame = x.CFrame * CFrame.Angles(0,math.rad(360*math.cos(sne/6)),0)
  2440. --waveEff(2,"Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.1,BrickColor.new("Bright yellow"))
  2441. --waveEff(4,"Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.05,BrickColor.new("Bright blue"))
  2442. coroutine.resume(coroutine.create(function()
  2443. while true do
  2444. swait(2)
  2445. if hitted == false and x.Parent ~= nil then
  2446.     MagniDamage(x, 5, 3,6, 0, "Normal",153092213)
  2447.     --orb.CFrame = orb.CFrame * CFrame.Angles(math.rad(360*math.cos(sne/6)),0,0)
  2448. --slash(3,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.075,0.005,0.075),-0.05,BrickColor.new("White"))
  2449. elseif hitted == true and x.Parent == nil then
  2450. break
  2451. end
  2452. end
  2453. end))
  2454. --[[x.Touched:connect(function(hit)
  2455. if hitted == false and hit.Parent ~= char then
  2456. hitted = true
  2457. MagniDamage(x, 67, 23,32, 0, "Normal",153092213)
  2458. CFuncs["Sound"].Create("rbxassetid://763717897", x, 10, 1)
  2459. CFuncs["Sound"].Create("rbxassetid://1295446488", x, 9, 0.75)
  2460. for i = 0, 24 do
  2461. slash(math.random(15,30)/10,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.001,0.01),math.random(125,250)/350,BrickColor.new("White"))
  2462. end
  2463. slash(1,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.015,0.01),2.5,BrickColor.new("White"))
  2464. slash(1,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.01,0.01),3,BrickColor.new("White"))
  2465. sphere2(1,"Add",x.CFrame,vt(15,15,15),2,2,2,BrickColor.new("New Yeller"),BrickColor.new("New Yeller").Color)
  2466. sphere2(1.5,"Add",x.CFrame,vt(15,10,15),2.1,2.1,2.1,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
  2467. sphere2(2,"Add",x.CFrame,vt(15,15,15),2.2,2.2,2.2,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
  2468. for i,v in pairs(orb:GetChildren()) do
  2469.     if v:IsA("BasePart") then
  2470. v.Anchored = true
  2471. v.Transparency = 1
  2472. end
  2473. end
  2474. coroutine.resume(coroutine.create(function()
  2475. for i = 0, 4, 0.1 do
  2476. swait()
  2477. --slash(math.random(10,50)/10,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.015,0.01),1.5,BrickColor.new("Bright blue"))
  2478. end
  2479. end))
  2480. wait(10)
  2481. orb:Remove()()
  2482. end
  2483. end)]]--
  2484. game:GetService("Debris"):AddItem(orb, 20)
  2485. for i = 0, 1, 0.1 do
  2486. swait()
  2487. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  2488. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  2489. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(3)),.3)
  2490. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.4,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  2491. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  2492. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-40),math.rad(20)),.3)
  2493. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-80)),.3)
  2494. end
  2495. attacking = false
  2496. Speed = 43
  2497. end
  2498.  
  2499. function LunarAttackA()
  2500. attacking = true
  2501. Speed = 0
  2502. CFuncs["Sound"].Create("rbxassetid://1368583274", larm, 4.5, 1.2)
  2503. local OverCut = false
  2504. for i = 0, 10, 0.1 do
  2505. swait()
  2506. MagniDamage(Torso, 12, 2,5, 0, "Normal",153092213)
  2507. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  2508. slash(math.random(20,40)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.025,0.001,0.025),-0.025,BrickColor.new("White"))
  2509. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  2510. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(3)),.3)
  2511. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  2512. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(5),math.rad(-50)),.3)
  2513. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-170),math.rad(-10),math.rad(0)),.3)
  2514. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(20),math.rad(40),math.rad(-20)),.3)
  2515. end
  2516. OverCut = true
  2517. local orb = MoonEffect:Clone()
  2518. orb.Anchored = true
  2519. orb.Parent = Character
  2520. orb.CanCollide = false
  2521. orb.Name = "Orbieee"
  2522. orb.CFrame = root.CFrame*CFrame.new(0,50,0)
  2523. for i = 0, 24 do
  2524. slash(math.random(10,30)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.001,0.1),math.random(50,400)/420,BrickColor.new("White"))
  2525. end
  2526. sphere2(2,"Add",orb.CFrame,vt(10,10,10),0.5,0.5,0.5,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
  2527. sphere2(3,"Add",orb.CFrame,vt(10,10,10),0.75,0.75,0.75,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
  2528. sphere2(4,"Add",orb.CFrame,vt(10,10,10),1,1,1,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
  2529. CFuncs["Sound"].Create("rbxassetid://1368637781", orb, 7.5, 1)
  2530. local a = Instance.new("Part",workspace)
  2531. a.Name = "Direction"   
  2532. a.Anchored = true
  2533. a.Transparency = 1
  2534. a.CanCollide = false
  2535. local ray = Ray.new(
  2536. orb.CFrame.p,                           -- origin
  2537. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  2538. )
  2539. local ignore = orb
  2540. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2541. a.BottomSurface = 10
  2542. a.TopSurface = 10
  2543. local distance = (orb.CFrame.p - position).magnitude
  2544. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2545. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2546. orb.CFrame = a.CFrame
  2547. for i = 0, 8, 0.1 do
  2548. swait()
  2549. sphere2(5,"Add",orb.CFrame*CFrame.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
  2550. ray = Ray.new(
  2551. orb.CFrame.p,                           -- origin
  2552. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  2553. )
  2554. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2555. distance = (orb.CFrame.p - position).magnitude
  2556. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2557. orb.CFrame = a.CFrame
  2558. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  2559. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  2560. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(40),math.rad(3)),.3)
  2561. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  2562. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-60)),.3)
  2563. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-100),math.rad(-0),math.rad(110)),.3)
  2564. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(1),math.rad(11),math.rad(12)),.3)
  2565. end
  2566. orb.Anchored = false
  2567. a:Destroy()
  2568. local bv = Instance.new("BodyVelocity")
  2569. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2570. bv.velocity = orb.CFrame.lookVector*150
  2571. bv.Parent = orb
  2572. local hitted = false
  2573. CFuncs["Sound"].Create("rbxassetid://466493476", orb, 7.5, 0.7)
  2574. orb.CFrame = orb.CFrame * CFrame.Angles(0,math.rad(360*math.cos(sne/6)),0)
  2575. waveEff(2,"Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.1,BrickColor.new("Bright yellow"))
  2576. waveEff(4,"Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.05,BrickColor.new("Bright blue"))
  2577. coroutine.resume(coroutine.create(function()
  2578. while true do
  2579. swait(2)
  2580. if hitted == false and orb.Parent ~= nil then
  2581.     --orb.CFrame = orb.CFrame * CFrame.Angles(math.rad(360*math.cos(sne/6)),0,0)
  2582. slash(3,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.075,0.005,0.075),-0.05,BrickColor.new("White"))
  2583. elseif hitted == true and orb.Parent == nil then
  2584. break
  2585. end
  2586. end
  2587. end))
  2588. orb.Touched:connect(function(hit)
  2589. if hitted == false and hit.Parent ~= char then
  2590. hitted = true
  2591. MagniDamage(orb, 67, 72,115, 0, "Normal",153092213)
  2592. CFuncs["Sound"].Create("rbxassetid://763717897", orb, 10, 1)
  2593. CFuncs["Sound"].Create("rbxassetid://1295446488", orb, 9, 0.75)
  2594. for i = 0, 24 do
  2595. slash(math.random(15,30)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.001,0.01),math.random(125,250)/350,BrickColor.new("White"))
  2596. end
  2597. slash(1,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.015,0.01),2.5,BrickColor.new("White"))
  2598. slash(1,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.01,0.01),3,BrickColor.new("White"))
  2599. sphere2(1,"Add",orb.CFrame,vt(15,15,15),2,2,2,BrickColor.new("New Yeller"),BrickColor.new("New Yeller").Color)
  2600. sphere2(1.5,"Add",orb.CFrame,vt(15,10,15),2.1,2.1,2.1,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
  2601. sphere2(2,"Add",orb.CFrame,vt(15,15,15),2.2,2.2,2.2,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
  2602. orb.Anchored = true
  2603. orb.Transparency = 1
  2604. coroutine.resume(coroutine.create(function()
  2605. for i = 0, 4, 0.1 do
  2606. swait()
  2607. --slash(math.random(10,50)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.015,0.01),1.5,BrickColor.new("Bright blue"))
  2608. end
  2609. end))
  2610. wait(10)
  2611. orb:Destroy()
  2612. end
  2613. end)
  2614. game:GetService("Debris"):AddItem(orb, 10)
  2615. for i = 0, 2, 0.1 do
  2616. swait()
  2617. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  2618. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  2619. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(3)),.3)
  2620. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.4,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  2621. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  2622. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-40),math.rad(20)),.3)
  2623. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-80)),.3)
  2624. end
  2625. attacking = false
  2626. Speed = 43
  2627. end
  2628.  
  2629. function glitchattack()
  2630.     attacking = true
  2631.     local brickglitch = {BrickColor.new("Institutional white"),BrickColor.new("Really black")}
  2632. local keptcolor = brickglitch[MRANDOM(1,2)]
  2633. local glitchvalA = math.random(0,255)
  2634. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  2635. for i = 0, 8, 0.1 do
  2636.         swait()
  2637.         sphereMK(3.5,-1,"Add",sorb.CFrame* CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)  
  2638.                 RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 2 * math.cos(sne / 32))),.1)
  2639. LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 2 * math.cos(sne / 32))),.1)
  2640. RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.02 * math.cos(sne / 32),-0.1 + 0.05 * math.cos(sne / 32))*angles(math.rad(0 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-11)),.1)
  2641. Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(-2 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sne / 28)),math.rad(0),math.rad(-31 + 6.5 * math.cos(sne / 32.5))),.1)
  2642. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(161,176)),math.rad(-5),math.rad(15 + 7.5 * math.cos(sne / 32.5))),.1)
  2643. LW.C0=clerp(LW.C0,cf(-1.5+0.05*math.cos(sne/32),0.65-.05*math.cos(sne/32),0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(136,159)),math.rad(5),math.rad(29 - 8.5 * math.cos(sne / 32.5))),.1)
  2644. end
  2645. for i = 0, 3.1, 0.1 do
  2646.         swait()
  2647.         sphereMK(3.5,-1,"Add",sorb.CFrame* CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)  
  2648. RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 2 * math.cos(sne / 32))),.1)
  2649. LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 2 * math.cos(sne / 32))),.1)
  2650. RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.02 * math.cos(sne / 32),-0.1 + 0.05 * math.cos(sne / 32))*angles(math.rad(0 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-51)),.1)
  2651. Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(-2 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sne / 28)),math.rad(0),math.rad(-71 + 6.5 * math.cos(sne / 32.5))),.1)
  2652. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(81,108)),math.rad(-5),math.rad(89 + 7.5 * math.cos(sne / 32.5))),.1)
  2653. LW.C0=clerp(LW.C0,cf(-1.5+0.05*math.cos(sne/32),0.65-.05*math.cos(sne/32),0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(136,159)),math.rad(5),math.rad(29 - 8.5 * math.cos(sne / 32.5))),.1)
  2654. end
  2655. for i = 0, MRANDOM(18,23) do
  2656.         PixelBlockNeg(1,math.random(1,3),"Add",mouse.Hit*CFrame.new(math.random(-26,26),0,math.random(-26,26))*CFrame.Angles(math.rad(90 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),5,5,5,0.1,keptcolor,-10)
  2657. end
  2658. for i, v in pairs(FindNearestHead(mouse.Hit.p, 36)) do
  2659. if v:FindFirstChild('Head') then
  2660. coroutine.resume(coroutine.create(function()
  2661. CFuncs["Sound"].Create("rbxassetid://1042716828", v.Head, 5, 0.5)
  2662. local vel = Instance.new("BodyPosition", v.Head)
  2663. vel.P = 12500
  2664. vel.D = 1000
  2665. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  2666. vel.position = v.Head.CFrame.p + vt(0,10,0)
  2667. for i,v in pairs(v:GetChildren()) do
  2668. if v:IsA("BasePart") or v:IsA("MeshPart") then
  2669. coroutine.resume(coroutine.create(function()
  2670. local bld = Instance.new("ParticleEmitter",v)
  2671. bld.LightEmission = 0.75
  2672. bld.Texture = "rbxassetid://363275192" ---284205403
  2673. bld.Color = ColorSequence.new(Color3.new(glitchvalA,glitchvalA,glitchvalA))
  2674. bld.Rate = 1
  2675. bld.Lifetime = NumberRange.new(1)
  2676. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  2677. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2678. bld.Speed = NumberRange.new(2,5)
  2679. bld.VelocitySpread = 50000
  2680. bld.Rotation = NumberRange.new(-500,500)
  2681. bld.RotSpeed = NumberRange.new(-500,500)
  2682. end))
  2683. end
  2684. end
  2685. local BasePlate = game.Workspace:FindFirstChild("Baseplate") or game.Workspace:FindFirstChild("Base")
  2686. local A1 = Instance.new("Attachment",BasePlate)
  2687. local A2 = Instance.new("Attachment",v.Head)
  2688. local Beem = Instance.new("Beam",v.Head)
  2689. Beem.Attachment0 = A1
  2690. Beem.Attachment1 = A2
  2691. Beem.LightEmission = 1
  2692. Beem.FaceCamera = true
  2693. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  2694. Beem.Width0 = 1
  2695. Beem.Width1 = 1
  2696. Beem.Texture = "rbxassetid://1134824633"
  2697. Beem.TextureMode = "Wrap"
  2698. Beem.TextureLength = 2
  2699. Beem.TextureSpeed = 5
  2700. Beem.Color = ColorSequence.new(keptcolor.Color)
  2701. wait(5)
  2702. coroutine.resume(coroutine.create(function()
  2703. local ref = Instance.new("Part", char)
  2704. ref.Anchored = true
  2705. ref.CanCollide = false
  2706. ref.Transparency = 1
  2707. ref.CFrame = v.Head.CFrame
  2708. for i = 0, 9 do
  2709. slash(math.random(10,25)/10,5,true,"Round","Add","Out",v.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.001,0.5),-1,BrickColor.new("Really black"))
  2710. end
  2711. v.Head.Parent:Destroy()
  2712. CFuncs["Sound"].Create("rbxassetid://763718160", ref, 2, 1.1)
  2713. CFuncs["Sound"].Create("rbxassetid://782353443", ref, 2, 1)
  2714. CFuncs["Sound"].Create("rbxassetid://335657174", ref, 2, 1)
  2715. swait(120)
  2716. Beem:Remove()
  2717. ref:Destroy()
  2718. ref:Remove()
  2719. end))
  2720. end))
  2721. end
  2722. end
  2723. CFuncs["Sound"].Create("rbxassetid://1664711478", char, 2, 1)
  2724. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  2725. CFuncs["Sound"].Create("rbxassetid://167115397", char, 1, 0.6)
  2726. CFuncs["Sound"].Create("rbxassetid://782353443", char, 1, 0.9)
  2727. CFuncs["Sound"].Create("rbxassetid://782353443", char, 2, 0.8)
  2728. CFuncs["Sound"].Create("rbxassetid://782353443", char, 2, 0.7)
  2729.     attacking = false
  2730. end
  2731.  
  2732.  
  2733. function Daash()
  2734.     attacking = true
  2735.     Speed = 0
  2736.     for i = 0,1,0.1 do
  2737. swait()
  2738. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
  2739. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.5)
  2740. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  2741. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  2742. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  2743. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  2744. end
  2745. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  2746. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.5)
  2747. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.8)
  2748. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  2749. for i = 0,6,0.1 do
  2750. swait()
  2751. root.CFrame = root.CFrame + root.CFrame.lookVector*6
  2752. coroutine.resume(coroutine.create(function()
  2753. local turbo4 = ToothpasteArrow:Clone()
  2754. turbo4.Material = Enum.Material.Glass
  2755. turbo4.Parent = char
  2756. turbo4.Anchored = true
  2757. turbo4.CanCollide = false
  2758. turbo4.CFrame = RootPart.CFrame*cf(0,1.5,2.65)*angles(math.rad(146),math.rad(-180),math.rad(90))
  2759. turbo4.Transparency = 0
  2760. swait(120)
  2761. repeat
  2762. turbo4.Transparency = turbo4.Transparency + 0.01
  2763. swait()
  2764. until turbo4.Transparency == 0 or turbo4.Transparency > 0.99
  2765. game:GetService("Debris"):AddItem(turbo4, 4)
  2766. end))
  2767.     local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Toothpaste"))
  2768. CreateMesh(dis2,"Sphere",1,1,1)
  2769. dis2.Anchored = true
  2770. dis2.CFrame = RightArm.CFrame*CFrame.new(0,-3,0)
  2771. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  2772. coroutine.resume(coroutine.create(function()
  2773.         dis2.Transparency = 1
  2774.     swait(5)
  2775.     dis2.Transparency = 1
  2776. coroutine.resume(coroutine.create(function()
  2777. local eff = Instance.new("ParticleEmitter",dis2)
  2778. eff.Texture = "rbxassetid://2273224484"
  2779. eff.LightEmission = 1
  2780. eff.Color = ColorSequence.new(dis2.Color)
  2781. eff.Rate = 4
  2782. eff.Lifetime = NumberRange.new(0.5,2)
  2783. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2784. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2785. eff.Speed = NumberRange.new(50,450)
  2786. eff.Drag = 2
  2787. eff.Rotation = NumberRange.new(-500,500)
  2788. eff.VelocitySpread = 9000
  2789. eff.RotSpeed = NumberRange.new(-50,50)
  2790. local eff2 = eff:Clone()
  2791. eff2.Parent = dis2
  2792. eff2.LightEmission = 0
  2793. eff2.Color = ColorSequence.new(dis2.Color)
  2794. wait(0.25)
  2795. eff.Enabled = false
  2796. eff2.Enabled = false
  2797. end))
  2798. --  CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  2799. --  CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  2800. --  CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  2801. end))
  2802. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 5)) do
  2803. if v:FindFirstChild('Head') then
  2804. dmg(v)
  2805. end
  2806. end
  2807. game:GetService("Debris"):AddItem(dis2, 4.5)
  2808. waveEff(5,"Add","In",RightLeg.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(5,0.25,1),-0.075,0.05,BrickColor.new("White"))
  2809. waveEff(5,"Add","In",LeftLeg.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(5,0.25,1),-0.075,0.05,BrickColor.new("White"))
  2810. RH.C0=clerp(RH.C0,cf(1,-0.28,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(40)),.5)
  2811. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.5)
  2812. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*angles(math.rad(40),math.rad(0),math.rad(70)),.5)
  2813. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-70)),.5)
  2814. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(20),math.rad(-1),math.rad(30)),.5)
  2815. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-60)),.5)
  2816. end
  2817.     Speed = 67
  2818.     attacking = false
  2819. end
  2820.  
  2821. function SolarAttack()
  2822.     attacking = true
  2823.     Speed = 0
  2824.     local keptcolor = MAINCOLOR
  2825.     CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.8)
  2826. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.76)
  2827.     for i = 0,10.6,0.1 do
  2828. swait()
  2829. PixelBlockX(5,0.5,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.01,MAINCOLOR,0)
  2830. sphere2(5,"Add",larm.CFrame*CFrame.new(math.random(-0.5,0.5),-0.9 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,BrickColor.new("Deep orange"),BrickColor.new("Deep orange").Color)
  2831.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  2832. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  2833. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sne / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  2834. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  2835. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.2)
  2836. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.2)
  2837.     end
  2838.     for i = 0, 4 do
  2839. slash(math.random(10,50)/10,3,true,"Round","Add","Out",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.0025,0.01),math.random(15,50)/3000,BrickColor.new("White"))
  2840. end
  2841. block(1,"Add",larm.CFrame*CFrame.new(0,-1,0),vt(0,0,0),0.05,0.05,0.05,keptcolor,keptcolor.Color)
  2842.     CFuncs["EchoSound"].Create("rbxassetid://675172759", root, 10, 0.8,0,10,0.15,0.5,1)
  2843. CFuncs["EchoSound"].Create("rbxassetid://763717897", root, 7.5, 1.1,0,10,0.15,0.5,1)
  2844. CFuncs["EchoSound"].Create("rbxassetid://675172759", root, 5, 0.7,0,10,0.15,0.5,1)
  2845.     sphere(1,"Add",mouse.Hit*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(3,100000,3),0.6,BrickColor.new("Deep orange"))
  2846. sphere(1,"Add",mouse.Hit,vt(2,2,2),1.6,BrickColor.new("Deep orange"))
  2847. for i = 0, 49 do
  2848. --PixelBlockX(1,math.random(1,20),"Add",mouse.Hit*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),8,8,8,0.16,BrickColor.new("Deep orange"),0)
  2849. sphereMK(2.5,-1,"Add",mouse.Hit*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,BrickColor.new("Deep orange"),0)
  2850. --slash(math.random(10,20)/10,5,true,"Round","Add","Out",mouse.Hit*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-30, 30)), math.rad(math.random(-30, 30)), math.rad(math.random(-40, 40))),vt(0.05,0.01,0.05),math.random(50,60)/250,BrickColor.new("Deep orange"))
  2851. end
  2852. for i, v in pairs(FindNearestHead(mouse.Hit.p, 25)) do
  2853. if v:FindFirstChild('Head') then
  2854. dmg(v)
  2855. end
  2856. end
  2857.     Speed = 36
  2858.     attacking = false
  2859. end
  2860. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  2861.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  2862. end
  2863.  
  2864.  
  2865.  
  2866.  
  2867. function NuclearExtended()
  2868. attacking = true
  2869. Speed = 0
  2870. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  2871. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  2872. local keptcolor = MAINCOLOR
  2873. for i = 0,4.3,0.1 do
  2874. swait()
  2875. sphere2(6,"Add",RightLeg.CFrame*CFrame.new(math.random(-0.5,0.5),-1.3 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,MAINCOLOR,MAINCOLOR.Color)
  2876. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
  2877. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  2878. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  2879. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  2880. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  2881. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  2882. end
  2883. CFuncs["Sound"].Create("rbxassetid://763717897", char, 2, 1)
  2884. CFuncs["Sound"].Create("rbxassetid://763717897", char, 2, 0.75)
  2885. CFuncs["Sound"].Create("rbxassetid://763717897", char, 2, 0.5)
  2886. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1,0.5)
  2887. CFuncs["Sound"].Create("rbxassetid://1664711478", char, 1.5,1)
  2888. CFuncs["Sound"].Create("rbxassetid://763718160", char, 2, 0.75)
  2889. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 7)) do
  2890. if v:FindFirstChild('Head') then
  2891. dmg(v)
  2892. end
  2893. end
  2894.  
  2895. for i = 0,5.5,0.1 do
  2896. swait()
  2897. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 56)) do
  2898. if v:FindFirstChild('Head') then
  2899. dmg(v)
  2900. end
  2901. end
  2902. sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(32,0.061111111,32),0.8,-0.000000000000002,0.8,BrickColor.new("Lime green"),Color3.new(0,1,0))
  2903. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
  2904. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8)
  2905. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  2906. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  2907. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  2908. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  2909. end
  2910. attacking = false
  2911. Speed = 32
  2912. end
  2913.  
  2914.  
  2915. function negromancingnigrafyer9000(bitchasslilnigga)  
  2916.         bitchasslilnigga:BreakJoints()
  2917.     for _, c in pairs(bitchasslilnigga:GetDescendants()) do
  2918.         if c:IsA("BasePart") and c.Transparency == 0 then
  2919.             c:BreakJoints()
  2920.             c.Material = "Neon"
  2921.             c.Color = BRICKC("Lime green").Color
  2922.             c.CanCollide = true
  2923.             c.Transparency = 0
  2924.             if c:FindFirstChildOfClass("SpecialMesh") then
  2925.                 c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2926.             end
  2927.             if c.Name == "Head" then
  2928.                 c:ClearAllChildren()
  2929.                 c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  2930.             end
  2931.             if c.ClassName == "MeshPart" then
  2932.                 c.TextureID = ""
  2933.             end
  2934.             if c:FindFirstChildOfClass("BodyPosition") then
  2935.                 c:FindFirstChildOfClass("BodyPosition"):remove()
  2936.             end
  2937.             if c:FindFirstChildOfClass("ParticleEmitter") then
  2938.                 c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2939.             end
  2940.             c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  2941.             c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  2942.         end
  2943.     end
  2944. end
  2945.  
  2946. function NuclearGrab()
  2947. attacking = true
  2948. Speed = 16
  2949. local yourdeadnoob=nil
  2950. for i = 0,1.15,0.1 do
  2951. swait()
  2952.         if math.random(1,3) == 1 then
  2953.         PixelBlockX(7,0.5,"Add",rarm.CFrame*CFrame.new(0,-1.35,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.01,MAINCOLOR,0)
  2954. end
  2955. sphere2(6,"Add",rarm.CFrame*CFrame.new(math.random(-0.5,0.5),-1.35 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,MAINCOLOR,MAINCOLOR.Color)
  2956. RH.C0=clerp(RH.C0,cf(1,-1,-0.15)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(1)),.8)
  2957. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(1)),.8)
  2958. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(-52)),.8)
  2959. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(52)),.8)
  2960. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(87),math.rad(-2),math.rad(12)),.8)
  2961. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-5),math.rad(2),math.rad(-8)),.8)
  2962. end
  2963. for i = 0,1.35,0.1 do
  2964. swait()
  2965. local BOI = FindNearestTorso(RightArm.Position,6)
  2966. if BOI ~= nil and yourdeadnoob == nil then
  2967. yourdeadnoob = BOI
  2968. CFuncs["Sound"].Create("rbxassetid://200632875", BOI, 3, 1)
  2969. end
  2970. if yourdeadnoob ~=nil then
  2971. yourdeadnoob.CFrame=RightArm.CFrame*CFrame.new(0,-1.3,0)*CFrame.Angles(-math.rad(90),math.rad(0),math.rad(0))
  2972. end
  2973.         if math.random(1,3) == 1 then
  2974.         PixelBlockX(7,0.5,"Add",rarm.CFrame*CFrame.new(0,-1.35,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.01,MAINCOLOR,0)
  2975. end
  2976. sphere2(6,"Add",rarm.CFrame*CFrame.new(math.random(-0.5,0.5),-1.35 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,MAINCOLOR,MAINCOLOR.Color)
  2977. RH.C0=clerp(RH.C0,cf(1,-1,-0.15)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(1)),.8)
  2978. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(1)),.8)
  2979. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(32)),.8)
  2980. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-32)),.8)
  2981. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(87),math.rad(-2),math.rad(-2)),.8)
  2982. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-5),math.rad(2),math.rad(-8)),.8)
  2983. end
  2984. if yourdeadnoob~=nil and yourdeadnoob.Parent~=nil then
  2985.     CFuncs["Sound"].Create("rbxassetid://199145534", yourdeadnoob, 8.21, 1.3)
  2986.         CFuncs["Sound"].Create("rbxassetid://206082327", yourdeadnoob, 7.12, .9)
  2987.             for i = 0, math.random(18,32) do
  2988.         sphereMK(2.5,-1,"Add",yourdeadnoob.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.9,1.9,25,-0.025,BrickColor.new("Lime green"),0)
  2989.         end
  2990. negromancingnigrafyer9000(yourdeadnoob.Parent)
  2991. end
  2992. attacking = false
  2993. Speed = 32
  2994. end
  2995.  
  2996. function NuclearTeleport()
  2997. attacking = true
  2998. Speed = 0
  2999. local yourdeadnoob=nil
  3000. for i = 0,5,0.1 do
  3001. swait()
  3002. sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
  3003. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  3004. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  3005. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  3006. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35 - 2 * math.cos(sine / 37)),math.rad(0),math.rad(0)),.3)
  3007. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-80 + 2 * math.cos(sine / 45))),.3)
  3008. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(80 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(71 - 4 * math.cos(sine / 45))),.3)
  3009. end
  3010.     RootPart.Anchored = true
  3011.             for i = 0, 32 do
  3012. sphere2(1.5,"Add",mouse.Hit*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
  3013. end
  3014. for i = 0,3,0.1 do
  3015. swait()
  3016. sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
  3017. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  3018. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  3019. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-30 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  3020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35 - 2 * math.cos(sine / 37)),math.rad(0),math.rad(0)),.3)
  3021. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-80 + 2 * math.cos(sine / 45))),.3)
  3022. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(80 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(71 - 4 * math.cos(sine / 45))),.3)
  3023. end
  3024.             for i = 0, 32 do
  3025. sphere2(1.5,"Add",mouse.Hit*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
  3026. end
  3027. local AEEEEEEEEE = RootPart.Position
  3028.  RootPart.CFrame = CF(CF(mouse.Hit.p) * CF(0, 2.8, 0).p, AEEEEEEEEE)
  3029. for i = 0,5,0.1 do
  3030. swait()
  3031. sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
  3032. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  3033. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  3034. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  3035. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35 - 2 * math.cos(sine / 37)),math.rad(0),math.rad(0)),.3)
  3036. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-80 + 2 * math.cos(sine / 45))),.3)
  3037. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(80 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(71 - 4 * math.cos(sine / 45))),.3)
  3038. end
  3039. RootPart.Anchored = false
  3040. attacking = false
  3041. Speed = 32
  3042. end
  3043.  
  3044.  
  3045.  
  3046.  
  3047. function kaboom()
  3048. attacking = true
  3049. --gale's typhoon move bootleg lol
  3050. for i = 0,2,0.1 do
  3051. MagicBlock(BrickColor.new("Institutional white"),sorb2.CFrame,1,1,1,0.1,0.1,0.1,0.25)
  3052.         swait()
  3053.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.2)
  3054.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.2)
  3055.              RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  3056.              LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  3057.     end
  3058.  
  3059. local a = Instance.new("Part",Character)
  3060.     a.Name = "Direction"   
  3061.     a.Anchored = true
  3062.     a.BrickColor = BRICKC("Bright red")
  3063. a.Material = "Neon"
  3064. a.Transparency = 1
  3065.     a.CanCollide = false
  3066.     local ray = Ray.new(
  3067.         sorb2.CFrame.p,                           -- origin
  3068.         (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction
  3069.     )
  3070.     local ignore = Character
  3071.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3072.     a.BottomSurface = 10
  3073.     a.TopSurface = 10
  3074.     local distance = (root.CFrame.p - position).magnitude
  3075.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  3076.     a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, 0)
  3077.                  local lb = Instance.new("Part")
  3078.                 CFuncs["Sound"].Create("rbxassetid://260433721", lb, 1, 1)
  3079.   lb.Parent = char
  3080.     lb.BrickColor = BrickColor.new("Pastel green")
  3081.      lb.CanCollide = false
  3082. lb.Material = "Neon"
  3083.      lb.Anchored = true
  3084. lb.TopSurface = 0
  3085.         lb.BottomSurface = 0
  3086.      lb.Transparency = 1
  3087.      lb.Size = vt(8,8,8)
  3088.      lb.CFrame = a.CFrame
  3089. lb.Anchored = false
  3090. --game:GetService("Debris"):AddItem(lb, 6)
  3091.   local bv = Instance.new("BodyVelocity")
  3092.   bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3093.   bv.velocity = a.CFrame.lookVector*46
  3094.   bv.Parent = lb
  3095. local hitted = false
  3096. game:GetService("Debris"):AddItem(a, 0.1)
  3097. coroutine.resume(coroutine.create(function()
  3098. while wait(0.025) do
  3099. if hitted == false or lb.Parent ~= nil then
  3100.     MagicBlock(BrickColor.new("Institutional white"),lb.CFrame,4,4,4,1.9,1.9,1.9,0.25)
  3101.     MagicBlock(BrickColor.new("White"),lb.CFrame,2,2,2,1.45,1.45,1.45,0.25)
  3102.     wind("Divide",lb.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(1,1,1),math.random(1,2),5,true)
  3103. if hitted == true or lb.Parent == nil then
  3104. break
  3105. end
  3106. end
  3107. end
  3108. end))
  3109. wait(0.01)
  3110. --game:GetService("Debris"):AddItem(lb, 7)
  3111. lb.Touched:connect(function(hit)
  3112. MagniDamage(lb, 31, 12,32, 0, "Normal")
  3113. end)
  3114.  
  3115. attacking = false
  3116. wait(7)
  3117. lb:Remove()
  3118. end
  3119.  
  3120.  
  3121. function spinnyboi()
  3122.     attacking = true
  3123.     for i = 0,1,0.1 do
  3124.         swait()
  3125.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  3126.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3127.              RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.1)
  3128.              LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.1)
  3129.     end
  3130. CFuncs["Sound"].Create("rbxassetid://138079095", root, 0.5, 0.4)
  3131. CFuncs["Sound"].Create("rbxassetid://154723542", root, 1.5, 1.15)
  3132. coroutine.resume(coroutine.create(function()
  3133.     CFuncs["Sound"].Create("rbxassetid://588698460", root, 4.4, 1.5)
  3134. CFuncs["Sound"].Create("rbxassetid://588694531", root,4.4, 1.3)
  3135. sphere2(18.5,"Add",LeftArm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,2,2),1,1,1,BrickColor.new("Pastel green"),BrickColor.new("Pastel green").Color)
  3136. sphere2(18.5,"Add",RightArm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,2,2),1,1,1,BrickColor.new("Pastel green"),BrickColor.new("Pastel green").Color)
  3137. for i = 0, 2 do
  3138. wait(0.05)
  3139. MagniDamage(root, 32, 12,42, 0, "Normal")
  3140. wind("Divide",root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(2,2,2),0.8,26,false)
  3141. end
  3142. MagniDamage(root, 32, 12,42, 0, "Normal")
  3143. end))
  3144.     for i = 0,1.9,0.5 do
  3145.         swait()
  3146.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5)
  3147.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  3148.              RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3149.              LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3150.     end
  3151.     for i = 0,1.9,0.5 do
  3152.         swait()
  3153.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),0.5)
  3154.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  3155.              RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3156.              LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3157.     end
  3158.     for i = 0,1.9,0.5 do
  3159.         swait()
  3160.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(270)),0.5)
  3161.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  3162.              RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3163.              LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3164.     end
  3165.     for i = 0,1.9,0.5 do
  3166.         swait()
  3167.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),0.5)
  3168.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  3169.              RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3170.              LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3171.     end
  3172.     attacking = false
  3173. end
  3174.  
  3175. function AAAA()
  3176.     attacking=true
  3177.     for i = 0,3,0.1 do
  3178.         swait()
  3179.         RH.C0=clerp(RH.C0,cf(1,-.5,-.5)*angles(math.rad(-35),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),.2)
  3180.         LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),.2)
  3181.         RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(-15),0,math.rad(0)),.2)
  3182.         Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-12),0,math.rad(-0)),.2)
  3183.         RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(115),0,math.rad(-25)),.2)
  3184.         LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(115),0,math.rad(25)),.2)
  3185.     end
  3186.     CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3187.     CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3188.     for i = 0,.5,0.1 do
  3189.         swait()
  3190.         RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(25),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),.6)
  3191.         LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(-5),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  3192.         RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-.2,0)*angles(math.rad(25),0,0),.6)
  3193.         Torso.Neck.C0=clerp(Torso.Neck.C0,necko,.4)
  3194.         RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-45),0,math.rad(25)),.4)
  3195.         LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-45),0,math.rad(-25)),.4)
  3196.     end
  3197.     local out=5
  3198.     local start=root.CFrame
  3199.     coroutine.wrap(function()
  3200.         for rad = 0, 180,5 do
  3201.             out = out + 5
  3202.             local A = PyramidEffect:Clone()
  3203.             A.Parent = char
  3204.             A.CanCollide = true
  3205.             A.Anchored = true
  3206.             A.CFrame=start*cf(0,-15,-out)
  3207.             MagniDamage(A, 20, 65,187, 0, "Normal")
  3208.             coroutine.wrap(function()
  3209.                 for i = -15, 0 do
  3210.                     A.CFrame=A.CFrame*cf(0,1,0)
  3211.                     swait()
  3212.                 end
  3213.                 delay(0.8,function()
  3214.                     for i = -8, 0 do
  3215.                         swait()
  3216.                         A.CFrame=A.CFrame*cf(0,-1,0)
  3217.                     end
  3218.                     A:destroy()
  3219.                 end)
  3220.             end)()
  3221.             swait()
  3222.         end
  3223.     end)()
  3224.    
  3225.     for i = 0,2.5,0.1 do
  3226.         swait()
  3227.         RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(25),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),.6)
  3228.         LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(-5),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  3229.         RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-.2,0)*angles(math.rad(25),0,0),.6)
  3230.         Torso.Neck.C0=clerp(Torso.Neck.C0,necko,.4)
  3231.         RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-45),0,math.rad(25)),.4)
  3232.         LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-45),0,math.rad(-25)),.4)
  3233.     end
  3234.     attacking=false
  3235. end
  3236.  
  3237.  
  3238. function CrystalizedFields()
  3239. attacking = true
  3240. Speed = 2
  3241. local keptcolor = MAINCOLOR
  3242. local obj1 = Instance.new("Part")
  3243. obj1.Parent = char
  3244. obj1.Transparency = 1
  3245. obj1.CanCollide = false
  3246. local rval = 0
  3247. local eval = 1
  3248. local tval = 0
  3249. CFuncs["Sound"].Create("rbxassetid://199145761", obj1, 3,1)
  3250. local eff = Instance.new("ParticleEmitter",obj1)
  3251. eff.Texture = "rbxassetid://2344870656"
  3252. eff.LightEmission = 1
  3253. eff.Color = ColorSequence.new(obj1.Color)
  3254. eff.Rate = 10000000
  3255. eff.Enabled = true
  3256. eff.EmissionDirection = "Left"
  3257. eff.Lifetime = NumberRange.new(0.5)
  3258. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  3259. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3260. eff.Speed = NumberRange.new(5,50)
  3261. eff.Drag = 5
  3262. eff.Rotation = NumberRange.new(-500,500)
  3263. eff.RotSpeed = NumberRange.new(-500,500)
  3264. sphere2(5,"Add",root.CFrame*CFrame.new(0,5,0),vt(1,1,1),0.5,0.005,0.5,MAINCOLOR,MAINCOLOR.Color)
  3265. local eff2 = Instance.new("ParticleEmitter",obj1)
  3266. eff2.Texture = "rbxassetid://695499847"
  3267. eff2.LightEmission = 1
  3268. eff2.Color = ColorSequence.new(obj1.Color)
  3269. eff2.Rate = 12500
  3270. eff2.Lifetime = NumberRange.new(0.5,2)
  3271. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3272. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3273. eff2.Speed = NumberRange.new(20,150)
  3274. eff2.Drag = 5
  3275. eff2.Rotation = NumberRange.new(-500,500)
  3276. eff2.VelocitySpread = 9000
  3277. eff2.RotSpeed = NumberRange.new(-150,150)
  3278. for i = 0,11,0.1 do
  3279. swait()
  3280. rval = rval + 10
  3281. eval = eval + 1.5
  3282. obj1.Transparency = 1
  3283. tval = tval + 1
  3284. if tval == 24 then
  3285.     tval = 0
  3286.     MagniDamage(Torso, 38, 12,21, 0, "Freeze",153092213)
  3287. end
  3288. obj1.Size = obj1.Size + vt(0,0.2,0.2)
  3289. obj1.CFrame = root.CFrame*CFrame.new(0,5,0)*CFrame.Angles(math.rad(0),math.rad(rval),math.rad(-90))
  3290. RH.C0=clerp(RH.C0,cf(1,-1 + 0.15 * math.cos(sine / 32),-0.15)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.3)
  3291. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.15* math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.3)
  3292. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(2)),.3)
  3293. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-2 + 1 * math.cos(sine / 58)),math.rad(-2 + 2 * math.cos(sine / 53))),.3)
  3294. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(1760 + 6 * math.cos(sine / 72)),math.rad(1 - 1 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3)
  3295. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(176 - 7 * math.cos(sine / 66)),math.rad(1 - 1 * math.cos(sine / 59)),math.rad(-90 - 4 * math.cos(sine / 45))),.3)
  3296. end
  3297. eff.Enabled = false
  3298. coroutine.resume(coroutine.create(function()
  3299.     for i = 0,49 do
  3300.         swait()
  3301.         rval = rval + 100
  3302.         obj1.Transparency = obj1.Transparency + 0.02
  3303.         obj1.Size = obj1.Size + vt(0,-0.5,-0.5)
  3304.     end
  3305.     obj1:Destroy()
  3306. end))
  3307. attacking = false
  3308. Speed = 14
  3309. end
  3310.  
  3311. function modeswitchgui()
  3312. local oawkwodkwad=math.random(0,100)/100
  3313. local okaofwakf=math.random(60,100)/100
  3314. local framiee=Instance.new("Frame",MainFrame2.Cube1)
  3315. framiee.AnchorPoint=Vector2.new(.5,.5)
  3316. framiee.Position=UDim2.new(.5,0,.5,0)
  3317. framiee.BorderSizePixel=0
  3318. framiee.BackgroundColor3=MainFrame2.Cube1.BackgroundColor3
  3319. framiee.Size=UDim2.new(0,0,0,0)
  3320. framiee.ZIndex=13
  3321. CFuncs["Sound"].Create("rbxassetid://557322397", MainGui, 3, 2.6)
  3322. for zi=1,3 do
  3323. local imfhg=Instance.new("ImageLabel",MainFrame2)
  3324. imfhg.AnchorPoint=Vector2.new(.5,.5)
  3325. imfhg.Position=UDim2.new(.6,0,.6,0)
  3326. imfhg.BorderSizePixel=0
  3327. imfhg.ImageColor3=MainFrame2.Cube1.BackgroundColor3
  3328. imfhg.Size=UDim2.new(.4,0,.7,0)
  3329. imfhg.ZIndex=10
  3330. imfhg.BackgroundTransparency=1
  3331. imfhg.Image="rbxassetid://2809225827"
  3332. coroutine.resume(coroutine.create(function(imag)
  3333. if zi==1 then
  3334. imag:TweenPosition(UDim2.new(.6,0,-1.5,0),"Out","Quint",1.2,true)
  3335. elseif zi==2 then
  3336. imag.Rotation=-45
  3337. imag:TweenPosition(UDim2.new(-.5,0,-1.2,0),"Out","Quint",1.2,true)
  3338. else
  3339. imag.Rotation=-90
  3340. imag:TweenPosition(UDim2.new(-.8,0,.6,0),"Out","Quint",1.2,true)
  3341. end
  3342. game:GetService("Debris"):AddItem(imag,3)
  3343. for i=0,1.02,.02 do
  3344. swait()
  3345. imag.ImageTransparency=i
  3346. end
  3347. imag:Remove()
  3348. end),imfhg)
  3349.  
  3350. end
  3351.  
  3352.  
  3353. coroutine.resume(coroutine.create(function(ff)
  3354. ff:TweenSize(UDim2.new(12,0,12,0),"Out","Quint",.8,true)
  3355. game:GetService("Debris"):AddItem(ff,3)
  3356. for i=0,1.02,.04 do
  3357. swait()
  3358. ff.BackgroundTransparency=i
  3359. ff.Rotation=ff.Rotation+3.5
  3360. end
  3361. ff:Remove()
  3362. end),framiee)
  3363.  
  3364. end
  3365.  
  3366.  
  3367. mouse.KeyDown:connect(function(Button)
  3368. if Button == "m" and attacking == false and Mode == "FL" then
  3369. Mode = "DM"
  3370. if math.random(1,2) == 1 then
  3371. SONG = 705302406
  3372. else
  3373. SONG = 580367180
  3374. end
  3375. MAINCOLOR = BrickColor.new("Persimmon")
  3376. MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Pink").Color
  3377. MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Persimmon").Color
  3378. modeswitchgui()
  3379. for i,v in pairs(gauntlet:GetChildren()) do
  3380. if v:IsA("BasePart") then
  3381. if v.Name == "NeonArmor" then
  3382. v.Color = BrickColor.new("Persimmon").Color
  3383. end
  3384. end
  3385. end
  3386. for i,v in pairs(TurboCore:GetChildren()) do
  3387. if v:IsA("BasePart") then
  3388. if v.Name == "NeonArmor" then
  3389. v.Color = BrickColor.new("Persimmon").Color
  3390. end
  3391. end
  3392. end
  3393. for i,v in pairs(gauntlet2:GetChildren()) do
  3394. if v:IsA("BasePart") then
  3395. if v.Name == "NeonArmor" then
  3396. v.Color = BrickColor.new("Persimmon").Color
  3397. end
  3398. end
  3399. end
  3400. TextUI.Text.Image = "rbxassetid://2969037917"
  3401. Speed = 20
  3402.         elseif Mode == "DM" and Button == "m" and attacking == false then
  3403.             Mode = "FL"
  3404.             SONG = 1886156023
  3405.             MAINCOLOR = BrickColor.new("Dark blue")
  3406.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Dark blue").Color
  3407.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Dark blue").Color
  3408.         modeswitchgui()
  3409. for i,v in pairs(gauntlet:GetChildren()) do
  3410. if v:IsA("BasePart") then
  3411. if v.Name == "NeonArmor" then
  3412. v.Color = BrickColor.new("Dark blue").Color
  3413. end
  3414. end
  3415. end
  3416. for i,v in pairs(TurboCore:GetChildren()) do
  3417.                 if v:IsA("BasePart") then
  3418. if v.Name == "NeonArmor" then
  3419. v.Color = BrickColor.new("Dark blue").Color
  3420. end
  3421. end
  3422. end
  3423. for i,v in pairs(gauntlet2:GetChildren()) do
  3424. if v:IsA("BasePart") then
  3425. if v.Name == "NeonArmor" then
  3426. v.Color = BrickColor.new("Dark blue").Color
  3427. end
  3428. end
  3429. end
  3430. TextUI.Text.Image = "rbxassetid://2968625581"
  3431. Speed = 46
  3432. end
  3433.  
  3434.     if Button == "m" and attacking == false then
  3435.         if Mode == "T" then
  3436.             Mode = "LS"
  3437.             SONG = 2170417538
  3438.             MAINCOLOR = BrickColor.new("Toothpaste")
  3439.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Toothpaste").Color
  3440.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Toothpaste").Color
  3441.         modeswitchgui()
  3442. for i,v in pairs(gauntlet:GetChildren()) do
  3443. if v:IsA("BasePart") then
  3444. if v.Name == "NeonArmor" then
  3445. v.Color = BrickColor.new("Toothpaste").Color
  3446. end
  3447. end
  3448. end
  3449. for i,v in pairs(TurboCore:GetChildren()) do
  3450.                 if v:IsA("BasePart") then
  3451. if v.Name == "NeonArmor" then
  3452. v.Color = BrickColor.new("Toothpaste").Color
  3453. end
  3454. end
  3455. end
  3456. for i,v in pairs(gauntlet2:GetChildren()) do
  3457. if v:IsA("BasePart") then
  3458. if v.Name == "NeonArmor" then
  3459. v.Color = BrickColor.new("Toothpaste").Color
  3460. end
  3461. end
  3462. end
  3463. TextUI.Text.Image = "rbxassetid://2866248691"
  3464. Speed = 67
  3465.         elseif Mode == "LS" then
  3466.             SONG = 570332815
  3467.             Mode = "T"
  3468.             Speed = 18
  3469.             MAINCOLOR = BrickColor.new("Deep orange")
  3470.             TextUI.Text.Image = "rbxassetid://2863687732"
  3471.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
  3472.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
  3473.         modeswitchgui()
  3474. for i,v in pairs(TurboCore:GetChildren()) do
  3475. if v:IsA("BasePart") then
  3476. if v.Name == "NeonArmor" then
  3477. v.Color = BrickColor.new("Deep orange").Color
  3478. end
  3479. end
  3480. end
  3481.             for i,v in pairs(gauntlet:GetChildren()) do
  3482. if v:IsA("BasePart") then
  3483. if v.Name == "NeonArmor" then
  3484. v.Color = BrickColor.new("Deep orange").Color
  3485. end
  3486. end
  3487. end
  3488. for i,v in pairs(gauntlet2:GetChildren()) do
  3489. if v:IsA("BasePart") then
  3490. if v.Name == "NeonArmor" then
  3491. v.Color = BrickColor.new("Deep orange").Color
  3492. end
  3493. end
  3494. end
  3495. end
  3496.     end
  3497. -----------------------------------------------------------------
  3498.     if Button == "g" and attacking == false then
  3499.         if Mode == "T" then
  3500.             Mode = "ICE"
  3501.             SONG = 1843801674
  3502.             MAINCOLOR = BrickColor.new("Pastel light blue")
  3503.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Pastel light blue").Color
  3504.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Pastel light blue").Color
  3505.         modeswitchgui()
  3506. for i,v in pairs(gauntlet:GetChildren()) do
  3507. if v:IsA("BasePart") then
  3508. if v.Name == "NeonArmor" then
  3509. v.Color = BrickColor.new("Pastel light blue").Color
  3510. end
  3511. end
  3512. end
  3513. for i,v in pairs(TurboCore:GetChildren()) do
  3514.                 if v:IsA("BasePart") then
  3515. if v.Name == "NeonArmor" then
  3516. v.Color = BrickColor.new("Pastel light blue").Color
  3517. end
  3518. end
  3519. end
  3520. for i,v in pairs(gauntlet2:GetChildren()) do
  3521. if v:IsA("BasePart") then
  3522. if v.Name == "NeonArmor" then
  3523. v.Color = BrickColor.new("Pastel light blue").Color
  3524. end
  3525. end
  3526. end
  3527. TextUI.Text.Image = "rbxassetid://2967532910"
  3528. Speed = 14
  3529.         elseif Mode == "ICE" then
  3530.             SONG = 570332815
  3531.             Mode = "T"
  3532.             Speed = 18
  3533.             MAINCOLOR = BrickColor.new("Deep orange")
  3534.             TextUI.Text.Image = "rbxassetid://2863687732"
  3535.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
  3536.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
  3537.         modeswitchgui()
  3538. for i,v in pairs(TurboCore:GetChildren()) do
  3539. if v:IsA("BasePart") then
  3540. if v.Name == "NeonArmor" then
  3541. v.Color = BrickColor.new("Deep orange").Color
  3542. end
  3543. end
  3544. end
  3545.             for i,v in pairs(gauntlet:GetChildren()) do
  3546. if v:IsA("BasePart") then
  3547. if v.Name == "NeonArmor" then
  3548. v.Color = BrickColor.new("Deep orange").Color
  3549. end
  3550. end
  3551. end
  3552. for i,v in pairs(gauntlet2:GetChildren()) do
  3553. if v:IsA("BasePart") then
  3554. if v.Name == "NeonArmor" then
  3555. v.Color = BrickColor.new("Deep orange").Color
  3556. end
  3557. end
  3558. end
  3559.         end
  3560.     end
  3561. -----------------------------------------------------------------
  3562.     if Button == "f" and attacking == false then
  3563.         if Mode == "T" then
  3564.             Mode = "FL"
  3565.             SONG = 1886156023
  3566.             MAINCOLOR = BrickColor.new("Dark blue")
  3567.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Dark blue").Color
  3568.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Dark blue").Color
  3569.         modeswitchgui()
  3570. for i,v in pairs(gauntlet:GetChildren()) do
  3571. if v:IsA("BasePart") then
  3572. if v.Name == "NeonArmor" then
  3573. v.Color = BrickColor.new("Dark blue").Color
  3574. end
  3575. end
  3576. end
  3577. for i,v in pairs(TurboCore:GetChildren()) do
  3578.                 if v:IsA("BasePart") then
  3579. if v.Name == "NeonArmor" then
  3580. v.Color = BrickColor.new("Dark blue").Color
  3581. end
  3582. end
  3583. end
  3584. for i,v in pairs(gauntlet2:GetChildren()) do
  3585. if v:IsA("BasePart") then
  3586. if v.Name == "NeonArmor" then
  3587. v.Color = BrickColor.new("Dark blue").Color
  3588. end
  3589. end
  3590. end
  3591. TextUI.Text.Image = "rbxassetid://2968625581"
  3592. Speed = 46
  3593.         elseif Mode == "FL" then
  3594.             SONG = 570332815
  3595.             Mode = "T"
  3596.             Speed = 18
  3597.             MAINCOLOR = BrickColor.new("Deep orange")
  3598.             TextUI.Text.Image = "rbxassetid://2863687732"
  3599.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
  3600.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
  3601.         modeswitchgui()
  3602. for i,v in pairs(TurboCore:GetChildren()) do
  3603. if v:IsA("BasePart") then
  3604. if v.Name == "NeonArmor" then
  3605. v.Color = BrickColor.new("Deep orange").Color
  3606. end
  3607. end
  3608. end
  3609.             for i,v in pairs(gauntlet:GetChildren()) do
  3610. if v:IsA("BasePart") then
  3611. if v.Name == "NeonArmor" then
  3612. v.Color = BrickColor.new("Deep orange").Color
  3613. end
  3614. end
  3615. end
  3616. for i,v in pairs(gauntlet2:GetChildren()) do
  3617. if v:IsA("BasePart") then
  3618. if v.Name == "NeonArmor" then
  3619. v.Color = BrickColor.new("Deep orange").Color
  3620. end
  3621. end
  3622. end
  3623.         end
  3624.     end
  3625.    
  3626. -----------------------------------------------------------------
  3627.         if Button == "n" and attacking == false then
  3628.         if Mode == "T" then
  3629.             Mode = "G"
  3630.             SONG = 930541401
  3631.         swait(1)
  3632.         modeswitchgui()
  3633.         elseif Mode == "G" then
  3634.             SONG = 570332815
  3635.             Mode = "T"
  3636.         modeswitchgui()
  3637.         end
  3638.         end
  3639.         -----------------------------------------------------------------
  3640.         if Button == "b" and attacking == false then
  3641.            
  3642.         if Mode == "T" then
  3643.             Mode = "R"
  3644.             Speed = 47
  3645.             SONG = 1988896150
  3646.         swait(1)
  3647.         modeswitchgui()
  3648.         elseif Mode == "R" then
  3649.             SONG = 570332815
  3650.             Speed = 18
  3651.             Mode = "T"
  3652.         modeswitchgui()
  3653.         end
  3654.         end
  3655.         -----------------------------------------------------------------
  3656.         if Button == "j" and attacking == false then
  3657.         if Mode == "T" then
  3658.             Mode = "N"
  3659.             MAINCOLOR = BRICKC'Lime green'
  3660.             Speed = 32
  3661.             SONG = 566809627
  3662.         swait(1)
  3663.         modeswitchgui()
  3664.         elseif Mode == "N" then
  3665.             SONG = 570332815
  3666.             Speed = 18
  3667.             Mode = "T"
  3668.             MAINCOLOR = BRICKC'Lime green'
  3669.         modeswitchgui()
  3670.         end
  3671.         end
  3672.         -----------------------------------------------------------
  3673.             if Button == "h" and attacking == false then
  3674.         if Mode == "T" then
  3675.             Mode = "TP"
  3676.             SONG = 631314940
  3677.             MAINCOLOR = BrickColor.new("Institutional white")
  3678.         MainFrame2.Cube1.BackgroundColor3=C3(1,1,1)
  3679.         MainFrame2.Cube2.BackgroundColor3=C3(1,1,1)
  3680.         modeswitchgui()
  3681. for i,v in pairs(gauntlet:GetChildren()) do
  3682. if v:IsA("BasePart") then
  3683. if v.Name == "NeonArmor" then
  3684. v.Color = C3(1,1,1)
  3685. end
  3686. end
  3687. end
  3688. for i,v in pairs(TurboCore:GetChildren()) do
  3689.                 if v:IsA("BasePart") then
  3690. if v.Name == "NeonArmor" then
  3691. v.Color = C3(1,1,1)
  3692. end
  3693. end
  3694. end
  3695. for i,v in pairs(gauntlet2:GetChildren()) do
  3696. if v:IsA("BasePart") then
  3697. if v.Name == "NeonArmor" then
  3698. v.Color = C3(1,1,1)
  3699. end
  3700. end
  3701. end
  3702. TextUI.Text.Image = "rbxassetid://2878494513"
  3703. Speed = 89
  3704.         elseif Mode == "TP" then
  3705.             SONG = 570332815
  3706.             Mode = "T"
  3707.             Speed = 18
  3708.             MAINCOLOR = BrickColor.new("Deep orange")
  3709.             TextUI.Text.Image = "rbxassetid://2863687732"
  3710.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
  3711.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
  3712.         modeswitchgui()
  3713. for i,v in pairs(TurboCore:GetChildren()) do
  3714. if v:IsA("BasePart") then
  3715. if v.Name == "NeonArmor" then
  3716. v.Color = BrickColor.new("Deep orange").Color
  3717. end
  3718. end
  3719. end
  3720.             for i,v in pairs(gauntlet:GetChildren()) do
  3721. if v:IsA("BasePart") then
  3722. if v.Name == "NeonArmor" then
  3723. v.Color = BrickColor.new("Deep orange").Color
  3724. end
  3725. end
  3726. end
  3727. for i,v in pairs(gauntlet2:GetChildren()) do
  3728. if v:IsA("BasePart") then
  3729. if v.Name == "NeonArmor" then
  3730. v.Color = BrickColor.new("Deep orange").Color
  3731. end
  3732. end
  3733. end
  3734.         end
  3735.     end
  3736.         -----------------------------------------------------------
  3737.                     if Button == "q" and attacking == false then
  3738.         if Mode == "T" then
  3739.             Mode = "MH"
  3740.             SONG = 1356751414
  3741.             MAINCOLOR = BrickColor.new("Really red")
  3742.         MainFrame2.Cube1.BackgroundColor3=C3(1,0,0)
  3743.         MainFrame2.Cube2.BackgroundColor3=C3(1,0,0)
  3744.         modeswitchgui()
  3745. for i,v in pairs(gauntlet:GetChildren()) do
  3746. if v:IsA("BasePart") then
  3747. if v.Name == "NeonArmor" then
  3748. v.Color = C3(1,0,0)
  3749. end
  3750. end
  3751. end
  3752. for i,v in pairs(TurboCore:GetChildren()) do
  3753.                 if v:IsA("BasePart") then
  3754. if v.Name == "NeonArmor" then
  3755. v.Color = C3(1,0,0)
  3756. end
  3757. end
  3758. end
  3759. for i,v in pairs(gauntlet2:GetChildren()) do
  3760. if v:IsA("BasePart") then
  3761. if v.Name == "NeonArmor" then
  3762. v.Color = C3(1,0,0)
  3763. end
  3764. end
  3765. end
  3766. TextUI.Text.Image = "rbxassetid://2970613902"
  3767. Speed = 32
  3768.         elseif Mode == "MH" then
  3769.             SONG = 570332815
  3770.             Mode = "T"
  3771.             Speed = 18
  3772.             MAINCOLOR = BrickColor.new("Deep orange")
  3773.             TextUI.Text.Image = "rbxassetid://2863687732"
  3774.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
  3775.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
  3776.         modeswitchgui()
  3777. for i,v in pairs(TurboCore:GetChildren()) do
  3778. if v:IsA("BasePart") then
  3779. if v.Name == "NeonArmor" then
  3780. v.Color = BrickColor.new("Deep orange").Color
  3781. end
  3782. end
  3783. end
  3784.             for i,v in pairs(gauntlet:GetChildren()) do
  3785. if v:IsA("BasePart") then
  3786. if v.Name == "NeonArmor" then
  3787. v.Color = BrickColor.new("Deep orange").Color
  3788. end
  3789. end
  3790. end
  3791. for i,v in pairs(gauntlet2:GetChildren()) do
  3792. if v:IsA("BasePart") then
  3793. if v.Name == "NeonArmor" then
  3794. v.Color = BrickColor.new("Deep orange").Color
  3795. end
  3796. end
  3797. end
  3798.         end
  3799.     end
  3800.         -----------------------------------------------------------
  3801.             if Button == "v" and attacking == false then
  3802.         if Mode == "T" then
  3803.             Mode = "MN"
  3804.             SONG = 901719740
  3805.             MAINCOLOR = BrickColor.new("Really blue")
  3806.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Really blue").Color
  3807.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Really blue").Color
  3808.         modeswitchgui()
  3809. for i,v in pairs(gauntlet:GetChildren()) do
  3810. if v:IsA("BasePart") then
  3811. if v.Name == "NeonArmor" then
  3812. v.Color = BrickColor.new("Really blue").Color
  3813. end
  3814. end
  3815. end
  3816. for i,v in pairs(TurboCore:GetChildren()) do
  3817.                 if v:IsA("BasePart") then
  3818. if v.Name == "NeonArmor" then
  3819. v.Color = BrickColor.new("Really blue").Color
  3820. end
  3821. end
  3822. end
  3823. for i,v in pairs(gauntlet2:GetChildren()) do
  3824. if v:IsA("BasePart") then
  3825. if v.Name == "NeonArmor" then
  3826. v.Color = BrickColor.new("Really blue").Color
  3827. end
  3828. end
  3829. end
  3830. TextUI.Text.Image = "rbxassetid://2867768707"
  3831. Speed = 43
  3832.         elseif Mode == "MN" then
  3833.             SONG = 570332815
  3834.             Mode = "T"
  3835.             Speed = 18
  3836.             MAINCOLOR = BrickColor.new("Deep orange")
  3837.             TextUI.Text.Image = "rbxassetid://2863687732"
  3838.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
  3839.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
  3840.         modeswitchgui()
  3841. for i,v in pairs(TurboCore:GetChildren()) do
  3842. if v:IsA("BasePart") then
  3843. if v.Name == "NeonArmor" then
  3844. v.Color = BrickColor.new("Deep orange").Color
  3845. end
  3846. end
  3847. end
  3848.             for i,v in pairs(gauntlet:GetChildren()) do
  3849. if v:IsA("BasePart") then
  3850. if v.Name == "NeonArmor" then
  3851. v.Color = BrickColor.new("Deep orange").Color
  3852. end
  3853. end
  3854. end
  3855. for i,v in pairs(gauntlet2:GetChildren()) do
  3856. if v:IsA("BasePart") then
  3857. if v.Name == "NeonArmor" then
  3858. v.Color = BrickColor.new("Deep orange").Color
  3859. end
  3860. end
  3861. end
  3862.         end
  3863.             end
  3864.             ---------------------------------------------------------
  3865.                         if Button == "l" and attacking == false then
  3866.         if Mode == "T" then
  3867.             Mode = "H"
  3868.             SONG = 2781731664
  3869.             MAINCOLOR = BrickColor.new("Deep orange")
  3870.         MainFrame2.Cube1.BackgroundColor3=C3(225/255, 146/255, 0/255)
  3871.         MainFrame2.Cube2.BackgroundColor3=C3(225/255, 146/255, 0/255)
  3872.         modeswitchgui()
  3873. for i,v in pairs(gauntlet:GetChildren()) do
  3874. if v:IsA("BasePart") then
  3875. if v.Name == "NeonArmor" then
  3876. v.Color = C3(225/255, 146/255, 0/255)
  3877. end
  3878. end
  3879. end
  3880. for i,v in pairs(TurboCore:GetChildren()) do
  3881.                 if v:IsA("BasePart") then
  3882. if v.Name == "NeonArmor" then
  3883. v.Color = C3(225/255, 146/255, 0/255)
  3884. end
  3885. end
  3886. end
  3887. for i,v in pairs(gauntlet2:GetChildren()) do
  3888. if v:IsA("BasePart") then
  3889. if v.Name == "NeonArmor" then
  3890. v.Color = C3(225/255, 146/255, 0/255)
  3891. end
  3892. end
  3893. end
  3894. TextUI.Text.Image = "rbxassetid://2871051104"
  3895. Speed = 36
  3896.         elseif Mode == "H" then
  3897.             SONG = 570332815
  3898.             Mode = "T"
  3899.             Speed = 18
  3900.             MAINCOLOR = BrickColor.new("Deep orange")
  3901.             TextUI.Text.Image = "rbxassetid://2863687732"
  3902.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
  3903.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
  3904.         modeswitchgui()
  3905. for i,v in pairs(TurboCore:GetChildren()) do
  3906. if v:IsA("BasePart") then
  3907. if v.Name == "NeonArmor" then
  3908. v.Color = BrickColor.new("Deep orange").Color
  3909. end
  3910. end
  3911. end
  3912.             for i,v in pairs(gauntlet:GetChildren()) do
  3913. if v:IsA("BasePart") then
  3914. if v.Name == "NeonArmor" then
  3915. v.Color = BrickColor.new("Deep orange").Color
  3916. end
  3917. end
  3918. end
  3919. for i,v in pairs(gauntlet2:GetChildren()) do
  3920. if v:IsA("BasePart") then
  3921. if v.Name == "NeonArmor" then
  3922. v.Color = BrickColor.new("Deep orange").Color
  3923. end
  3924. end
  3925. end
  3926.         end
  3927.                         end
  3928.     ---------------------------------------------------------
  3929.     if Button == "k" and attacking == false then
  3930.         if Mode == "T" then
  3931.             Mode = "A"
  3932.             SONG = 2834885098
  3933.             MAINCOLOR = BrickColor.new("New Yeller")
  3934.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("New Yeller").Color
  3935.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("New Yeller").Color
  3936.         modeswitchgui()
  3937. for i,v in pairs(gauntlet:GetChildren()) do
  3938. if v:IsA("BasePart") then
  3939. if v.Name == "NeonArmor" then
  3940. v.Color = BrickColor.new("New Yeller").Color
  3941. end
  3942. end
  3943. end
  3944. for i,v in pairs(TurboCore:GetChildren()) do
  3945.                 if v:IsA("BasePart") then
  3946. if v.Name == "NeonArmor" then
  3947. v.Color = BrickColor.new("New Yeller").Color
  3948. end
  3949. end
  3950. end
  3951. for i,v in pairs(gauntlet2:GetChildren()) do
  3952. if v:IsA("BasePart") then
  3953. if v.Name == "NeonArmor" then
  3954. v.Color = BrickColor.new("New Yeller").Color
  3955. end
  3956. end
  3957. end
  3958. TextUI.Text.Image = "rbxassetid://2871442888"
  3959. Speed = 23
  3960.         elseif Mode == "A" then
  3961.             SONG = 570332815
  3962.             Mode = "T"
  3963.             Speed = 18
  3964.             MAINCOLOR = BrickColor.new("Deep orange")
  3965.             TextUI.Text.Image = "rbxassetid://2863687732"
  3966.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
  3967.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
  3968.         modeswitchgui()
  3969. for i,v in pairs(TurboCore:GetChildren()) do
  3970. if v:IsA("BasePart") then
  3971. if v.Name == "NeonArmor" then
  3972. v.Color = BrickColor.new("Deep orange").Color
  3973. end
  3974. end
  3975. end
  3976.             for i,v in pairs(gauntlet:GetChildren()) do
  3977. if v:IsA("BasePart") then
  3978. if v.Name == "NeonArmor" then
  3979. v.Color = BrickColor.new("Deep orange").Color
  3980. end
  3981. end
  3982. end
  3983. for i,v in pairs(gauntlet2:GetChildren()) do
  3984. if v:IsA("BasePart") then
  3985. if v.Name == "NeonArmor" then
  3986. v.Color = BrickColor.new("Deep orange").Color
  3987. end
  3988. end
  3989. end
  3990.         end
  3991.     end
  3992.         ---------------------ATTACKS--------------------------
  3993.                 if Button == "z" and attacking == false and Mode == "G" then
  3994.                     glitchattack()
  3995.                 end
  3996.                
  3997.                 if Button == "z" and attacking == false and Mode == "LS" then
  3998.                     Daash()
  3999.                 end
  4000.                
  4001.                 if Button == "x" and attacking == false and Mode == "MN" then
  4002.                     LunarAttack()
  4003.                 end
  4004.                
  4005.                 if Button == "z" and attacking == false and Mode == "MN" then
  4006.                     LunarAttackA()
  4007.                 end
  4008.                
  4009.                 if Button == "z" and attacking == false and Mode == "H" then
  4010.                     SolarAttack()
  4011.                 end
  4012.                                
  4013.                 if Button == "z" and attacking == false and Mode == "N" then
  4014.                     NuclearExtended()
  4015.                 end
  4016.                 if Button == "x" and attacking == false and Mode == "N" then
  4017.                     NuclearGrab()
  4018.                 end
  4019.                 if Button == "c" and attacking == false and Mode == "N" then
  4020.                     NuclearTeleport()
  4021.                 end
  4022.                 if Button == "z" and attacking == false and Mode == "ICE" then
  4023.                     CrystalizedFields()
  4024.                 end
  4025.                 if Button == "z" and attacking == false and Mode == "TP" then
  4026.                     kaboom()
  4027.                 end
  4028.                 if Button == "x" and attacking == false and Mode == "TP" then
  4029.                     spinnyboi()
  4030.                 end
  4031.                 if Button == "z" and attacking == false and Mode == "A" then
  4032.                     AAAA()
  4033.                 end
  4034.                 if Button == "z" and attacking == false and Mode == "FL" then
  4035.                     --FL is meant to make lots of combos
  4036.                     --so yeah
  4037.                     --also make techno effects for the attacks
  4038.                     --its kinda related to slush invaders
  4039.     --x5
  4040.                 end
  4041.                     ----------------TAUNTS-----------------------------------------
  4042.     if Button == "p" and attacking == false then
  4043.         if Chill == false then
  4044. Chill = true
  4045.         elseif Chill == true then
  4046.             Chill = false
  4047.         end
  4048.     end
  4049. end)
  4050.  
  4051. local owakdoa=0
  4052. function gagok()
  4053. local oawkwodkwad=math.random(0,100)/100
  4054. local okaofwakf=math.random(60,100)/100
  4055. local framiee=Instance.new("Frame",MainFrame2)
  4056. framiee.AnchorPoint=Vector2.new(.5,.5)
  4057. framiee.Position=UDim2.new(oawkwodkwad,0,2,0)
  4058. framiee.BorderSizePixel=0
  4059. framiee.BackgroundColor3=MainFrame2.Cube1.BackgroundColor3
  4060. framiee.Size=UDim2.new(math.random(1,15)/100,0,okaofwakf,0)
  4061. coroutine.resume(coroutine.create(function(ff)
  4062. ff:TweenSize(UDim2.new(0,0,okaofwakf,0),"InOut","Quad",1,true)
  4063. ff:TweenPosition(UDim2.new(oawkwodkwad,0,-math.random(20,66)/100,0),"InOut","Quart",1.1,true)
  4064. game:GetService("Debris"):AddItem(ff,5)
  4065. end),framiee)
  4066.  
  4067. end
  4068.  
  4069. local BOIE = 0
  4070.  
  4071. while true do
  4072.     swait()
  4073.     if Mode ~= "ICE" then
  4074.     sne = sne + chaeng
  4075.     else
  4076.         sne = sne + 0.625
  4077.         end
  4078. timepoz = music.TimePosition
  4079. music.SoundId = "rbxassetid://"..SONG
  4080. if luna.Parent ~= nil then
  4081.     sphere2(5,"Add",luna.CFrame,vt(0.525,0.525,0.525),0.001,0.001,0.001,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
  4082. --sphere2(5,"Add",luna.CFrame*CFrame.new(math.random(-0.555,0.555),math.random(-0.555,0.555),math.random(-0.555,0.555)),vt(0.125,0.125,0.125),0.001,0.001,0.001,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
  4083. end
  4084. --sphere2(5,"Add",luna.CFrame*CFrame.new(math.random(-0.5,0.5),math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.25,0.25,0.25),0.01,0.01,0.01,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
  4085. luna.CFrame = sorb.CFrame*CF(0,-0.75,0)*ANGLES(RAD(360*math.cos(sne/168)),math.rad(360*math.cos(sne/168)),math.rad(360*math.cos(sne/168)))
  4086. if Mode ~= "MN" then
  4087.     luna.Parent = nil
  4088. elseif Mode == "MN" then
  4089.     luna.Parent = char
  4090. end
  4091. if Mode == "T" then
  4092. music.Volume = 2
  4093. elseif Mode == "LS" then
  4094.     music.Volume = 5
  4095. elseif Mode ~= "LS" and Mode ~= "T" then
  4096.     music.Volume = 3.5
  4097.     end
  4098. if music.Parent ~= char.HumanoidRootPart then
  4099. music = Instance.new("Sound",char.HumanoidRootPart)
  4100. music.SoundId = "rbxassetid://"..SONG
  4101. music.Looped = true
  4102. music.Pitch = 1
  4103. if Mode == "T" then
  4104. music.Volume = 2
  4105. elseif Mode == "LS" then
  4106.     music.Volume = 5
  4107.     elseif Mode ~= "LS" and Mode ~= "T" then
  4108.     music.Volume = 3.5
  4109.     end
  4110. music.TimePosition = timepoz
  4111. music:Resume() 
  4112. end
  4113. if Mode ~= "G" then
  4114. TextUI.Text.Rotation = 2 *math.cos(sne/32)
  4115. else
  4116.     TextUI.Text.Rotation = math.random(-2,2)
  4117.     end
  4118. if Mode == "G" then
  4119.     glitchval = math.random(1,255)/255
  4120.     if math.random(1,3) == 1 then
  4121.             for i,v in pairs(TurboCore:GetChildren()) do
  4122. if v:IsA("BasePart") then
  4123. if v.Name == "NeonArmor" then
  4124.     v.Material = "Slate"
  4125.             v.Transparency = math.random(0.1,1.0)
  4126. v.Color = Color3.new(glitchval,glitchval,glitchval)
  4127. end
  4128. end
  4129. end
  4130.             for i,v in pairs(gauntlet:GetChildren()) do
  4131. if v:IsA("BasePart") then
  4132. if v.Name == "NeonArmor" then
  4133.         v.Material = "Slate"
  4134.                 v.Transparency = math.random(0.1,1.0)
  4135. v.Color = Color3.new(glitchval,glitchval,glitchval)
  4136. end
  4137. end
  4138. end
  4139. for i,v in pairs(gauntlet2:GetChildren()) do
  4140. if v:IsA("BasePart") then
  4141. if v.Name == "NeonArmor" then
  4142.         v.Material = "Slate"
  4143.         v.Transparency = math.random(0.1,1.0)
  4144. v.Color = Color3.new(glitchval,glitchval,glitchval)
  4145. end
  4146. end
  4147. end
  4148.                     TextUI.Text.Image = "rbxassetid://2866315054"
  4149.     else
  4150.         if math.random(1,25) == 1 then
  4151.         PixelBlockNeg(1,math.random(1,2),"Add",RootPart.CFrame*CFrame.new(math.random(-15,15),0,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),5,5,5,0.1,BrickColor.new("Institutional white"),-10)
  4152.                 end
  4153.                     TextUI.Text.Image = "rbxassetid://2866314462"
  4154.         MainFrame2.Cube1.BackgroundColor3= Color3.new(glitchval,glitchval,glitchval)
  4155.         MainFrame2.Cube2.BackgroundColor3= Color3.new(glitchval,glitchval,glitchval)
  4156.             for i,v in pairs(TurboCore:GetChildren()) do
  4157. if v:IsA("BasePart") then
  4158. if v.Name == "NeonArmor" then
  4159.     v.Material = "Neon"
  4160.             v.Transparency = 0
  4161. v.Color = Color3.new(glitchval,glitchval,glitchval)
  4162. end
  4163. end
  4164. end
  4165.             for i,v in pairs(gauntlet:GetChildren()) do
  4166. if v:IsA("BasePart") then
  4167. if v.Name == "NeonArmor" then
  4168.         v.Material = "Neon"
  4169.                 v.Transparency = 0
  4170. v.Color = Color3.new(glitchval,glitchval,glitchval)
  4171. end
  4172. end
  4173. end
  4174. for i,v in pairs(gauntlet2:GetChildren()) do
  4175. if v:IsA("BasePart") then
  4176. if v.Name == "NeonArmor" then
  4177.         v.Material = "Neon"
  4178.                 v.Transparency = 0
  4179. v.Color = Color3.new(glitchval,glitchval,glitchval)
  4180. end
  4181. end
  4182. end
  4183.     end
  4184. elseif Mode ~= "G" then
  4185.                 for i,v in pairs(TurboCore:GetChildren()) do
  4186. if v:IsA("BasePart") then
  4187. if v.Name == "NeonArmor" then
  4188.     v.Material = "Neon"
  4189.             v.Transparency = 0
  4190. end
  4191. end
  4192. end
  4193.             for i,v in pairs(gauntlet:GetChildren()) do
  4194. if v:IsA("BasePart") then
  4195. if v.Name == "NeonArmor" then
  4196.     v.Material = "Neon"
  4197.             v.Transparency = 0
  4198. end
  4199. end
  4200. end
  4201. for i,v in pairs(gauntlet2:GetChildren()) do
  4202. if v:IsA("BasePart") then
  4203. if v.Name == "NeonArmor" then
  4204.     v.Material = "Neon"
  4205.             v.Transparency = 0
  4206. end
  4207. end
  4208. end
  4209. if Mode == "T" then
  4210.                 TextUI.Text.Image = "rbxassetid://2863687732"
  4211.     for i,v in pairs(TurboCore:GetChildren()) do
  4212. if v:IsA("BasePart") then
  4213. if v.Name == "NeonArmor" then
  4214. v.Color = BrickColor.new("Deep orange").Color
  4215. end
  4216. end
  4217. end
  4218.             for i,v in pairs(gauntlet:GetChildren()) do
  4219. if v:IsA("BasePart") then
  4220. if v.Name == "NeonArmor" then
  4221. v.Color = BrickColor.new("Deep orange").Color
  4222. end
  4223. end
  4224. end
  4225. for i,v in pairs(gauntlet2:GetChildren()) do
  4226. if v:IsA("BasePart") then
  4227. if v.Name == "NeonArmor" then
  4228. v.Color = BrickColor.new("Deep orange").Color
  4229. end
  4230. end
  4231. end
  4232. end
  4233.  
  4234. if Mode == "N" then
  4235.         if hitfloor ~= nil then
  4236.         sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
  4237.     end
  4238.     if math.random(1,2) == 1 then
  4239.     TextUI.Text.Image = "rbxassetid://2874580999"
  4240.     else
  4241.     TextUI.Text.Image = "rbxassetid://2874633415"
  4242.         end
  4243.         MainFrame2.Cube1.BackgroundColor3=Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15))
  4244.         MainFrame2.Cube2.BackgroundColor3=Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15))
  4245.     for i,v in pairs(TurboCore:GetChildren()) do
  4246. if v:IsA("BasePart") then
  4247. if v.Name == "NeonArmor" then
  4248. v.Color = Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15))
  4249. end
  4250. end
  4251. end
  4252.             for i,v in pairs(gauntlet:GetChildren()) do
  4253. if v:IsA("BasePart") then
  4254. if v.Name == "NeonArmor" then
  4255. v.Color = Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15))
  4256. end
  4257. end
  4258. end
  4259. for i,v in pairs(gauntlet2:GetChildren()) do
  4260. if v:IsA("BasePart") then
  4261. if v.Name == "NeonArmor" then
  4262. v.Color = Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15))
  4263. end
  4264. end
  4265. end
  4266. end
  4267. end
  4268. if Mode == "R" then
  4269.                     TextUI.Text.Image = "rbxassetid://2866469300"
  4270.                         TextUI.Text.ImageColor3 = Color3.new(r/255,g/255,b/255)
  4271.         MainFrame2.Cube1.BackgroundColor3=Color3.new(r/255,g/255,b/255)
  4272.         MainFrame2.Cube2.BackgroundColor3=Color3.new(r/255,g/255,b/255)
  4273.     for i,v in pairs(TurboCore:GetChildren()) do
  4274. if v:IsA("BasePart") then
  4275. if v.Name == "NeonArmor" then
  4276. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4277. end
  4278. end
  4279. end
  4280.             for i,v in pairs(gauntlet:GetChildren()) do
  4281. if v:IsA("BasePart") then
  4282. if v.Name == "NeonArmor" then
  4283. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4284. end
  4285. end
  4286. end
  4287. for i,v in pairs(gauntlet2:GetChildren()) do
  4288. if v:IsA("BasePart") then
  4289. if v.Name == "NeonArmor" then
  4290. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4291. end
  4292. end
  4293. end
  4294. elseif Mode ~= "R" then
  4295.     TextUI.Text.ImageColor3 = Color3.new(255/255,255/255,255/255)
  4296.     if Mode == "T" then
  4297.         MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
  4298.         MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
  4299.                 TextUI.Text.Image = "rbxassetid://2863687732"
  4300.     for i,v in pairs(TurboCore:GetChildren()) do
  4301. if v:IsA("BasePart") then
  4302. if v.Name == "NeonArmor" then
  4303. v.Color = BrickColor.new("Deep orange").Color
  4304. end
  4305. end
  4306. end
  4307.             for i,v in pairs(gauntlet:GetChildren()) do
  4308. if v:IsA("BasePart") then
  4309. if v.Name == "NeonArmor" then
  4310. v.Color = BrickColor.new("Deep orange").Color
  4311. end
  4312. end
  4313. end
  4314. for i,v in pairs(gauntlet2:GetChildren()) do
  4315. if v:IsA("BasePart") then
  4316. if v.Name == "NeonArmor" then
  4317. v.Color = BrickColor.new("Deep orange").Color
  4318. end
  4319. end
  4320. end
  4321. end
  4322. end
  4323. sine = sne
  4324. if Mode == "ICE" then
  4325.     BOIE = BOIE + 1
  4326.     if BOIE == 32 then
  4327.         BOIE = 0
  4328. CrystalEffect(2.2,math.random(-6,6),"Add",root.CFrame*CFrame.new(math.random(-125,125),25,math.random(-125,125))*CFrame.Angles(math.rad(math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),50,50,50,-0.03,0)
  4329. if math.random(1,4) == 1 then
  4330.     CrystalEffect(2.2,math.random(-6,6),"Add",root.CFrame*CFrame.new(math.random(-125,125),25,math.random(-125,125))*CFrame.Angles(math.rad(math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),50,50,50,-0.03,0)
  4331. end
  4332. end
  4333. end
  4334.  
  4335.  
  4336.  
  4337. --TriangleEffect(7.5,0,"Add",root.CFrame*CFrame.Angles(math.rad(sne),math.rad(sne),math.rad(sne)),0.03,0)
  4338.  
  4339. ----------SALVO'S GUI---------
  4340. MainFrame2.ImageLabel.Image = TextUI.Text.Image
  4341. MainFrame2.ImageLabel.Rotation = 5 * math.cos(sine/31)
  4342. MainFrame2.ImageLabel.ImageColor3 = TextUI.Text.ImageColor3
  4343. MainFrame2.Cube1.Rotation = MainFrame2.Cube1.Rotation + (1+.9*math.sin(sine / 31) + music.PlaybackLoudness/123)
  4344. MainFrame2.Cube2.Rotation = MainFrame2.Cube2.Rotation + (2-.9*math.cos(sine / 31) + music.PlaybackLoudness/88)
  4345. MainFrame2.Cube1.Size = UDim2.new(0,200 + music.PlaybackLoudness/14,0,200 + music.PlaybackLoudness/14)
  4346. MainFrame2.Cube2.Size = UDim2.new(0,160 + music.PlaybackLoudness/21,0,160 + music.PlaybackLoudness/21)
  4347.  
  4348. local bruh1=MainFrame2.Cube1.BackgroundColor3.r
  4349. local bruh2=MainFrame2.Cube1.BackgroundColor3.g
  4350. local bruh3=MainFrame2.Cube1.BackgroundColor3.b
  4351.  
  4352. MainFrame2.Cube1.mg1.ImageColor3=Color3.new(bruh1-(.15+.2*math.sin(sine/19)),bruh2-(.15+.2*math.sin(sine/19)),bruh3-(.15+.2*math.sin(sine/19)))
  4353. MainFrame2.Cube1.mg2.ImageColor3=Color3.new(bruh1-(.15+.2*math.sin(sine/19)),bruh2-(.15+.2*math.sin(sine/19)),bruh3-(.15+.2*math.sin(sine/19)))
  4354. MainFrame2.Cube1.mg3.ImageColor3=Color3.new(bruh1-(.15+.2*math.sin(sine/19)),bruh2-(.15+.2*math.sin(sine/19)),bruh3-(.15+.2*math.sin(sine/19)))
  4355. MainFrame2.Cube1.mg4.ImageColor3=Color3.new(bruh1-(.15+.2*math.sin(sine/19)),bruh2-(.15+.2*math.sin(sine/19)),bruh3-(.15+.2*math.sin(sine/19)))
  4356. MainFrame2.Cube2.mg1.ImageColor3=Color3.new(bruh1-(.15+.22*math.cos(sine/18)),bruh2-(.15+.22*math.cos(sine/18)),bruh3-(.15+.22*math.cos(sine/18)))
  4357. MainFrame2.Cube2.mg2.ImageColor3=Color3.new(bruh1-(.15+.22*math.cos(sine/18)),bruh2-(.15+.22*math.cos(sine/18)),bruh3-(.15+.22*math.cos(sine/18)))
  4358. MainFrame2.Cube2.mg3.ImageColor3=Color3.new(bruh1-(.15+.22*math.cos(sine/18)),bruh2-(.15+.22*math.cos(sine/18)),bruh3-(.15+.22*math.cos(sine/18)))
  4359. MainFrame2.Cube2.mg4.ImageColor3=Color3.new(bruh1-(.15+.22*math.cos(sine/18)),bruh2-(.15+.22*math.cos(sine/18)),bruh3-(.15+.22*math.cos(sine/18)))
  4360.  
  4361.             SideFrame2.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
  4362.                                     SideFrame2.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
  4363.             SideFrame3.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
  4364.                         SideFrame3.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
  4365.                                     SideFrame4.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
  4366.                         SideFrame4.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
  4367.                         SideFrame5.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
  4368.                         SideFrame5.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
  4369.                                             SideFrame0.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
  4370.                         SideFrame0.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
  4371.                         SideFrame_0.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
  4372.                         SideFrame_0.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
  4373.                                             SideFrame1.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
  4374.                         SideFrame1.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
  4375.                     SideFrame_0.Size = UDim2.new(0,35+music.PlaybackLoudness/16,0,15)
  4376.                     SideFrame0.Size = UDim2.new(0,45+music.PlaybackLoudness/14,0,15)
  4377.                     SideFrame1.Size = UDim2.new(0,55+music.PlaybackLoudness/12,0,15)
  4378.             SideFrame2.Size = UDim2.new(0,65+music.PlaybackLoudness/10,0,15)
  4379.                         SideFrame3.Size = UDim2.new(0,75+music.PlaybackLoudness/8,0,15)
  4380.             SideFrame4.Size = UDim2.new(0,85+music.PlaybackLoudness/6,0,15)
  4381.                         SideFrame5.Size = UDim2.new(0,95+music.PlaybackLoudness/4,0,15)
  4382.  
  4383. owakdoa=owakdoa+1
  4384. if owakdoa>=4 then
  4385.     owakdoa=0
  4386. gagok()
  4387. end
  4388. ---------------------------------------------------------------------
  4389. if char:FindFirstChild("CharacterMesh") then
  4390.     char.CharacterMesh:Remove()
  4391. end
  4392.     if char:FindFirstChild("Animate") then
  4393.         char.Animate:Remove()
  4394.     end
  4395.         if char:FindFirstChild("Animator") then
  4396.         char.Animate:Remove()
  4397.         end
  4398.                 if char:FindFirstChild("ForceField") then
  4399.         char.ForceField:Remove()
  4400.         end
  4401.             if char.Humanoid:FindFirstChild("Animate") then
  4402.         char.Humanoid.Animate:Remove()
  4403.             end
  4404.                 if char.Humanoid:FindFirstChild("Animator") then
  4405.         char.Humanoid.Animator:Remove()
  4406.     end
  4407. char.Humanoid.WalkSpeed = Speed
  4408. char.Humanoid.JumpPower = 90
  4409. local TorsoVelocity=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4410. local velderp=RootPart.Velocity.y
  4411. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4412. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4413. ANIMATION="Jump"
  4414. if attacking==false then
  4415. RightH.C0=clerp(RightH.C0,cf(1,-0.35 - 0.05 * math.cos(sne / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  4416. LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  4417. RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sne / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4418. Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  4419. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sne / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  4420. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sne / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  4421. end
  4422. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4423. ANIMATION="Fall"
  4424. if attacking==false then
  4425. RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  4426. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  4427. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  4428. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  4429. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
  4430. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
  4431. end
  4432. elseif TorsoVelocity<1 and hitfloor~=nil then
  4433. ANIMATION="Idle"
  4434. if attacking==false then
  4435.     if Chill == false then
  4436.     if Mode == "T" then
  4437. --RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.08 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4438. --LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.08 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4439. --RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.085 * math.cos(sne / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4440. --Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4441.     RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 3 * math.cos(sne / 32))),.1)
  4442. LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 3 * math.cos(sne / 32))),.1)
  4443. RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sne / 32))*angles(math.rad(0 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-1)),.1)
  4444. Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(5 - 2 * math.cos(sne / 37)),math.rad(0 + 1 * math.cos(sne / 58)),math.rad(1 + 2 * math.cos(sne / 53))),.1)
  4445. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(2 + 5 * math.cos(sne / 74)),math.rad(1 - 3 * math.cos(sne / 53)),math.rad(14 + 3 * math.cos(sne / 45))),.1)
  4446. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(5 - 3 * math.cos(sne / 73)),math.rad(2 - 1 * math.cos(sne / 55)),math.rad(-18 - 3 * math.cos(sne / 45))),.1)
  4447. --RightS.C0 = clerp2(RightS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12+3*math.cos(sne/32))) * CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.15 / 3)
  4448.  --LeftS.C0 = clerp2(LeftS.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12-3*math.cos(sne/32))) * CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.15 / 3)
  4449.     elseif Mode == "LS" then
  4450.         RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 + 0.5 * math.cos(sne / 34)),math.rad(6 + 3 * math.cos(sne / 34)),math.rad(0 - 1 * math.cos(sne / 34))),.1)
  4451. LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 + 0.25 * math.cos(sne / 34)),math.rad(8 - 2 * math.cos(sne / 34)),math.rad(0 + 1 * math.cos(sne / 34))),.1)
  4452. RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.01 * math.cos(sne / 34),0 + 0.05 * math.cos(sne / 28))*angles(math.rad(0 - 1 * math.cos(sne / 34)),math.rad(0),math.rad(18 + 3 * math.cos(sne / 65))),.1)
  4453. Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(12 - 3.5 * math.cos(sne / 28)),math.rad(3 * math.cos(sne / 32) + 0.5 * math.cos(sne / 28)),math.rad(-18 - 3 * math.cos(sne / 65))),.1)
  4454. RW.C0=clerp(RW.C0,cf(0.85,0.4 + 0.06 * math.cos(sne / 28),-0.65)*angles(math.rad(36 - 3 * math.cos(sne / 34)),math.rad(-2 + 2 * math.cos(sne / 45)),math.rad(-88 + 2 * math.cos(sne / 28))),.1)
  4455. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.06 * math.cos(sne / 28),-0.65)*angles(math.rad(46 + 3 * math.cos(sne / 49)),math.rad(2 - 2 * math.cos(sne / 52)),math.rad(88 - 3 * math.cos(sne / 39))),.1)
  4456.     elseif Mode == "DM" then -- GodzPlaysRB's Floppy doppy animation
  4457. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 15 * math.cos(sine / 28)),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4458. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 15 * math.cos(sine / 28)),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4459. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 + 15 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4460. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 7 * math.cos(sine / 28)),math.rad(0 + 10 * math.cos(sine / 28)),math.rad(0)),.1)
  4461. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 1 * math.cos(sine / 28)),math.rad(0 + 25 * math.cos(sine / 28)),math.rad(20 - 5 * math.sin(sine / 28))),.1)
  4462. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 2 * math.cos(sine / 28)),math.rad(0 - 27 * math.cos(sine / 28)),math.rad(-20 + 5 * math.sin(sine / 28))),.1)
  4463.     elseif Mode == "G" then
  4464.         RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 2 * math.cos(sne / 32))),.1)
  4465. LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 2 * math.cos(sne / 32))),.1)
  4466. RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.02 * math.cos(sne / 32),-0.1 + 0.05 * math.cos(sne / 32))*angles(math.rad(0 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-11)),.1)
  4467. Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(11 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sne / 28)),math.rad(0),math.rad(31 + 6.5 * math.cos(sne / 32.5))),.1)
  4468. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(1,3)),math.rad(-5),math.rad(15 + 7.5 * math.cos(sne / 32.5))),.1)
  4469. LW.C0=clerp(LW.C0,cf(-1.5+0.05*math.cos(sne/32),0.65-.05*math.cos(sne/32),0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(136,159)),math.rad(5),math.rad(29 - 8.5 * math.cos(sne / 32.5))),.1)
  4470.         elseif Mode == "MH" then
  4471.         RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(24 - 2 * math.cos(sne / 32))),.1)
  4472. LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(-24 + 2 * math.cos(sne / 32))),.1)
  4473. RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.02 * math.cos(sne / 32),-0.1 + 0.05 * math.cos(sne / 32))*angles(math.rad(24 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-6)),.1)
  4474. Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(11 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(21 - 2.5 * math.cos(sne / 28)),math.rad(0),math.rad(4 + 6.5 * math.cos(sne / 1.5))),.1)
  4475. RW.C0=clerp(RW.C0,cf(1,0.695,-0.5)*angles(math.rad(150 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.5265)),math.rad(-42 - 1.5 * math.cos(sine / 25) + 15 * math.cos(sne / 0.5265))),.1)
  4476. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(23 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.5265)),math.rad(-25 - 15 * math.cos(sne / 0.5265))),.1)
  4477.     elseif Mode == "MN" then
  4478.         RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.15)*angles(math.rad(0),math.rad(82.5),math.rad(0))*angles(math.rad(-7),math.rad(-1 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.2)
  4479. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-82.5),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(3 + 2 * math.cos(sine / 32))),.2)
  4480. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(11-3*math.cos(sne/32))),.2)
  4481. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(11 - 2 * math.cos(sine / 37)),math.rad(-2 + 2 * math.cos(sine / 58)),math.rad(-3+3*math.cos(sine/24))),.2)
  4482. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-6 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(15 + 6 * math.cos(sine / 45))),.2)
  4483. LW.C0=clerp(LW.C0,cf(-1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(67 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.2)
  4484.     elseif Mode == "H" then
  4485. RH.C0 = clerp(RH.C0, CF(1, -1 - 0.07 * math.cos(sine / 22), 0) * angles(math.rad(0), math.rad(85), math.rad(0)) * angles(math.rad(-2.5 - 0.5 * math.sin(sine / 22)), math.rad(0), math.rad(-2)), 0.1)
  4486. LH.C0 = clerp(LH.C0, CF(-1, -1 - 0.07 * math.cos(sine / 22), 0) * angles(math.rad(0), math.rad(-78), math.rad(0)) * angles(math.rad(-2.5 - 0.5 * math.sin(sine / 22)), math.rad(0), math.rad(-5)), 0.1)
  4487. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.07 * math.cos(sine / 22))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-35)),.1)
  4488. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 31)),math.rad(0),math.rad(34)),.1)
  4489.     RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * math.sin(sine / 28), 0) * angles(math.rad(0), math.rad(-8.5 + 8.5 * math.sin(sine / 28)), math.rad(25 + 8.5 * math.sin(sine / 28))), 0.1)
  4490. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.05 * math.cos(sine / 32),-0.5)*angles(math.rad(84 - 3 * math.cos(sine / 32)),math.rad(8 - 5 * math.cos(sine / 32)),math.rad(80 - 3 * math.cos(sine / 32))),.1)
  4491.     elseif Mode == "FL" then
  4492. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4493. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4494. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(20)),.1)
  4495. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-20)),.1)
  4496. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(105),math.rad(0),math.rad(-56)),.1)
  4497. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(81),math.rad(0),math.rad(67)),.1)
  4498.     elseif Mode == "TP" then
  4499. RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.15 * math.cos(sne / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 1 * math.cos(sne / 32))),.1)
  4500. LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.15 * math.cos(sne / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 1 * math.cos(sne / 32))),.1)
  4501. RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sne / 25))*angles(math.rad(-3 + 1 * math.cos(sne / 32)),math.rad(0),math.rad(-1)),.1)
  4502. Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(5 - 2 * math.cos(sne / 37)),math.rad(0 + 1 * math.cos(sne / 58)),math.rad(1 + 2 * math.cos(sne / 53))),.1)
  4503. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(2 + 5 * math.cos(sne / 74)),math.rad(1 - 3 * math.cos(sne / 53)),math.rad(14 - 9 * math.cos(sne / 25))),.1)
  4504. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(5 - 3 * math.cos(sne / 73)),math.rad(2 - 1 * math.cos(sne / 55)),math.rad(-18 + 9 * math.cos(sne / 25))),.1)
  4505.     elseif Mode == "ICE" then
  4506. RH.C0=clerp(RH.C0,cf(1,-1 - 0.074 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4507. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.074 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4508. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.074 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4509. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4510. RW.C0=clerp(RW.C0,cf(1 + 0.085 * math.cos(sine/28),0.5 + 0.05 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 4 * math.cos(sine/28))),.1)
  4511. LW.C0=clerp(LW.C0,cf(-1 - 0.085 * math.cos(sine/28),0.5 + 0.05 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30 + 4 * math.cos(sine/28))),.1)
  4512.     elseif Mode == "N" then
  4513.         if math.random(1,3) == 1 then
  4514.         PixelBlockX(7,0.5,"Add",rarm.CFrame*CFrame.new(0,-1.35,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.01,MAINCOLOR,0)
  4515. end
  4516. sphere2(6,"Add",rarm.CFrame*CFrame.new(math.random(-0.5,0.5),-1.35 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,MAINCOLOR,MAINCOLOR.Color)
  4517.         RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1 + 1 * math.cos(sine / 50)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4518. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5 - 1 * math.cos(sine / 50)),math.rad(7),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4519. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.04 * math.cos(sine / 50),0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 + 1 * math.cos(sine / 50)),math.rad(18-4*COS(sne/42))),.1)
  4520. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 28)),math.rad(-2 + 3.5 * math.cos(sine / 57)),math.rad(18-4*math.cos(sne/42))),.1)
  4521. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 11 * math.cos(sine / 73)),math.rad(18 - 6 * math.cos(sine / 57)),math.rad(17 + 5 * math.cos(sine / 28))),.1)
  4522. --RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 - 1 * math.cos(sine / 43)),math.rad(-2 + 2 * math.cos(sine / 45)),math.rad(12 + 7 * math.cos(sine / 28))),.1)
  4523. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 1 * math.cos(sine / 49)),math.rad(2 - 2 * math.cos(sine / 52)),math.rad(-12 - 7 * math.cos(sine / 39))),.1)
  4524.     elseif Mode == "A" then
  4525. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  4526. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  4527. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 1 * math.cos(sine / 42))),.1)
  4528. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 8.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(20 + 10 * math.cos(sine / 47))),.1)
  4529.         Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(8 - 3 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-2 + 2 * math.cos(sine / 53))),.1)
  4530.         ----RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 32), -0.6) * angles(Rad(0), Rad(75 + 8.5 * Sin(sine / 32)), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(0)), 0.1)
  4531.             ----    LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 32), 0) * angles(Rad(0), Rad(-75 - 8.5 * Sin(sine / 32)), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(0)), 0.1)
  4532.         ----        RootJoint.C0=clerp(RootJoint.C0,CF(0+.2*SIN(sne/32),1.3-.5*COS(sne/32),0+.2*COS(sne/24))*ANGLES(RAD(270+1.5*SIN(sne/32)),RAD(0+5*SIN(sne/36)),RAD(-180)),.1)
  4533.         --      RootJoint.C0=clerp(RootJoint.C0,CF(0+.2*SIN(sne/32),1.3-.5*COS(sne/32),0+.2*COS(sne/24))*ANGLES(RAD(90+1.5*SIN(sne/32)),RAD(0+5*SIN(sne/36)),RAD(180)),.1)
  4534. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-2 + 2 * math.cos(sine / 53))),.1)
  4535.             RW.C0=clerp(RW.C0,cf(1,0.45 + 0.1 * math.cos(sine / 56),-0.5)*angles(math.rad(25+5*math.cos(sine/56)),math.rad(-15),math.rad(-85-5*math.cos(sine/56))),.1)
  4536. LW.C0=clerp(LW.C0,cf(-0.75,0.45 + 0.1 * math.cos(sine /56),-0.5)*angles(math.rad(-25-5*math.cos(sine/56)),math.rad(15),math.rad(80+10*math.cos(sine/56))),.1)
  4537.     elseif Mode == "R" then
  4538.         RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 18),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(1 - 2 * math.cos(sne / 18))),.1)
  4539. LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 18),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(10 - 1 * math.cos(sne / 56)),math.rad(-1 + 2 * math.cos(sne / 18))),.1)
  4540. RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sne / 18),0 + 0.05 * math.cos(sne / 18))*angles(math.rad(1 - 2 * math.cos(sne / 18)),math.rad(0),math.rad(-3 + 3 * math.cos(sne / 42))),.1)
  4541. Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 2 * math.cos(sne / 37)),math.rad(0 + 2 * math.cos(sne / 58)),math.rad(-1 + 1 * math.cos(sne / 53))),.1)
  4542. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(1 + 1 * math.cos(sne / 72)),math.rad(3 - 2 * math.cos(sne / 58)),math.rad(12 + 3 * math.cos(sne / 45))),.1)
  4543. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(1 - 2 * math.cos(sne / 66)),math.rad(2 - 1 * math.cos(sne / 56)),math.rad(-12 + 3 * math.cos(sne / 45))),.1)
  4544.     end
  4545.         elseif Chill == true then
  4546. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  4547. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  4548. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),0.123 + 0.15 * math.cos(sine / 32))*angles(math.rad(-87 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  4549. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  4550. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(183 + 3 * math.cos(sine / 74)),math.rad(2 - 1 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1)
  4551. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(183 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
  4552.     end
  4553. end
  4554. elseif TorsoVelocity>2 and TorsoVelocity<22 and hitfloor~=nil then
  4555. ANIMATIONATION="Walk"
  4556. if attacking==false then
  4557.             if Chill ~= true then
  4558.     --[[
  4559. RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.08 * math.cos(sne / 23),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-4),math.rad(0),math.rad(0+35*math.cos(sne/16))),.3)
  4560. LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.08 * math.cos(sne / 23),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-4),math.rad(0),math.rad(0+35*math.cos(sne/16))),.3)
  4561. RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.085 * math.cos(sne / 23))*angles(math.rad(8),math.rad(0),math.rad(0)),.3)
  4562. Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4563.     ]]--
  4564.     if turboli == 20 then
  4565.         turboli = 0
  4566.             if Mode ~= "LS" then
  4567. coroutine.resume(coroutine.create(function()
  4568. if Mode == "T" then
  4569. local turbo = TurboArrow:Clone()
  4570. turbo.Parent = Character
  4571. turbo.Anchored = true
  4572. turbo.CanCollide = false
  4573. turbo.CFrame = root.CFrame*cf(0,1.5,3)*angles(math.rad(131),math.rad(-180),math.rad(90))
  4574. turbo.Transparency = 0.3
  4575. swait(120)
  4576. repeat
  4577. turbo.Transparency = turbo.Transparency + 0.01
  4578. swait()
  4579. until turbo.Transparency == 0 or turbo.Transparency > 0.99
  4580. game:GetService("Debris"):AddItem(turbo, 4)
  4581. end
  4582. end))
  4583.     end
  4584.     end
  4585.     turboli = turboli + 1
  4586.             if Mode == "G" then
  4587.                 if math.random(1,5) == 1 then
  4588.                     sphereMK(0.5,-1,"Add",RootPart.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),-8)*CFrame.Angles(math.rad(math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)   
  4589.         end
  4590.         --sphereMK(3.5,-1,"Add",LeftLeg.CFrame* CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0) 
  4591.         --sphereMK(3.5,-1,"Add",RightLeg.CFrame* CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)
  4592.         end
  4593. RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.15 * math.cos(sne / 17),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 45 * math.cos(sne / 17))),.1)
  4594. LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.15 * math.cos(sne / 17),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 45 * math.cos(sne / 17))),.1)
  4595. RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sne / 8.5))*angles(math.rad(11 - 6 * math.sin(sne / 8.5)),math.rad(0 + RootPart.RotVelocity.Y*1.5),math.rad(0 - RootPart.RotVelocity.Y - 1 * math.cos(sne / 17))),.1)
  4596. Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(-6 + 2 * math.cos(sne / 17)),math.rad(0 + RootPart.RotVelocity.Y*1.5),math.rad(0 - Head.RotVelocity.Y*1.5 + 1 * math.cos(sne / 17))),.1)
  4597. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50 * math.cos(sne / 17)),math.rad(-1),math.rad(7 + 4 * math.cos(sne / 17))),.1)
  4598. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50 * math.cos(sne / 17)),math.rad(1),math.rad(-7 - 4 * math.cos(sne / 17))),.1)
  4599. -- RightS.C0 = clerp2(RightS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0 - 50 * math.cos(sne / 16)), RAD(0), RAD(12 + 3 *math.cos(sne /16))) * CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.15 / 3)
  4600. -- LeftS.C0 = clerp2(LeftS.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0 + 50 * math.cos(sne / 16)), RAD(0), RAD(-12 - 3 * math.cos(sne / 16))) * CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.15 / 3)
  4601.     elseif Chill == true then
  4602.             RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.2)*angles(math.rad(-40),math.rad(90),math.rad(0)),.1)
  4603. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),-0.3)*angles(math.rad(-40),math.rad(-90),math.rad(0)),.1)
  4604. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 29),0 + 0.125 * math.cos(sine / 34),0.123 + 0.25 * math.cos(sine / 28))*angles(math.rad(60),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.05)
  4605. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35 + 2.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(0)),.1)
  4606. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-50 - 0.3 * math.cos(sine / 43)),math.rad(-15 - 2 * math.cos(sine / 52)),math.rad(19 + 0.9 * math.cos(sine / 45))),.1)
  4607. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-50 - 0.2 * math.cos(sine / 51)),math.rad(15 - 4 * math.cos(sine / 64)),math.rad(-19 - 0.2 * math.cos(sine / 45))),.1)
  4608.         end
  4609. end
  4610. elseif TorsoVelocity>=22 and hitfloor~=nil then
  4611. ANIMATIONATION="Run"
  4612. if attacking==false then
  4613.         if Chill ~= true then
  4614.     if turboli2 == 12 then
  4615.         turboli2 = 0
  4616. coroutine.resume(coroutine.create(function()
  4617.         if Mode == "LS" then
  4618.     local turbo2 = ToothpasteArrow:Clone()
  4619.     turbo2.Parent = char
  4620.     turbo2.Anchored = true
  4621.     turbo2.CanCollide = false
  4622.     turbo2.CFrame = root.CFrame*cf(0,1.5,2.65)*angles(math.rad(146),math.rad(-180),math.rad(90))
  4623.     turbo2.Transparency = 0.3
  4624. swait(120)
  4625. repeat
  4626. turbo2.Transparency = turbo2.Transparency + 0.01
  4627. swait()
  4628. until turbo2.Transparency == 0 or turbo2.Transparency > 0.99
  4629. game:GetService("Debris"):AddItem(turbo2, 4)   
  4630. end
  4631. end))
  4632.     end
  4633.         if Mode == "R" then
  4634.         sphereMK(2.5,-1,"Add",RootPart.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),-8)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0) 
  4635.         end
  4636.     turboli2 = turboli2 + 2
  4637. RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.15 * math.cos(sne / 6),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 76 * math.cos(sne / 6))),.1)
  4638. LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.15 * math.cos(sne / 6),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 76 * math.cos(sne / 6))),.1)
  4639. RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.sin(sne / 3))*angles(math.rad(26 - 6 * math.cos(sne / 3)),math.rad(0 + RootPart.RotVelocity.Y*1.5),math.rad(0 - RootPart.RotVelocity.Y - 1 * math.cos(sne / 23))),.1)
  4640. Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(-6 + 2 * math.cos(sne / 6)),math.rad(0 + RootPart.RotVelocity.Y*1.5),math.rad(0 - Head.RotVelocity.Y*1.5 + 1 * math.cos(sne / 6))),.1)
  4641. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10+90 * math.cos(sne / 6)),math.rad(-1),math.rad(7 + 4 * math.cos(sne / 6))),.1)
  4642. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10-90 * math.cos(sne / 6)),math.rad(1),math.rad(-7 - 4 * math.cos(sne / 6))),.1)
  4643.     elseif Chill == true then--Mode == "A" then --originally was solar mode
  4644.             RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.2)*angles(math.rad(-40),math.rad(90),math.rad(0)),.1)
  4645. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),-0.3)*angles(math.rad(-40),math.rad(-90),math.rad(0)),.1)
  4646. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 29),0 + 0.125 * math.cos(sine / 34),0.115 + 0.25 * math.cos(sine / 28))*angles(math.rad(60),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.05)
  4647. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35 + 2.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(0)),.1)
  4648. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-50 - 0.3 * math.cos(sine / 43)),math.rad(-15 - 2 * math.cos(sine / 52)),math.rad(19 + 0.9 * math.cos(sine / 45))),.1)
  4649. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-50 - 0.2 * math.cos(sine / 51)),math.rad(15 - 4 * math.cos(sine / 64)),math.rad(-19 - 0.2 * math.cos(sine / 45))),.1)
  4650.         end
  4651. end
  4652. end
  4653. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement