Advertisement
PR0J3CT11

Untitled

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