Advertisement
Goo345

What Another Glitcher

Jul 19th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 261.06 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145.  
  146. warn([[What, another glitcher? This is an edit by OmegaNoscope leave credit to danny19990, NoobyGames12, 2003boobear, makhail07 (Creterisk), and XXUNORIBOASXX.]])
  147.  
  148. --- its obs smooth af do not touch
  149. ---- Sources and functions might be taken from others
  150. plr = game:GetService("Players").LocalPlayer
  151. char = plr.Character
  152. hum = char.Humanoid
  153. local cam = game.Workspace.CurrentCamera
  154. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  155. Camera = cam
  156. local CamInterrupt = false
  157. local TwoD = false
  158. local TargetInfo = {nil, nil}
  159. cam.CameraType = "Custom"
  160. t = char.Torso
  161. h = char.Head
  162. ra = char["Right Arm"]
  163. la = char["Left Arm"]
  164. rl = char["Right Leg"]
  165. ll = char["Left Leg"]
  166. tors = char.Torso
  167. lleg = char["Left Leg"]
  168. root = char.HumanoidRootPart
  169. hed = char.Head
  170. rleg = char["Right Leg"]
  171. rarm = char["Right Arm"]
  172. larm = char["Left Arm"]
  173. radian = math.rad
  174. random = math.random
  175. Vec3 = Vector3.new
  176. Inst = Instance.new
  177. cFrame = CFrame.new
  178. Euler = CFrame.fromEulerAnglesXYZ
  179. vt = Vector3.new
  180. bc = BrickColor.new
  181. br = BrickColor.random
  182. it = Instance.new
  183. cf = CFrame.new
  184. local eff = true
  185. local shielding = false
  186.  
  187. local Booleans = {
  188. CamFollow = true,
  189. GyroUse = true
  190. }
  191.  
  192. function lerp(object, newCFrame, alpha)
  193. return object:lerp(newCFrame, alpha)
  194. end
  195.  
  196. local Directer = Inst("BodyGyro", root)
  197. Directer.MaxTorque = Vec3(0, 0, 0)
  198. Directer.P = 600000
  199. local CPart = Inst("Part")
  200. CPart.Anchored = true
  201. CPart.CanCollide = false
  202. CPart.Locked = true
  203. CPart.Transparency = 1
  204.  
  205. local rainbowmode = false
  206. local chaosmode = false
  207.  
  208. kan = Instance.new("Sound",char)
  209. kan.Volume = 1.25
  210. kan.TimePosition = 0
  211. kan.PlaybackSpeed = 1
  212. kan.Pitch = 1
  213. kan.SoundId = "rbxassetid://1547042045"
  214. kan.Name = "wrecked"
  215. kan.Looped = true
  216. kan:Play()
  217.  
  218. function newTheme(ID,timepos,pitch,vol)
  219. local kanz = kan
  220. --kanz:Stop()
  221. --kanz.Volume = vol
  222. --kanz.TimePosition = timepos
  223. kanz.PlaybackSpeed = pitch
  224. kanz.Pitch = pitch
  225. kanz.SoundId = ID
  226. kanz.Name = "wrecked"
  227. kanz.Looped = true
  228. kanz.Volume = 0.3
  229. --kanz:Play()
  230. --coroutine.resume(coroutine.create(function()
  231. --wait(0.05)
  232. --end))
  233. end
  234.  
  235. function newThemeCust(ID,timepos,pitch,vol)
  236. local kanz = kan
  237. kanz:Stop()
  238. kanz.Volume = vol
  239. kanz.TimePosition = timepos
  240. kanz.PlaybackSpeed = pitch
  241. kanz.Pitch = pitch
  242. kanz.SoundId = ID
  243. kanz.Name = "wrecked"
  244. kanz.Looped = true
  245. kanz:Play()
  246. coroutine.resume(coroutine.create(function()
  247. wait(0.05)
  248. end))
  249. end
  250.  
  251.  
  252.  
  253. function CameraShake(Times, Power, PlayerTarget)
  254. coroutine.resume(coroutine.create(function()
  255. FV = Instance.new("BoolValue", PlayerTarget)
  256. FV.Name = "CameraShake"
  257. for ShakeNum=1,Times do
  258. swait()
  259. local ef=Power
  260. if ef>=1 then
  261. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  262. else
  263. ef=Power*10
  264. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  265. end
  266. end
  267. Humanoid.CameraOffset = Vector3.new(0,0,0)
  268. FV:Destroy()
  269. end))
  270. end
  271.  
  272. function CameraEnshaking(Length,Intensity)
  273. coroutine.resume(coroutine.create(function()
  274. local intensity = 1*Intensity
  275. local rotM = 0.01*Intensity
  276. for i = 0, Length, 0.1 do
  277. swait()
  278. intensity = intensity - 0.05*Intensity/Length
  279. rotM = rotM - 0.0005*Intensity/Length
  280. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  281. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  282. end
  283. Humanoid.CameraOffset = Vec3(0, 0, 0)
  284. end))
  285. end
  286. CamShake=function(Part,Distan,Power,Times)
  287. local de=Part.Position
  288. for i,v in pairs(workspace:children()) do
  289. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  290. for _,c in pairs(v:children()) do
  291. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  292. local Noob=v.Humanoid
  293. if Noob~=nil then
  294. coroutine.resume(coroutine.create(function()
  295. FV = Instance.new("BoolValue", Noob)
  296. FV.Name = "CameraShake"
  297. for ShakeNum=1,Times do
  298. swait()
  299. local ef=Power
  300. if ef>=1 then
  301. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  302. else
  303. ef=Power*10
  304. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  305. end
  306. end
  307. Humanoid.CameraOffset = Vector3.new(0,0,0)
  308. FV:Destroy()
  309. end))
  310. CameraShake(Times, Power, Noob)
  311. end
  312. end
  313. end
  314. end
  315. end
  316. end
  317.  
  318. function chatfunc(text,color)
  319. local chat = coroutine.wrap(function()
  320. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  321. Character:FindFirstChild("TalkingBillBoard"):destroy()
  322. end
  323. local naeeym2 = Instance.new("BillboardGui",Character)
  324. naeeym2.Size = UDim2.new(0,100,0,40)
  325. naeeym2.StudsOffset = Vector3.new(0,3,0)
  326. naeeym2.Adornee = Character.Head
  327. naeeym2.Name = "TalkingBillBoard"
  328. local tecks2 = Instance.new("TextLabel",naeeym2)
  329. tecks2.BackgroundTransparency = 1
  330. tecks2.BorderSizePixel = 0
  331. tecks2.Text = ""
  332. tecks2.Font = "SciFi"
  333. tecks2.TextSize = 30
  334. tecks2.TextStrokeTransparency = 0
  335. tecks2.TextColor3 = color
  336. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  337. tecks2.Size = UDim2.new(1,0,0.5,0)
  338. local tecks3 = Instance.new("TextLabel",naeeym2)
  339. tecks3.BackgroundTransparency = 1
  340. tecks3.BorderSizePixel = 0
  341. tecks3.Text = ""
  342. tecks3.Font = "SciFi"
  343. tecks3.TextSize = 30
  344. tecks3.TextStrokeTransparency = 0
  345. tecks3.TextColor3 = Color3.new(0,0,0)
  346. tecks3.TextStrokeColor3 = color
  347. tecks3.Size = UDim2.new(1,0,0.5,0)
  348. coroutine.resume(coroutine.create(function()
  349. while true do
  350. swait(1)
  351. plr.Character.wrecked.Volume = 0.3
  352. if chaosmode == true then
  353. tecks2.TextColor3 = BrickColor.random().Color
  354. tecks3.TextStrokeColor3 = BrickColor.random().Color
  355. end
  356. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  357. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  358. tecks2.Rotation = math.random(-5,5)
  359. tecks3.Rotation = math.random(-5,5)
  360. end
  361. end))
  362. for i = 1,string.len(text),1 do
  363. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  364. tecks2.Text = string.sub(text,1,i)
  365. tecks3.Text = string.sub(text,1,i)
  366. swait(1)
  367. end
  368. wait(1)
  369. local randomrot = math.random(1,2)
  370. if randomrot == 1 then
  371. for i = 1, 50 do
  372. swait()
  373. tecks2.Rotation = tecks2.Rotation - .75
  374. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  375. tecks2.TextTransparency = tecks2.TextTransparency + .04
  376. tecks3.Rotation = tecks2.Rotation + .75
  377. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  378. tecks3.TextTransparency = tecks2.TextTransparency + .04
  379. end
  380. elseif randomrot == 2 then
  381. for i = 1, 50 do
  382. swait()
  383. tecks2.Rotation = tecks2.Rotation + .75
  384. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  385. tecks2.TextTransparency = tecks2.TextTransparency + .04
  386. tecks3.Rotation = tecks2.Rotation - .75
  387. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  388. tecks3.TextTransparency = tecks2.TextTransparency + .04
  389. end
  390. end
  391. naeeym2:Destroy()
  392. end)
  393. chat()
  394. end
  395.  
  396.  
  397. local Create = LoadLibrary("RbxUtility").Create
  398.  
  399. CFuncs = {
  400. ["Part"] = {
  401. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  402. local Part = Create("Part"){
  403. Parent = Parent,
  404. Reflectance = Reflectance,
  405. Transparency = Transparency,
  406. CanCollide = false,
  407. Locked = true,
  408. BrickColor = BrickColor.new(tostring(BColor)),
  409. Name = Name,
  410. Size = Size,
  411. Material = Material,
  412. }
  413. RemoveOutlines(Part)
  414. return Part
  415. end;
  416. };
  417.  
  418. ["Mesh"] = {
  419. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  420. local Msh = Create(Mesh){
  421. Parent = Part,
  422. Offset = OffSet,
  423. Scale = Scale,
  424. }
  425. if Mesh == "SpecialMesh" then
  426. Msh.MeshType = MeshType
  427. Msh.MeshId = MeshId
  428. end
  429. return Msh
  430. end;
  431. };
  432.  
  433. ["Mesh"] = {
  434. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  435. local Msh = Create(Mesh){
  436. Parent = Part,
  437. Offset = OffSet,
  438. Scale = Scale,
  439. }
  440. if Mesh == "SpecialMesh" then
  441. Msh.MeshType = MeshType
  442. Msh.MeshId = MeshId
  443. end
  444. return Msh
  445. end;
  446. };
  447.  
  448. ["Weld"] = {
  449. Create = function(Parent, Part0, Part1, C0, C1)
  450. local Weld = Create("Weld"){
  451. Parent = Parent,
  452. Part0 = Part0,
  453. Part1 = Part1,
  454. C0 = C0,
  455. C1 = C1,
  456. }
  457. return Weld
  458. end;
  459. };
  460.  
  461. ["Sound"] = {
  462. Create = function(id, par, vol, pit)
  463. coroutine.resume(coroutine.create(function()
  464. local S = Create("Sound"){
  465. Volume = vol,
  466. Name = "EffectSoundo",
  467. Pitch = pit or 1,
  468. SoundId = id,
  469. Parent = par or workspace,
  470. }
  471. wait()
  472. S:play()
  473. game:GetService("Debris"):AddItem(S, 10)
  474. end))
  475. end;
  476. };
  477.  
  478. ["LongSound"] = {
  479. Create = function(id, par, vol, pit)
  480. coroutine.resume(coroutine.create(function()
  481. local S = Create("Sound"){
  482. Volume = vol,
  483. Pitch = pit or 1,
  484. SoundId = id,
  485. Parent = par or workspace,
  486. }
  487. wait()
  488. S:play()
  489. game:GetService("Debris"):AddItem(S, 30)
  490. end))
  491. end;
  492. };
  493.  
  494. ["ParticleEmitter"] = {
  495. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  496. local fp = Create("ParticleEmitter"){
  497. Parent = Parent,
  498. Color = ColorSequence.new(Color1, Color2),
  499. LightEmission = LightEmission,
  500. Size = Size,
  501. Texture = Texture,
  502. Transparency = Transparency,
  503. ZOffset = ZOffset,
  504. Acceleration = Accel,
  505. Drag = Drag,
  506. LockedToPart = LockedToPart,
  507. VelocityInheritance = VelocityInheritance,
  508. EmissionDirection = EmissionDirection,
  509. Enabled = Enabled,
  510. Lifetime = LifeTime,
  511. Rate = Rate,
  512. Rotation = Rotation,
  513. RotSpeed = RotSpeed,
  514. Speed = Speed,
  515. VelocitySpread = VelocitySpread,
  516. }
  517. return fp
  518. end;
  519. };
  520.  
  521. CreateTemplate = {
  522.  
  523. };
  524. }
  525.  
  526.  
  527.  
  528. New = function(Object, Parent, Name, Data)
  529. local Object = Instance.new(Object)
  530. for Index, Value in pairs(Data or {}) do
  531. Object[Index] = Value
  532. end
  533. Object.Parent = Parent
  534. Object.Name = Name
  535. return Object
  536. end
  537. local halocolor = BrickColor.new("Pastel light blue")
  538. local halocolor2 = BrickColor.new("Cool yellow")
  539. local starcolor = BrickColor.new("Bright yellow")
  540. local lunacolor = BrickColor.new("Navy blue")
  541. local lunacolor2 = BrickColor.new("Bright blue")
  542. local wepcolor = BrickColor.new("Really black")
  543. local maincolor = BrickColor.new("Really black")
  544. local m = Instance.new("Model",char)
  545. local m2 = Instance.new("Model",char)
  546. local m3 = Instance.new("Model",char)
  547. local mw1 = Instance.new("Model",char)
  548. local mw2 = Instance.new("Model",char)
  549.  
  550. local extrawingmod1 = Instance.new("Model",char)
  551. local extrawingmod2 = Instance.new("Model",char)
  552.  
  553. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  554. local p = Instance.new("Part")
  555. p.TopSurface = 0
  556. p.BottomSurface = 0
  557. p.Parent = parent
  558. p.Size = Vector3.new(0.1,0.1,0.1)
  559. p.Transparency = transparency
  560. p.Reflectance = reflectance
  561. p.CanCollide = false
  562. p.Locked = true
  563. p.BrickColor = brickcolor
  564. p.Material = material
  565. return p
  566. end
  567.  
  568. function CreateMesh(parent,meshtype,x1,y1,z1)
  569. local mesh = Instance.new("SpecialMesh",parent)
  570. mesh.MeshType = meshtype
  571. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  572. return mesh
  573. end
  574.  
  575. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  576. local mesh = Instance.new("SpecialMesh",parent)
  577. mesh.MeshType = "FileMesh"
  578. mesh.MeshId = meshid
  579. mesh.Scale = Vector3.new(x1,y1,z1)
  580. return mesh
  581. end
  582.  
  583.  
  584. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  585. local mesh = Instance.new("SpecialMesh",parent)
  586. mesh.MeshType = "FileMesh"
  587. mesh.MeshId = meshid
  588. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  589. mesh.Scale = Vector3.new(x1,y1,z1)
  590. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  591. return mesh
  592. end
  593.  
  594. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  595. local weld = Instance.new("Weld")
  596. weld.Parent = parent
  597. weld.Part0 = part0
  598. weld.Part1 = part1
  599. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  600. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  601. return weld
  602. end
  603.  
  604.  
  605. --------------
  606. local secondchar = Instance.new("Model",char)
  607. local GhostCol = BrickColor.new("Dark red")
  608. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  609. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  610. local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  611.  
  612. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  613. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  614. local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  615.  
  616. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  617. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  618. local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  619.  
  620. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  621. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  622. local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  623.  
  624. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  625. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  626. local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  627.  
  628. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  629. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  630. local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  631. --------------
  632. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  633. CreateWeld(sorb,rarm,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))
  634. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  635. CreateWeld(sorb2,larm,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))
  636.  
  637. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  638. CreateMesh(handle,"Brick",0,0,0)
  639. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  640. local valuaring = 10
  641. for i = 0, 49 do
  642. valuaring = valuaring + 10
  643. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  644. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  645. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  646. end
  647.  
  648. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  649. CreateMesh(handle,"Brick",0,0,0)
  650. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  651. local valuaring = 10
  652. for i = 0, 49 do
  653. valuaring = valuaring + 10
  654. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  655. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  656. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  657. end
  658.  
  659.  
  660. local handle = CreateParta(m,1,1,"Neon",maincolor)
  661. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  662. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  663.  
  664. --- Left wing.
  665.  
  666. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  667. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  668. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  669.  
  670. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  671. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  672. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  673. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  674. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  675. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  676. A0 = Instance.new('Attachment',wed)
  677. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  678. CreateMesh(wed,"Wedge",0.05,0.5,3)
  679. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  680. A1 = Instance.new('Attachment',wed)
  681. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  682. CreateMesh(wed,"Wedge",0.05,3,0.5)
  683. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  684.  
  685. tl1 = Instance.new('Trail',wed)
  686. tl1.Attachment0 = A0
  687. tl1.Attachment1 = A1
  688. tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  689. tl1.LightEmission = 1
  690. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  691. tl1.Color = ColorSequence.new(BrickColor.new('Dark green').Color)
  692. tl1.Lifetime = 0.6
  693.  
  694.  
  695. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  696. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  697. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  698.  
  699. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  700. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  701. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  702. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  703. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  704. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  705. A0 = Instance.new('Attachment',wed)
  706. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  707. CreateMesh(wed,"Wedge",0.05,0.5,3)
  708. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  709. A1 = Instance.new('Attachment',wed)
  710. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  711. CreateMesh(wed,"Wedge",0.05,3,0.5)
  712. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  713.  
  714. tl2 = Instance.new('Trail',wed)
  715. tl2.Attachment0 = A0
  716. tl2.Attachment1 = A1
  717. tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  718. tl2.LightEmission = 1
  719. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  720. tl2.Color = ColorSequence.new(BrickColor.new('Dark green').Color)
  721. tl2.Lifetime = 0.6
  722.  
  723. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  724. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  725. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  726.  
  727. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  728. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  729. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  730. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  731. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  732. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  733. A0 = Instance.new('Attachment',wed)
  734. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  735. CreateMesh(wed,"Wedge",0.05,0.5,3)
  736. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  737. A1 = Instance.new('Attachment',wed)
  738. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  739. CreateMesh(wed,"Wedge",0.05,3,0.5)
  740. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  741.  
  742. tl3 = Instance.new('Trail',wed)
  743. tl3.Attachment0 = A0
  744. tl3.Attachment1 = A1
  745. tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  746. tl3.LightEmission = 1
  747. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  748. tl3.Color = ColorSequence.new(BrickColor.new('Dark green').Color)
  749. tl3.Lifetime = 0.6
  750.  
  751. tl1.Enabled = false
  752. tl2.Enabled = false
  753. tl3.Enabled = false
  754. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  755. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  756. local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  757.  
  758. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  759. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  760. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  761. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  762. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  763. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  764. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  765. CreateMesh(wed,"Wedge",0.05,0.5,3)
  766. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  767. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  768. CreateMesh(wed,"Wedge",0.05,3,0.5)
  769. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  770.  
  771. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  772. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  773. local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  774.  
  775. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  776. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  777. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  778. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  779. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  780. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  781. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  782. CreateMesh(wed,"Wedge",0.05,0.5,3)
  783. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  784. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  785. CreateMesh(wed,"Wedge",0.05,3,0.5)
  786. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  787.  
  788. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  789. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  790. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  791.  
  792. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  793. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  794. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  795. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  796. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  797. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  798. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  799. CreateMesh(wed,"Wedge",0.05,0.5,3)
  800. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  801. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  802. CreateMesh(wed,"Wedge",0.05,3,0.5)
  803. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  804.  
  805. -- Right wing.
  806.  
  807. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  808. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  809. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  810.  
  811. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  812. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  813. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  814. A0 = Instance.new('Attachment',wed)
  815. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  816. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  817. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  818. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  819. CreateMesh(wed,"Wedge",0.05,0.5,3)
  820. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  821. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  822. CreateMesh(wed,"Wedge",0.05,3,0.5)
  823. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  824. A1 = Instance.new('Attachment',wed)
  825.  
  826. tr1 = Instance.new('Trail',wed)
  827. tr1.Attachment0 = A0
  828. tr1.Attachment1 = A1
  829. tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  830. tr1.LightEmission = 1
  831. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  832. tr1.Color = ColorSequence.new(BrickColor.new('Dark green').Color)
  833. tr1.Lifetime = 0.6
  834.  
  835. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  836. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  837. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  838.  
  839. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  840. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  841. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  842. A0 = Instance.new('Attachment',wed)
  843. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  844. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  845. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  846. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  847. CreateMesh(wed,"Wedge",0.05,0.5,3)
  848. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  849. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  850. CreateMesh(wed,"Wedge",0.05,3,0.5)
  851. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  852. A1 = Instance.new('Attachment',wed)
  853.  
  854. tr2 = Instance.new('Trail',wed)
  855. tr2.Attachment0 = A0
  856. tr2.Attachment1 = A1
  857. tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  858. tr2.LightEmission = 1
  859. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  860. tr2.Color = ColorSequence.new(BrickColor.new('Dark green').Color)
  861. tr2.Lifetime = 0.6
  862.  
  863. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  864. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  865. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  866.  
  867. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  868. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  869. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  870. A0 = Instance.new('Attachment',wed)
  871. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  872. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  873. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  874. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  875. CreateMesh(wed,"Wedge",0.05,0.5,3)
  876. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  877. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  878. CreateMesh(wed,"Wedge",0.05,3,0.5)
  879. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  880. A1 = Instance.new('Attachment',wed)
  881.  
  882. tr3 = Instance.new('Trail',wed)
  883. tr3.Attachment0 = A0
  884. tr3.Attachment1 = A1
  885. tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  886. tr3.LightEmission = 1
  887. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  888. tr3.Color = ColorSequence.new(BrickColor.new('Dark green').Color)
  889. tr3.Lifetime = 0.6
  890.  
  891.  
  892. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  893. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  894. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  895.  
  896. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  897. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  898. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  899. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  900. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  901. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  902. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  903. CreateMesh(wed,"Wedge",0.05,0.5,3)
  904. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  905. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  906. CreateMesh(wed,"Wedge",0.05,3,0.5)
  907. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  908.  
  909. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  910. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  911. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  912.  
  913. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  914. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  915. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  916. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  917. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  918. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  919. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  920. CreateMesh(wed,"Wedge",0.05,0.5,3)
  921. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  922. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05,3,0.5)
  924. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  925.  
  926. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  927. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  928. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  929.  
  930. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  931. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  932. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  933. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  934. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  935. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  936. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  937. CreateMesh(wed,"Wedge",0.05,0.5,3)
  938. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  939. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  940. CreateMesh(wed,"Wedge",0.05,3,0.5)
  941. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  942.  
  943. ---- HERES THE RING
  944.  
  945.  
  946. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  947. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  948. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  949. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  950. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  951. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  952. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  953. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  954. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  955.  
  956.  
  957. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  958. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  959. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  960.  
  961. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  962. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  963. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  964.  
  965.  
  966.  
  967. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  968. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  969. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  970.  
  971. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  972. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  973. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  974.  
  975. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  976. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  977. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  978.  
  979. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  980. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  981. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  982. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  983. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  984. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  985.  
  986. --- second ring
  987.  
  988. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  989. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  990. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  991. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  992. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  993. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  994. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  995. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  996. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  997.  
  998. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  999. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1000. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1001.  
  1002. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1003. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1004. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1005.  
  1006.  
  1007.  
  1008. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1009. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1010. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1011.  
  1012. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1013. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1014. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1015.  
  1016. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1017. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1018. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1019.  
  1020. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1021. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1022. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1023. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1024. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1025. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  1026.  
  1027.  
  1028.  
  1029. for i, v in pairs(m:GetChildren()) do
  1030. if v:IsA("Part") then
  1031. v.BrickColor = BrickColor.new("Really black")
  1032. v.Material = "Glass"
  1033. end
  1034. end
  1035. for i, v in pairs(m2:GetChildren()) do
  1036. if v:IsA("Part") then
  1037. v.BrickColor = BrickColor.new("Navy blue")
  1038. v.Material = "Granite"
  1039. end
  1040. end
  1041. for i, v in pairs(m3:GetChildren()) do
  1042. if v:IsA("Part") then
  1043. v.BrickColor = BrickColor.new("Dark green")
  1044. v.Material = "Neon"
  1045. end
  1046. end
  1047. for i, v in pairs(mw2:GetChildren()) do
  1048. if v:IsA("Part") then
  1049. v.BrickColor = BrickColor.new("Dark green")
  1050. v.Material = "Neon"
  1051. end
  1052. end
  1053. for i, v in pairs(mw1:GetChildren()) do
  1054. if v:IsA("Part") then
  1055. v.Transparency = 1
  1056. v.BrickColor = BrickColor.new("Dark green")
  1057. v.Material = "Neon"
  1058. end
  1059. end
  1060. for i, v in pairs(extrawingmod1:GetChildren()) do
  1061. if v:IsA("Part") then
  1062. v.Transparency = 1
  1063. v.BrickColor = BrickColor.new("White")
  1064. v.Material = "Neon"
  1065. end
  1066. end
  1067. for i, v in pairs(extrawingmod2:GetChildren()) do
  1068. if v:IsA("Part") then
  1069. v.Transparency = 1
  1070. v.BrickColor = BrickColor.new("White")
  1071. v.Material = "Neon"
  1072. end
  1073. end
  1074. local MAINRUINCOLOR = BrickColor.new("Dark green")
  1075. ------
  1076.  
  1077.  
  1078. function RemoveOutlines(part)
  1079. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1080. end
  1081. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1082. local Part = Create("Part")({
  1083. Parent = Parent,
  1084. Reflectance = Reflectance,
  1085. Transparency = Transparency,
  1086. CanCollide = false,
  1087. Locked = true,
  1088. BrickColor = BrickColor.new(tostring(BColor)),
  1089. Name = Name,
  1090. Size = Size,
  1091. Material = Material
  1092. })
  1093. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1094. RemoveOutlines(Part)
  1095. return Part
  1096. end
  1097. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1098. local Msh = Create(Mesh)({
  1099. Parent = Part,
  1100. Offset = OffSet,
  1101. Scale = Scale
  1102. })
  1103. if Mesh == "SpecialMesh" then
  1104. Msh.MeshType = MeshType
  1105. Msh.MeshId = MeshId
  1106. end
  1107. return Msh
  1108. end
  1109. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1110. local Weld = Create("Weld")({
  1111. Parent = Parent,
  1112. Part0 = Part0,
  1113. Part1 = Part1,
  1114. C0 = C0,
  1115. C1 = C1
  1116. })
  1117. return Weld
  1118. end
  1119.  
  1120. Player=game:GetService("Players").LocalPlayer
  1121. Character=Player.Character
  1122. PlayerGui=Player.PlayerGui
  1123. Backpack=Player.Backpack
  1124. Torso=Character.Torso
  1125. Head=Character.Head
  1126. Humanoid=Character.Humanoid
  1127. m=Instance.new('Model',Character)
  1128. LeftArm=Character["Left Arm"]
  1129. LeftLeg=Character["Left Leg"]
  1130. RightArm=Character["Right Arm"]
  1131. RightLeg=Character["Right Leg"]
  1132. LS=Torso["Left Shoulder"]
  1133. LH=Torso["Left Hip"]
  1134. RS=Torso["Right Shoulder"]
  1135. RH=Torso["Right Hip"]
  1136. Face = Head.face
  1137. Neck=Torso.Neck
  1138. it=Instance.new
  1139. attacktype=1
  1140. vt=Vector3.new
  1141. cf=CFrame.new
  1142. euler=CFrame.fromEulerAnglesXYZ
  1143. angles=CFrame.Angles
  1144. cloaked=false
  1145. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1146. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1147. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1148. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1149. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1150. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1151. RootPart=Character.HumanoidRootPart
  1152. RootJoint=RootPart.RootJoint
  1153. RootCF=euler(-1.57,0,3.14)
  1154. attack = false
  1155. attackdebounce = false
  1156. deb=false
  1157. equipped=true
  1158. hand=false
  1159. MMouse=nil
  1160. combo=0
  1161. mana=0
  1162. trispeed=.2
  1163. attackmode='none'
  1164. local idle=0
  1165. local Anim="Idle"
  1166. local Effects={}
  1167. local gun=false
  1168. local shoot=false
  1169. local sine = 0
  1170. local change = 1
  1171. player=nil
  1172.  
  1173.  
  1174. local toggleTag = true
  1175. local txt = Instance.new("BillboardGui", Head)
  1176. txt.Adornee = nil
  1177. txt.Name = "NameDetect"
  1178. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1179. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1180. local text = Instance.new("TextLabel", txt)
  1181. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1182. text.FontSize = "Size8"
  1183. text.TextScaled = true
  1184. text.TextTransparency = 0
  1185. text.BackgroundTransparency = 1
  1186. text.TextTransparency = 0
  1187. text.TextStrokeTransparency = 0
  1188. text.Font = "Fantasy"
  1189. text.TextStrokeColor3 = Color3.new(40/255, 127/255, 71/255)
  1190. text.TextColor3 = Color3.new(0,0,0)
  1191. text.Text = "Normal"
  1192.  
  1193. function RecolorTextAndRename(name,col1,col2)
  1194. text.TextStrokeColor3 = col2
  1195. text.TextColor3 = col1
  1196. text.Text = name
  1197. end
  1198. mouse=Player:GetMouse()
  1199. --save shoulders
  1200. RSH, LSH=nil, nil
  1201. --welds
  1202. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1203. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1204. LH=Torso["Left Hip"]
  1205. RH=Torso["Right Hip"]
  1206. TorsoColor=Torso.BrickColor
  1207. function NoOutline(Part)
  1208. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1209. end
  1210. player=Player
  1211. ch=Character
  1212. RSH=ch.Torso["Right Shoulder"]
  1213. LSH=ch.Torso["Left Shoulder"]
  1214. --
  1215. RSH.Parent=nil
  1216. LSH.Parent=nil
  1217. --
  1218. RW.Name="Right Shoulder"
  1219. RW.Part0=ch.Torso
  1220. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1221. RW.C1=cf(0, 0.5, 0)
  1222. RW.Part1=ch["Right Arm"]
  1223. RW.Parent=ch.Torso
  1224. --
  1225. LW.Name="Left Shoulder"
  1226. LW.Part0=ch.Torso
  1227. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1228. LW.C1=cf(0, 0.5, 0)
  1229. LW.Part1=ch["Left Arm"]
  1230. LW.Parent=ch.Torso
  1231.  
  1232. local Stats=Instance.new("BoolValue")
  1233. Stats.Name="Stats"
  1234. Stats.Parent=Character
  1235. local Atk=Instance.new("NumberValue")
  1236. Atk.Name="Damage"
  1237. Atk.Parent=Stats
  1238. Atk.Value=1
  1239. local Def=Instance.new("NumberValue")
  1240. Def.Name="Defense"
  1241. Def.Parent=Stats
  1242. Def.Value=1
  1243. local Speed=Instance.new("NumberValue")
  1244. Speed.Name="Speed"
  1245. Speed.Parent=Stats
  1246. Speed.Value=1
  1247. local Mvmt=Instance.new("NumberValue")
  1248. Mvmt.Name="Movement"
  1249. Mvmt.Parent=Stats
  1250. Mvmt.Value=1
  1251.  
  1252. local donum=0
  1253.  
  1254.  
  1255. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1256. local fp=it("Part")
  1257. fp.formFactor=formfactor
  1258. fp.Parent=parent
  1259. fp.Reflectance=reflectance
  1260. fp.Transparency=transparency
  1261. fp.CanCollide=false
  1262. fp.Locked=true
  1263. fp.BrickColor=brickcolor
  1264. fp.Name=name
  1265. fp.Size=size
  1266. fp.Position=Torso.Position
  1267. NoOutline(fp)
  1268. fp.Material="SmoothPlastic"
  1269. fp:BreakJoints()
  1270. return fp
  1271. end
  1272.  
  1273. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1274. local mesh=it(Mesh)
  1275. mesh.Parent=part
  1276. if Mesh=="SpecialMesh" then
  1277. mesh.MeshType=meshtype
  1278. if meshid~="nil" then
  1279. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1280. end
  1281. end
  1282. mesh.Offset=offset
  1283. mesh.Scale=scale
  1284. return mesh
  1285. end
  1286.  
  1287. function weld(parent,part0,part1,c0)
  1288. local weld=it("Weld")
  1289. weld.Parent=parent
  1290. weld.Part0=part0
  1291. weld.Part1=part1
  1292. weld.C0=c0
  1293. return weld
  1294. end
  1295.  
  1296. local Color1=Torso.BrickColor
  1297.  
  1298. local bodvel=Instance.new("BodyVelocity")
  1299. local bg=Instance.new("BodyGyro")
  1300.  
  1301. function swait(num)
  1302. if num==0 or num==nil then
  1303. game:service'RunService'.Stepped:wait(0)
  1304. else
  1305. for i=0,num do
  1306. game:service'RunService'.Stepped:wait(0)
  1307. end
  1308. end
  1309. end
  1310.  
  1311. -------- RAINBOW LEAVE IT TO ME
  1312. local r = 255
  1313. local g = 0
  1314. local b = 0
  1315. coroutine.resume(coroutine.create(function()
  1316. while wait() do
  1317. for i = 0, 254/5 do
  1318. swait()
  1319. g = g + 5
  1320. end
  1321. for i = 0, 254/5 do
  1322. swait()
  1323. r = r - 5
  1324. end
  1325. for i = 0, 254/5 do
  1326. swait()
  1327. b = b + 5
  1328. end
  1329. for i = 0, 254/5 do
  1330. swait()
  1331. g = g - 5
  1332. end
  1333. for i = 0, 254/5 do
  1334. swait()
  1335. r = r + 5
  1336. end
  1337. for i = 0, 254/5 do
  1338. swait()
  1339. b = b - 5
  1340. end
  1341. end
  1342. end))
  1343.  
  1344.  
  1345. so = function(id,par,vol,pit)
  1346. coroutine.resume(coroutine.create(function()
  1347. local sou = Instance.new("Sound",par or workspace)
  1348. sou.Volume=vol
  1349. sou.Pitch=pit or 1
  1350. sou.SoundId=id
  1351. swait()
  1352. sou:play()
  1353. game:GetService("Debris"):AddItem(sou,6)
  1354. end))
  1355. end
  1356.  
  1357. function clerp(a,b,t)
  1358. local qa = {QuaternionFromCFrame(a)}
  1359. local qb = {QuaternionFromCFrame(b)}
  1360. local ax, ay, az = a.x, a.y, a.z
  1361. local bx, by, bz = b.x, b.y, b.z
  1362. local _t = 1-t
  1363. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1364. end
  1365.  
  1366. function QuaternionFromCFrame(cf)
  1367. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1368. local trace = m00 + m11 + m22
  1369. if trace > 0 then
  1370. local s = math.sqrt(1 + trace)
  1371. local recip = 0.5/s
  1372. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1373. else
  1374. local i = 0
  1375. if m11 > m00 then
  1376. i = 1
  1377. end
  1378. if m22 > (i == 0 and m00 or m11) then
  1379. i = 2
  1380. end
  1381. if i == 0 then
  1382. local s = math.sqrt(m00-m11-m22+1)
  1383. local recip = 0.5/s
  1384. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1385. elseif i == 1 then
  1386. local s = math.sqrt(m11-m22-m00+1)
  1387. local recip = 0.5/s
  1388. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1389. elseif i == 2 then
  1390. local s = math.sqrt(m22-m00-m11+1)
  1391. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1392. end
  1393. end
  1394. end
  1395.  
  1396. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1397. local xs, ys, zs = x + x, y + y, z + z
  1398. local wx, wy, wz = w*xs, w*ys, w*zs
  1399. local xx = x*xs
  1400. local xy = x*ys
  1401. local xz = x*zs
  1402. local yy = y*ys
  1403. local yz = y*zs
  1404. local zz = z*zs
  1405. 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))
  1406. end
  1407.  
  1408. function QuaternionSlerp(a, b, t)
  1409. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1410. local startInterp, finishInterp;
  1411. if cosTheta >= 0.0001 then
  1412. if (1 - cosTheta) > 0.0001 then
  1413. local theta = math.acos(cosTheta)
  1414. local invSinTheta = 1/math.sin(theta)
  1415. startInterp = math.sin((1-t)*theta)*invSinTheta
  1416. finishInterp = math.sin(t*theta)*invSinTheta
  1417. else
  1418. startInterp = 1-t
  1419. finishInterp = t
  1420. end
  1421. else
  1422. if (1+cosTheta) > 0.0001 then
  1423. local theta = math.acos(-cosTheta)
  1424. local invSinTheta = 1/math.sin(theta)
  1425. startInterp = math.sin((t-1)*theta)*invSinTheta
  1426. finishInterp = math.sin(t*theta)*invSinTheta
  1427. else
  1428. startInterp = t-1
  1429. finishInterp = t
  1430. end
  1431. end
  1432. 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
  1433. end
  1434.  
  1435. local function CFrameFromTopBack(at, top, back)
  1436. local right = top:Cross(back)
  1437. return CFrame.new(at.x, at.y, at.z,
  1438. right.x, top.x, back.x,
  1439. right.y, top.y, back.y,
  1440. right.z, top.z, back.z)
  1441. end
  1442.  
  1443. function Triangle(a, b, c)
  1444. local edg1 = (c-a):Dot((b-a).unit)
  1445. local edg2 = (a-b):Dot((c-b).unit)
  1446. local edg3 = (b-c):Dot((a-c).unit)
  1447. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1448. a, b, c = a, b, c
  1449. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1450. a, b, c = b, c, a
  1451. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1452. a, b, c = c, a, b
  1453. else
  1454. assert(false, "unreachable")
  1455. end
  1456.  
  1457. local len1 = (c-a):Dot((b-a).unit)
  1458. local len2 = (b-a).magnitude - len1
  1459. local width = (a + (b-a).unit*len1 - c).magnitude
  1460.  
  1461. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1462.  
  1463. local list = {}
  1464.  
  1465. if len1 > 0.01 then
  1466. local w1 = Instance.new('WedgePart', m)
  1467. game:GetService("Debris"):AddItem(w1,5)
  1468. w1.Material = "SmoothPlastic"
  1469. w1.FormFactor = 'Custom'
  1470. w1.BrickColor = BrickColor.new("Dark red")
  1471. w1.Transparency = 0
  1472. w1.Reflectance = 0
  1473. w1.Material = "SmoothPlastic"
  1474. w1.CanCollide = false
  1475. local l1 = Instance.new("PointLight",w1)
  1476. l1.Color = Color3.new(170,0,0)
  1477. NoOutline(w1)
  1478. local sz = Vector3.new(0.2, width, len1)
  1479. w1.Size = sz
  1480. local sp = Instance.new("SpecialMesh",w1)
  1481. sp.MeshType = "Wedge"
  1482. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1483. w1:BreakJoints()
  1484. w1.Anchored = true
  1485. w1.Parent = workspace
  1486. w1.Transparency = 0.7
  1487. table.insert(Effects,{w1,"Disappear",.01})
  1488. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1489. table.insert(list,w1)
  1490. end
  1491.  
  1492. if len2 > 0.01 then
  1493. local w2 = Instance.new('WedgePart', m)
  1494. game:GetService("Debris"):AddItem(w2,5)
  1495. w2.Material = "SmoothPlastic"
  1496. w2.FormFactor = 'Custom'
  1497. w2.BrickColor = BrickColor.new("Dark red")
  1498. w2.Transparency = 0
  1499. w2.Reflectance = 0
  1500. w2.Material = "SmoothPlastic"
  1501. w2.CanCollide = false
  1502. local l2 = Instance.new("PointLight",w2)
  1503. l2.Color = Color3.new(170,0,0)
  1504. NoOutline(w2)
  1505. local sz = Vector3.new(0.2, width, len2)
  1506. w2.Size = sz
  1507. local sp = Instance.new("SpecialMesh",w2)
  1508. sp.MeshType = "Wedge"
  1509. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1510. w2:BreakJoints()
  1511. w2.Anchored = true
  1512. w2.Parent = workspace
  1513. w2.Transparency = 0.7
  1514. table.insert(Effects,{w2,"Disappear",.01})
  1515. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1516. table.insert(list,w2)
  1517. end
  1518. return unpack(list)
  1519. end
  1520.  
  1521.  
  1522. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1523. if hit.Parent == nil then
  1524. return
  1525. end
  1526. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1527. for _, v in pairs(hit.Parent:children()) do
  1528. if v:IsA("Humanoid") then
  1529. h = v
  1530. end
  1531. end
  1532. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1533. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1534. return
  1535. end
  1536. local c = Create("ObjectValue")({
  1537. Name = "creator",
  1538. Value = game:service("Players").LocalPlayer,
  1539. Parent = h
  1540. })
  1541. game:GetService("Debris"):AddItem(c, 0.5)
  1542. if HitSound ~= nil and HitPitch ~= nil then
  1543. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1544. end
  1545. local Damage = math.random(minim, maxim)
  1546. local blocked = false
  1547. local block = hit.Parent:findFirstChild("Block")
  1548. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1549. blocked = true
  1550. block.Value = block.Value - 1
  1551. print(block.Value)
  1552. end
  1553. if blocked == false then
  1554. HitHealth = h.Health
  1555. h.Health = h.Health - Damage
  1556. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1557. print("gained kill")
  1558. end
  1559. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1560. else
  1561. h.Health = h.Health - Damage / 2
  1562. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1563. end
  1564. if Type == "Knockdown" then
  1565. local hum = hit.Parent.Humanoid
  1566. hum.PlatformStand = true
  1567. coroutine.resume(coroutine.create(function(HHumanoid)
  1568. swait(1)
  1569. HHumanoid.PlatformStand = false
  1570. end), hum)
  1571. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1572. local bodvol = Create("BodyVelocity")({
  1573. velocity = angle * knockback,
  1574. P = 5000,
  1575. maxForce = Vector3.new(8000, 8000, 8000),
  1576. Parent = hit
  1577. })
  1578. local rl = Create("BodyAngularVelocity")({
  1579. P = 3000,
  1580. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1581. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1582. Parent = hit
  1583. })
  1584. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1585. game:GetService("Debris"):AddItem(rl, 0.5)
  1586. elseif Type == "Normal" then
  1587. local vp = Create("BodyVelocity")({
  1588. P = 500,
  1589. maxForce = Vector3.new(math.huge, 0, math.huge),
  1590. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1591. })
  1592. if knockback > 0 then
  1593. vp.Parent = hit.Parent.Head
  1594. end
  1595. game:GetService("Debris"):AddItem(vp, 0.5)
  1596. elseif Type == "Up" then
  1597. local bodyVelocity = Create("BodyVelocity")({
  1598. velocity = Vector3.new(0, 20, 0),
  1599. P = 5000,
  1600. maxForce = Vector3.new(8000, 8000, 8000),
  1601. Parent = hit
  1602. })
  1603. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1604. local bodyVelocity = Create("BodyVelocity")({
  1605. velocity = Vector3.new(0, 20, 0),
  1606. P = 5000,
  1607. maxForce = Vector3.new(8000, 8000, 8000),
  1608. Parent = hit
  1609. })
  1610. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1611. elseif Type == "Leech" then
  1612. local hum = hit.Parent.Humanoid
  1613. if hum ~= nil then
  1614. for i = 0, 2 do
  1615. 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)
  1616. end
  1617. Humanoid.Health = Humanoid.Health + 10
  1618. end
  1619. elseif Type == "UpKnock" then
  1620. local hum = hit.Parent.Humanoid
  1621. hum.PlatformStand = true
  1622. if hum ~= nil then
  1623. hitr = true
  1624. end
  1625. coroutine.resume(coroutine.create(function(HHumanoid)
  1626. swait(5)
  1627. HHumanoid.PlatformStand = false
  1628. hitr = false
  1629. end), hum)
  1630. local bodyVelocity = Create("BodyVelocity")({
  1631. velocity = Vector3.new(0, 20, 0),
  1632. P = 5000,
  1633. maxForce = Vector3.new(8000, 8000, 8000),
  1634. Parent = hit
  1635. })
  1636. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1637. local bodyVelocity = Create("BodyVelocity")({
  1638. velocity = Vector3.new(0, 20, 0),
  1639. P = 5000,
  1640. maxForce = Vector3.new(8000, 8000, 8000),
  1641. Parent = hit
  1642. })
  1643. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1644. elseif Type == "Snare" then
  1645. local bp = Create("BodyPosition")({
  1646. P = 2000,
  1647. D = 100,
  1648. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1649. position = hit.Parent.Torso.Position,
  1650. Parent = hit.Parent.Torso
  1651. })
  1652. game:GetService("Debris"):AddItem(bp, 1)
  1653. elseif Type == "Slashnare" then
  1654. 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)
  1655. for i = 1, math.random(4, 5) do
  1656. 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)
  1657. end
  1658. local bp = Create("BodyPosition")({
  1659. P = 2000,
  1660. D = 100,
  1661. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1662. position = hit.Parent.Torso.Position,
  1663. Parent = hit.Parent.Torso
  1664. })
  1665. game:GetService("Debris"):AddItem(bp, 1)
  1666. elseif Type == "Spike" then
  1667. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1668. local bp = Create("BodyPosition")({
  1669. P = 2000,
  1670. D = 100,
  1671. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1672. position = hit.Parent.Torso.Position,
  1673. Parent = hit.Parent.Torso
  1674. })
  1675. game:GetService("Debris"):AddItem(bp, 1)
  1676. elseif Type == "Freeze" then
  1677. local BodPos = Create("BodyPosition")({
  1678. P = 50000,
  1679. D = 1000,
  1680. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1681. position = hit.Parent.Torso.Position,
  1682. Parent = hit.Parent.Torso
  1683. })
  1684. local BodGy = Create("BodyGyro")({
  1685. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1686. P = 20000,
  1687. Parent = hit.Parent.Torso,
  1688. cframe = hit.Parent.Torso.CFrame
  1689. })
  1690. hit.Parent.Torso.Anchored = true
  1691. coroutine.resume(coroutine.create(function(Part)
  1692. swait(1.5)
  1693. Part.Anchored = false
  1694. end), hit.Parent.Torso)
  1695. game:GetService("Debris"):AddItem(BodPos, 3)
  1696. game:GetService("Debris"):AddItem(BodGy, 3)
  1697. end
  1698. local debounce = Create("BoolValue")({
  1699. Name = "DebounceHit",
  1700. Parent = hit.Parent,
  1701. Value = true
  1702. })
  1703. game:GetService("Debris"):AddItem(debounce, Delay)
  1704. c = Instance.new("ObjectValue")
  1705. c.Name = "creator"
  1706. c.Value = Player
  1707. c.Parent = h
  1708. game:GetService("Debris"):AddItem(c, 0.5)
  1709. end
  1710. end
  1711. function ShowDamage(Pos, Text, Time, Color)
  1712. local Rate = 0.03333333333333333
  1713. local Pos = Pos or Vector3.new(0, 0, 0)
  1714. local Text = Text or ""
  1715. local Time = Time or 2
  1716. local Color = Color or Color3.new(1, 0, 1)
  1717. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1718. EffectPart.Anchored = true
  1719. local BillboardGui = Create("BillboardGui")({
  1720. Size = UDim2.new(3, 0, 3, 0),
  1721. Adornee = EffectPart,
  1722. Parent = EffectPart
  1723. })
  1724. local TextLabel = Create("TextLabel")({
  1725. BackgroundTransparency = 1,
  1726. Size = UDim2.new(1, 0, 1, 0),
  1727. Text = Text,
  1728. TextColor3 = Color,
  1729. TextScaled = true,
  1730. Font = Enum.Font.ArialBold,
  1731. Parent = BillboardGui
  1732. })
  1733. game.Debris:AddItem(EffectPart, Time + 0.1)
  1734. EffectPart.Parent = game:GetService("Workspace")
  1735. delay(0, function()
  1736. local Frames = Time / Rate
  1737. for Frame = 1, Frames do
  1738. wait(Rate)
  1739. local Percent = Frame / Frames
  1740. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1741. TextLabel.TextTransparency = Percent
  1742. end
  1743. if EffectPart and EffectPart.Parent then
  1744. EffectPart:Destroy()
  1745. end
  1746. end)
  1747. end
  1748. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1749. for _, c in pairs(workspace:children()) do
  1750. local hum = c:findFirstChildOfClass("Humanoid")
  1751. if hum ~= nil then
  1752. local head = c:findFirstChild("Head")
  1753. if head ~= nil then
  1754. local targ = head.Position - Part.Position
  1755. local mag = targ.magnitude
  1756. if magni >= mag and c.Name ~= Player.Name then
  1757. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1758. end
  1759. end
  1760. end
  1761. end
  1762. end
  1763.  
  1764. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1765. for _, c in pairs(workspace:children()) do
  1766. local hum = c:findFirstChild("Humanoid")
  1767. if hum ~= nil then
  1768. local head = c:findFirstChild("Torso")
  1769. if head ~= nil then
  1770. local targ = head.Position - Part.Position
  1771. local mag = targ.magnitude
  1772. if magni >= mag and c.Name ~= Player.Name then
  1773. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1774. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1775. end
  1776. end
  1777. end
  1778. end
  1779. end
  1780.  
  1781. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1782. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1783. end
  1784.  
  1785. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1786. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1787. prt.Anchored=true
  1788. prt.CFrame=cframe
  1789. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1790. --http://www.roblox.com/asset/?id=4770560
  1791. game:GetService("Debris"):AddItem(prt,2)
  1792. CF=prt.CFrame
  1793. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1794. for i=0,1,0.2 do
  1795. wait()
  1796. Part.CFrame=CF*cf(0,0,-0.4)
  1797. end
  1798. for i=0,1,delay do
  1799. wait()
  1800. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1801. Mesh.Scale=Mesh.Scale
  1802. end
  1803. for i=0,1,0.1 do
  1804. wait()
  1805. Part.Transparency=i
  1806. end
  1807. Part.Parent=nil
  1808. end),prt,msh,CF)
  1809. end
  1810.  
  1811. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1812. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1813. prt.Anchored=true
  1814. prt.Material = "Neon"
  1815. prt.CFrame=cframe
  1816. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1817. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1818. game:GetService("Debris"):AddItem(prt,5)
  1819. coroutine.resume(coroutine.create(function(Part,Mesh)
  1820. for i=0,1,delay do
  1821. swait()
  1822. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1823. Part.Transparency=i
  1824. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1825. end
  1826. Part.Parent=nil
  1827. end),prt,msh)
  1828. end
  1829.  
  1830. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1831. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1832. prt.Anchored=true
  1833. prt.Material = "Neon"
  1834. prt.CFrame=cframe
  1835. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1836. game:GetService("Debris"):AddItem(prt,5)
  1837. coroutine.resume(coroutine.create(function(Part,Mesh)
  1838. local rtype = rottype
  1839. for i=0,1,delay do
  1840. swait()
  1841. if rtype == 1 then
  1842. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1843. elseif rtype == 2 then
  1844. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1845. end
  1846. Part.Transparency=i
  1847. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1848. end
  1849. Part.Parent=nil
  1850. end),prt,msh)
  1851. end
  1852.  
  1853. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1854. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1855. prt.Anchored=true
  1856. prt.CFrame=cframe
  1857. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1858. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1859. game:GetService("Debris"):AddItem(prt,5)
  1860. coroutine.resume(coroutine.create(function(Part,Mesh)
  1861. for i=0,1,delay do
  1862. wait()
  1863. Part.Transparency=i
  1864. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1865. end
  1866. Part.Parent=nil
  1867. end),prt,msh)
  1868. end
  1869.  
  1870. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1871. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1872. prt.Anchored=true
  1873. prt.Material = "Neon"
  1874. prt.CFrame=cframe
  1875. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1876. game:GetService("Debris"):AddItem(prt,5)
  1877. coroutine.resume(coroutine.create(function(Part,Mesh)
  1878. local rtype = rottype
  1879. for i=0,1,delay do
  1880. swait()
  1881. if rtype == 1 then
  1882. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1883. elseif rtype == 2 then
  1884. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1885. end
  1886. Part.Transparency=i
  1887. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1888. end
  1889. Part.Parent=nil
  1890. end),prt,msh)
  1891. end
  1892.  
  1893. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1894. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1895. prt.Anchored=true
  1896. prt.Material = "Neon"
  1897. prt.CFrame=cframe
  1898. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1899. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1900. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1901. game:GetService("Debris"):AddItem(prt,5)
  1902. coroutine.resume(coroutine.create(function(Part,Mesh)
  1903. local rtype = rottype
  1904. for i=0,1,delay do
  1905. swait()
  1906. if rtype == 1 then
  1907. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1908. elseif rtype == 2 then
  1909. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1910. end
  1911. dec.Transparency=i
  1912. dec2.Transparency=i
  1913. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1914. end
  1915. Part.Parent=nil
  1916. end),prt,msh)
  1917. end
  1918.  
  1919. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1920. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1921. prt.Anchored=true
  1922. prt.Material = "Neon"
  1923. prt.CFrame=cframe
  1924. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1925. game:GetService("Debris"):AddItem(prt,5)
  1926. coroutine.resume(coroutine.create(function(Part,Mesh)
  1927. local rtype = rottype
  1928. for i=0,1,delay do
  1929. swait()
  1930. if rtype == 1 then
  1931. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1932. elseif rtype == 2 then
  1933. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1934. end
  1935. prt.Transparency=i
  1936. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1937. end
  1938. Part.Parent=nil
  1939. end),prt,msh)
  1940. end
  1941.  
  1942. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1943. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1944. prt.Anchored=true
  1945. prt.Material = "Neon"
  1946. prt.CFrame=cframe
  1947. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1948. game:GetService("Debris"):AddItem(prt,5)
  1949. coroutine.resume(coroutine.create(function(Part,Mesh)
  1950. local rtype = rottype
  1951. for i=0,1,delay do
  1952. swait()
  1953. if rtype == 1 then
  1954. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1955. elseif rtype == 2 then
  1956. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1957. end
  1958. prt.Transparency=i
  1959. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1960. end
  1961. Part.Parent=nil
  1962. end),prt,msh)
  1963. end
  1964.  
  1965. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1966. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1967. prt.Anchored=true
  1968. prt.Material = "Neon"
  1969. prt.CFrame=cframe
  1970. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1971. game:GetService("Debris"):AddItem(prt,5)
  1972. coroutine.resume(coroutine.create(function(Part,Mesh)
  1973. local rtype = rottype
  1974. for i=0,1,delay do
  1975. swait()
  1976. if rtype == 1 then
  1977. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1978. elseif rtype == 2 then
  1979. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1980. end
  1981. prt.Transparency=i
  1982. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1983. end
  1984. Part.Parent=nil
  1985. end),prt,msh)
  1986. end
  1987.  
  1988. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1989. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1990. prt.Anchored=true
  1991. prt.Material = "Neon"
  1992. prt.CFrame=cframe
  1993. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1994. game:GetService("Debris"):AddItem(prt,5)
  1995. coroutine.resume(coroutine.create(function(Part,Mesh)
  1996. local rtype = rottype
  1997. for i=0,1,delay do
  1998. swait()
  1999. if rtype == 1 then
  2000. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2001. elseif rtype == 2 then
  2002. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2003. end
  2004. prt.Transparency=i
  2005. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2006. end
  2007. Part.Parent=nil
  2008. end),prt,msh)
  2009. end
  2010.  
  2011. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2012. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2013. prt.Anchored=false
  2014. prt.CFrame=cframe
  2015. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2016. local wld=weld(prt,prt,Parent,cframe)
  2017. game:GetService("Debris"):AddItem(prt,5)
  2018. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2019. for i=0,1,delay do
  2020. wait()
  2021. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2022. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2023. Part.Transparency=i
  2024. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2025. end
  2026. Part.Parent=nil
  2027. end),prt,msh,wld)
  2028. end
  2029.  
  2030. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2031. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2032. prt.Anchored=false
  2033. prt.CFrame=cframe
  2034. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2035. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2036. game:GetService("Debris"):AddItem(prt,5)
  2037. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2038. for i=0,1,delay do
  2039. wait()
  2040. Weld.C0=euler(i*20,0,0)
  2041. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2042. Part.Transparency=i
  2043. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2044. end
  2045. Part.Parent=nil
  2046. end),prt,msh,wld)
  2047. end
  2048.  
  2049. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2050. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2051. prt.Anchored=true
  2052. prt.CFrame=cframe
  2053. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2054. game:GetService("Debris"):AddItem(prt,2)
  2055. coroutine.resume(coroutine.create(function(Part,Mesh)
  2056. for i=0,1,delay do
  2057. wait()
  2058. Part.CFrame=Part.CFrame
  2059. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2060. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2061. prt2.Anchored=true
  2062. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2063. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2064. game:GetService("Debris"):AddItem(prt2,2)
  2065. coroutine.resume(coroutine.create(function(Part,Mesh)
  2066. for i=0,1,0.1 do
  2067. wait()
  2068. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2069. end
  2070. Part.Parent=nil
  2071. end),prt2,msh2)
  2072. end
  2073. for i=0,1,delay*2 do
  2074. wait()
  2075. Part.CFrame=Part.CFrame
  2076. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2077. end
  2078. Part.Parent=nil
  2079. end),prt,msh)
  2080. end
  2081.  
  2082. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2083. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2084. prt.Anchored=true
  2085. prt.CFrame=cframe
  2086. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2087. game:GetService("Debris"):AddItem(prt,2)
  2088. coroutine.resume(coroutine.create(function(Part,Mesh)
  2089. for i=0,1,delay do
  2090. wait()
  2091. Part.CFrame=Part.CFrame
  2092. Part.Transparency=i
  2093. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2094. end
  2095. Part.Parent=nil
  2096. end),prt,msh)
  2097. end
  2098.  
  2099. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2100. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2101. prt.Anchored=true
  2102. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2103. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2104. game:GetService("Debris"):AddItem(prt,2)
  2105. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2106. CF=Part.CFrame
  2107. Numbb=0
  2108. randnumb=math.random()/10
  2109. rand1=math.random()/10
  2110. for i=0,1,rand1 do
  2111. wait()
  2112. CF=CF*cf(0,math.random()/2,0)
  2113. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2114. Part.CFrame=CF*euler(Numbb,0,0)
  2115. Part.Transparency=i
  2116. Numbb=Numbb+randnumb
  2117. end
  2118. Part.Parent=nil
  2119. end),prt,CF,Numbb,randnumb)
  2120. end
  2121.  
  2122. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2123. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2124. prt.Anchored=true
  2125. prt.CFrame=cframe
  2126. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2127. game:GetService("Debris"):AddItem(prt,5)
  2128. coroutine.resume(coroutine.create(function(Part,Mesh)
  2129. for i=0,1,delay do
  2130. wait()
  2131. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2132. Part.Transparency=i
  2133. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2134. end
  2135. Part.Parent=nil
  2136. end),prt,msh)
  2137. end
  2138.  
  2139. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2140. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2141. prt.Anchored=true
  2142. prt.CFrame=cframe
  2143. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2144. game:GetService("Debris"):AddItem(prt,2)
  2145. coroutine.resume(coroutine.create(function(Part,Mesh)
  2146. for i=0,1,delay do
  2147. wait()
  2148. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2149. Part.Transparency=i
  2150. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2151. end
  2152. Part.Parent=nil
  2153. end),prt,msh)
  2154. end
  2155.  
  2156. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2157. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2158. prt.Anchored=true
  2159. prt.CFrame=cframe*cf(x,y,z)
  2160. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2161. game:GetService("Debris"):AddItem(prt,5)
  2162. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2163. local num=math.random()
  2164. local num2=math.random(-3,2)+math.random()
  2165. local numm=0
  2166. for i=0,1,delay*2 do
  2167. swait()
  2168. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2169. Part.Transparency=i
  2170. numm=numm+0.01
  2171. end
  2172. Part.Parent=nil
  2173. Mesh.Parent=nil
  2174. end),prt,msh,x,y,z)
  2175. end
  2176.  
  2177. function dmgstart(dmg,what)
  2178. hitcon = what.Touched:connect(function(hit)
  2179. local hum = hit.Parent:FindFirstChild("Humanoid")
  2180. if hum and not hum:IsDescendantOf(Character) then
  2181. hum:TakeDamage(dmg)
  2182. end
  2183. end)
  2184. end
  2185.  
  2186. function dmgstop()
  2187. hitcon:disconnect()
  2188. end
  2189.  
  2190. function Cloak()
  2191. Face.Parent=nil
  2192. cloaked=true
  2193. for _,v in pairs(Torso.Parent:children()) do
  2194. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2195. coroutine.resume(coroutine.create(function()
  2196. for i=0,1,0.2 do
  2197. wait()
  2198. v.Transparency=i
  2199. end
  2200. v.Transparency=1
  2201. end))
  2202. end
  2203. if v.className=="Hat" then
  2204. hatp=v.Handle
  2205. coroutine.resume(coroutine.create(function(derp)
  2206. for i=0,1,0.2 do
  2207. wait()
  2208. derp.Transparency=i
  2209. end
  2210. derp.Transparency=1
  2211. end),hatp)
  2212. end
  2213. end
  2214. for _,v in pairs(m:children()) do
  2215. if v.className=="Part" then
  2216. coroutine.resume(coroutine.create(function()
  2217. for i=0,1,0.2 do
  2218. wait()
  2219. v.Transparency=i
  2220. end
  2221. v.Transparency=1
  2222. end))
  2223. end
  2224. end
  2225. end
  2226.  
  2227. function UnCloak()
  2228. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2229. Face.Parent=Head
  2230. cloaked=false
  2231. for _,v in pairs(Torso.Parent:children()) do
  2232. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2233. coroutine.resume(coroutine.create(function()
  2234. for i=0,1,0.1 do
  2235. wait()
  2236. v.Transparency=v.Transparency-0.1
  2237. end
  2238. v.Transparency=0
  2239. end))
  2240. end
  2241. if v.className=="Hat" then
  2242. hatp=v.Handle
  2243. coroutine.resume(coroutine.create(function(derp)
  2244. for i=0,1,0.1 do
  2245. wait()
  2246. derp.Transparency=derp.Transparency-0.1
  2247. end
  2248. derp.Transparency=0
  2249. end),hatp)
  2250. end
  2251. end
  2252. for _,v in pairs(m:children()) do
  2253. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2254. coroutine.resume(coroutine.create(function()
  2255. for i=0,1,0.1 do
  2256. wait()
  2257. v.Transparency=v.Transparency-0.1
  2258. end
  2259. v.Transparency=0
  2260. end))
  2261. v.Transparency=0
  2262. end
  2263. end
  2264. end
  2265.  
  2266. local origcolor = BrickColor.new("Pastel light blue")
  2267. ---- This section of explosions.
  2268. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2269. local expart = Instance.new("Part",char)
  2270. local expart2 = Instance.new("Part",char)
  2271. local rin = Instance.new("Part",char)
  2272. local rin2 = Instance.new("Part",char)
  2273. local partMesh = Instance.new("SpecialMesh",expart)
  2274. partMesh.MeshType = "Sphere"
  2275. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2276. partMesh2.MeshType = "Sphere"
  2277. local partMesh3 = Instance.new("SpecialMesh",rin)
  2278. partMesh3.MeshType = "Brick"
  2279. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2280. partMesh4.MeshType = "Brick"
  2281. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2282. partMesh.Scale = vt(rad,rad,rad)
  2283. expart.Size = vt(1,1,1)
  2284. expart.Transparency = 0
  2285. expart.Anchored = true
  2286. expart.Material = "Neon"
  2287. expart.BrickColor = bc("White")
  2288. expart.CFrame = par.CFrame
  2289. partMesh2.Scale = vt(rad,rad,rad)
  2290. expart2.Size = vt(1.15,1.15,1.15)
  2291. expart2.Transparency = 0.5
  2292. expart2.Anchored = true
  2293. expart2.Material = "Neon"
  2294. expart2.BrickColor = par.BrickColor
  2295. expart2.CFrame = par.CFrame
  2296. rin.Size = vt(1.15,1.15,1.15)
  2297. rin.Transparency = 1
  2298. rin.Anchored = true
  2299. rin.Material = "Neon"
  2300. rin.BrickColor = par.BrickColor
  2301. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2302. rin2.Size = vt(1.15,1.15,1.15)
  2303. rin2.Transparency = 1
  2304. rin2.Anchored = true
  2305. rin2.Material = "Neon"
  2306. rin2.BrickColor = par.BrickColor
  2307. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2308. partMesh3.Scale = vt(0,1,0)
  2309. partMesh4.Scale = vt(0,1,0)
  2310. local dec2 = Instance.new("Decal", rin)
  2311. dec2.Face = "Top"
  2312. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2313. dec2.Parent = rin
  2314. local dec2b = dec2:Clone()
  2315. dec2b.Face = "Bottom"
  2316. dec2b.Parent = rin
  2317.  
  2318. local dec2a = Instance.new("Decal", rin2)
  2319. dec2a.Face = "Top"
  2320. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2321. dec2a.Parent = rin2
  2322. local dec2ab = dec2a:Clone()
  2323. dec2ab.Face = "Bottom"
  2324. dec2ab.Parent = rin2
  2325. expart.CanCollide = false
  2326. expart2.CanCollide = false
  2327. rin.CanCollide = false
  2328. rin2.CanCollide = false
  2329. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2330. local value = 1*rad/6.5
  2331. for i = 0, 199 do
  2332. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2333. expart.CFrame = expart.CFrame
  2334. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2335. expart2.CFrame = expart.CFrame
  2336. value = value - 0.035*rad/30
  2337. if value < 7.5 then
  2338. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2339. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2340. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2341. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2342. end
  2343. if value < 0 then
  2344. dec2.Transparency = dec2.Transparency + 0.025
  2345. dec2a.Transparency = dec2a.Transparency + 0.025
  2346. dec2b.Transparency = dec2b.Transparency + 0.025
  2347. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2348. expart.Transparency = expart.Transparency + 0.025
  2349. expart2.Transparency = expart2.Transparency + 0.025
  2350. rin.Transparency = rin.Transparency + 0.025
  2351. rin2.Transparency = rin2.Transparency + 0.025
  2352. end
  2353. swait()
  2354. end
  2355. game:GetService("Debris"):AddItem(expart, 1)
  2356. game:GetService("Debris"):AddItem(expart2, 1)
  2357. game:GetService("Debris"):AddItem(rin, 1)
  2358. game:GetService("Debris"):AddItem(rin2, 1)
  2359. end
  2360.  
  2361. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2362. local expart = Instance.new("Part",char)
  2363. local expart2 = Instance.new("Part",char)
  2364. local partMesh = Instance.new("SpecialMesh",expart)
  2365. partMesh.MeshType = "Sphere"
  2366. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2367. partMesh2.MeshType = "Sphere"
  2368. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2369. partMesh.Scale = vt(rad,rad,rad)
  2370. expart.Size = vt(1,1,1)
  2371. expart.Transparency = 0
  2372. expart.Anchored = true
  2373. expart.Material = "Neon"
  2374. expart.BrickColor = bc("White")
  2375. expart.CFrame = par.CFrame
  2376. partMesh2.Scale = vt(rad,rad,rad)
  2377. expart2.Size = vt(1.15,1.15,1.15)
  2378. expart2.Transparency = 0.5
  2379. expart2.Anchored = true
  2380. expart2.Material = "Neon"
  2381. expart2.BrickColor = par.BrickColor
  2382. expart2.CFrame = par.CFrame
  2383. expart.CanCollide = false
  2384. expart2.CanCollide = false
  2385. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2386. local value = 1*rad/6.5
  2387. for i = 0, 75 do
  2388. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2389. expart.CFrame = expart.CFrame
  2390. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2391. expart2.CFrame = expart.CFrame
  2392. value = value - 0.035*rad/5
  2393. if value < 0 then
  2394. value = 0
  2395. expart.Transparency = expart.Transparency + 0.05
  2396. expart2.Transparency = expart2.Transparency + 0.05
  2397. end
  2398. swait()
  2399. end
  2400. game:GetService("Debris"):AddItem(expart, 1)
  2401. game:GetService("Debris"):AddItem(expart2, 1)
  2402. end
  2403.  
  2404. function AreaDanger(rad,par,mindam,maxdam)
  2405. local expart = Instance.new("Part",char)
  2406. local partMesh = Instance.new("SpecialMesh",expart)
  2407. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2408. partMesh.MeshType = "Sphere"
  2409. partMesh.Scale = vt(rad,rad,rad)
  2410. expart.Size = vt(1,1,1)
  2411. expart.Transparency = 0.5
  2412. expart.Anchored = true
  2413. expart.Material = "Neon"
  2414. expart.CanCollide = false
  2415. expart.BrickColor = par.BrickColor
  2416. expart.CFrame = par.CFrame
  2417. local value = 1*rad/5
  2418. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2419. for i = 0, 14 do
  2420. wait()
  2421. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2422. expart.CFrame = expart.CFrame
  2423. value = value - 0.035*rad
  2424. if value < 0 then
  2425. value = 0
  2426. end
  2427. end
  2428. wait(0.25)
  2429. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2430. wait(0.5)
  2431. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2432. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2433. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2434. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2435. for i = 0, 14 do
  2436. wait()
  2437. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2438. expart.CFrame = expart.CFrame
  2439. value = value - 0.035*rad/2
  2440. end
  2441. expart.Transparency = 1
  2442. game:GetService("Debris"):AddItem(expart, 5)
  2443. end
  2444.  
  2445. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2446. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2447. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2448. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2449. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2450. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2451. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2452. for i = 0, 24 do
  2453. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  2454. end
  2455. for i = 0, 24 do
  2456. local expart = Instance.new("Part",char)
  2457. expart.Transparency = 1
  2458. expart.Anchored = true
  2459. expart.CanCollide = false
  2460. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2461. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2462. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2463. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2464. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2465. for i = 0, 9 do
  2466. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  2467. end
  2468. game:GetService("Debris"):AddItem(expart, 2)
  2469. wait(0.1)
  2470. end
  2471. end
  2472.  
  2473. function EXterPlosion(par)
  2474. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2475. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2476. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2477. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2478. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2479. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2480. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2481. for i = 0, 24 do
  2482. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  2483. end
  2484. for i = 0, 24 do
  2485. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  2486. end
  2487. end
  2488. ----
  2489.  
  2490.  
  2491. function ring(type,pos,scale,value)
  2492. local type = type
  2493. local rng = Instance.new("Part", char)
  2494. rng.Anchored = true
  2495. rng.BrickColor = origcolor
  2496. rng.CanCollide = false
  2497. rng.FormFactor = 3
  2498. rng.Name = "Ring"
  2499. rng.Size = Vector3.new(1, 1, 1)
  2500. rng.Transparency = 0
  2501. rng.TopSurface = 0
  2502. rng.BottomSurface = 0
  2503. rng.CFrame = pos
  2504. local rngm = Instance.new("SpecialMesh", rng)
  2505. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2506. rngm.Scale = scale
  2507. local scaler2 = 1
  2508. if type == "Add" then
  2509. scaler2 = 1*value
  2510. elseif type == "Divide" then
  2511. scaler2 = 1/value
  2512. end
  2513. coroutine.resume(coroutine.create(function()
  2514. for i = 0,10,0.1 do
  2515. swait()
  2516. if type == "Add" then
  2517. scaler2 = scaler2 - 0.01*value
  2518. elseif type == "Divide" then
  2519. scaler2 = scaler2 - 0.01/value
  2520. end
  2521. rng.Transparency = rng.Transparency + 0.01
  2522. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2523. end
  2524. rng:Destroy()
  2525. end))
  2526. end
  2527.  
  2528.  
  2529. function wave(type,pos,scale,value)
  2530. local type = type
  2531. local rng = Instance.new("Part", char)
  2532. rng.Anchored = true
  2533. rng.BrickColor = origcolor
  2534. rng.CanCollide = false
  2535. rng.FormFactor = 3
  2536. rng.Name = "Ring"
  2537. rng.Size = Vector3.new(1, 1, 1)
  2538. rng.Transparency = 0
  2539. rng.TopSurface = 0
  2540. rng.BottomSurface = 0
  2541. rng.CFrame = pos
  2542. local rngm = Instance.new("SpecialMesh", rng)
  2543. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2544. rngm.Scale = scale
  2545. local scaler2 = 1
  2546. if type == "Add" then
  2547. scaler2 = 1*value
  2548. elseif type == "Divide" then
  2549. scaler2 = 1/value
  2550. end
  2551. coroutine.resume(coroutine.create(function()
  2552. for i = 0,10,0.1 do
  2553. swait()
  2554. if type == "Add" then
  2555. scaler2 = scaler2 - 0.01*value
  2556. elseif type == "Divide" then
  2557. scaler2 = scaler2 - 0.01/value
  2558. end
  2559. rng.Transparency = rng.Transparency + 0.01
  2560. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2561. end
  2562. rng:Destroy()
  2563. end))
  2564. end
  2565.  
  2566. function wind(type,pos,scale,value,speed)
  2567. local type = type
  2568. local rng = Instance.new("Part", char)
  2569. rng.Anchored = true
  2570. rng.BrickColor = origcolor
  2571. rng.CanCollide = false
  2572. rng.FormFactor = 3
  2573. rng.Name = "Ring"
  2574. rng.Size = Vector3.new(1, 1, 1)
  2575. rng.Transparency = 0
  2576. rng.TopSurface = 0
  2577. rng.BottomSurface = 0
  2578. rng.CFrame = pos
  2579. local rngm = Instance.new("SpecialMesh", rng)
  2580. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2581. rngm.Scale = scale
  2582. local scaler2 = 1
  2583. if type == "Add" then
  2584. scaler2 = 1*value
  2585. elseif type == "Divide" then
  2586. scaler2 = 1/value
  2587. end
  2588. coroutine.resume(coroutine.create(function()
  2589. for i = 0,10,0.1 do
  2590. swait()
  2591. if type == "Add" then
  2592. scaler2 = scaler2 - 0.01*value
  2593. elseif type == "Divide" then
  2594. scaler2 = scaler2 - 0.01/value
  2595. end
  2596. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2597. rng.Transparency = rng.Transparency + 0.01
  2598. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2599. end
  2600. rng:Destroy()
  2601. end))
  2602. end
  2603.  
  2604. function groundwind(type,pos,scale,value,speed)
  2605. local type = type
  2606. local rng = Instance.new("Part", char)
  2607. rng.Anchored = true
  2608. rng.BrickColor = origcolor
  2609. rng.CanCollide = false
  2610. rng.FormFactor = 3
  2611. rng.Name = "Ring"
  2612. rng.Size = Vector3.new(1, 1, 1)
  2613. rng.Transparency = 0
  2614. rng.TopSurface = 0
  2615. rng.BottomSurface = 0
  2616. rng.CFrame = pos
  2617. local rngm = Instance.new("SpecialMesh", rng)
  2618. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2619. rngm.Scale = scale
  2620. local scaler2 = 1
  2621. if type == "Add" then
  2622. scaler2 = 1*value
  2623. elseif type == "Divide" then
  2624. scaler2 = 1/value
  2625. end
  2626. coroutine.resume(coroutine.create(function()
  2627. for i = 0,10,0.1 do
  2628. swait()
  2629. if type == "Add" then
  2630. scaler2 = scaler2 - 0.01*value
  2631. elseif type == "Divide" then
  2632. scaler2 = scaler2 - 0.01/value
  2633. end
  2634. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2635. rng.Transparency = rng.Transparency + 0.01
  2636. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2637. end
  2638. rng:Destroy()
  2639. end))
  2640. end
  2641.  
  2642. function CameraManager()
  2643. if TwoD and not CamInterrupt then
  2644. if Humanoid.Health > 0 then
  2645. Camera.CameraSubject = Humanoid
  2646. Camera.CameraType = "Scriptable"
  2647. Humanoid.AutoRotate = false
  2648. if Booleans.GyroUse then
  2649. Directer.MaxTorque = Vec3(0, huge, 0)
  2650. else
  2651. Directer.MaxTorque = Vec3(0, 0, 0)
  2652. end
  2653. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2654. if Booleans.CamFollow then
  2655. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2656. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2657. else
  2658. CPart.Position = RootPart.Position
  2659. end
  2660. else
  2661. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2662. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2663. end
  2664. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2665. else
  2666. Camera.CameraSubject = Humanoid
  2667. Camera.CameraType = "Custom"
  2668. Controller.Disabled = false
  2669. end
  2670. end
  2671. end
  2672.  
  2673. function sphere(bonuspeed,type,pos,scale,value,color)
  2674. local type = type
  2675. local rng = Instance.new("Part", workspace)
  2676. rng.Anchored = true
  2677. rng.BrickColor = color
  2678. rng.CanCollide = false
  2679. rng.FormFactor = 3
  2680. rng.Name = "Ring"
  2681. rng.Material = "Neon"
  2682. rng.Size = Vector3.new(1, 1, 1)
  2683. rng.Transparency = 0
  2684. rng.TopSurface = 0
  2685. rng.BottomSurface = 0
  2686. rng.CFrame = pos
  2687. local rngm = Instance.new("SpecialMesh", rng)
  2688. rngm.MeshType = "Sphere"
  2689. rngm.Scale = scale
  2690. if rainbowmode == true then
  2691. rng.Color = Color3.new(r/255,g/255,b/255)
  2692. end
  2693. local scaler2 = 1
  2694. if type == "Add" then
  2695. scaler2 = 1*value
  2696. elseif type == "Divide" then
  2697. scaler2 = 1/value
  2698. end
  2699. coroutine.resume(coroutine.create(function()
  2700. for i = 0,10/bonuspeed,0.1 do
  2701. swait()
  2702. if rainbowmode == true then
  2703. rng.Color = Color3.new(r/255,g/255,b/255)
  2704. end
  2705. if type == "Add" then
  2706. scaler2 = scaler2 - 0.01*value/bonuspeed
  2707. elseif type == "Divide" then
  2708. scaler2 = scaler2 - 0.01/value*bonuspeed
  2709. end
  2710. if chaosmode == true then
  2711. rng.BrickColor = BrickColor.random()
  2712. end
  2713. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2714. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2715. end
  2716. rng:Destroy()
  2717. end))
  2718. end
  2719.  
  2720. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2721. local type = type
  2722. local rng = Instance.new("Part", char)
  2723. rng.Anchored = true
  2724. rng.BrickColor = color
  2725. rng.CanCollide = false
  2726. rng.FormFactor = 3
  2727. rng.Name = "Ring"
  2728. rng.Material = "Neon"
  2729. rng.Size = Vector3.new(1, 1, 1)
  2730. rng.Transparency = 0
  2731. rng.TopSurface = 0
  2732. rng.BottomSurface = 0
  2733. rng.CFrame = pos
  2734. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2735. local rngm = Instance.new("SpecialMesh", rng)
  2736. rngm.MeshType = "Brick"
  2737. rngm.Scale = vt(x1,y1,z1)
  2738. if rainbowmode == true then
  2739. rng.Color = Color3.new(r/255,g/255,b/255)
  2740. end
  2741. local scaler2 = 1
  2742. local speeder = FastSpeed/10
  2743. if type == "Add" then
  2744. scaler2 = 1*value
  2745. elseif type == "Divide" then
  2746. scaler2 = 1/value
  2747. end
  2748. coroutine.resume(coroutine.create(function()
  2749. for i = 0,10/bonuspeed,0.1 do
  2750. swait()
  2751. if rainbowmode == true then
  2752. rng.Color = Color3.new(r/255,g/255,b/255)
  2753. end
  2754. if type == "Add" then
  2755. scaler2 = scaler2 - 0.01*value/bonuspeed
  2756. elseif type == "Divide" then
  2757. scaler2 = scaler2 - 0.01/value*bonuspeed
  2758. end
  2759. if chaosmode == true then
  2760. rng.BrickColor = BrickColor.random()
  2761. end
  2762. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2763. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2764. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2765. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2766. end
  2767. rng:Destroy()
  2768. end))
  2769. end
  2770.  
  2771. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2772. local type = type
  2773. local rng = Instance.new("Part", char)
  2774. rng.Anchored = true
  2775. rng.BrickColor = color
  2776. rng.CanCollide = false
  2777. rng.FormFactor = 3
  2778. rng.Name = "Ring"
  2779. rng.Material = "Neon"
  2780. rng.Size = Vector3.new(1, 1, 1)
  2781. rng.Transparency = 0
  2782. rng.TopSurface = 0
  2783. rng.BottomSurface = 0
  2784. rng.CFrame = pos
  2785. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2786. local rngm = Instance.new("SpecialMesh", rng)
  2787. rngm.MeshType = "Brick"
  2788. rngm.Scale = vt(x1,y1,z1)
  2789. if rainbowmode == true then
  2790. rng.Color = Color3.new(r/255,g/255,b/255)
  2791. end
  2792. local scaler2 = 0
  2793. local speeder = FastSpeed/10
  2794. if type == "Add" then
  2795. scaler2 = 1*value
  2796. elseif type == "Divide" then
  2797. scaler2 = 1/value
  2798. end
  2799. coroutine.resume(coroutine.create(function()
  2800. for i = 0,10/bonuspeed,0.1 do
  2801. swait()
  2802. if rainbowmode == true then
  2803. rng.Color = Color3.new(r/255,g/255,b/255)
  2804. end
  2805. if type == "Add" then
  2806. scaler2 = scaler2 - 0.01*value/bonuspeed
  2807. elseif type == "Divide" then
  2808. scaler2 = scaler2 - 0.01/value*bonuspeed
  2809. end
  2810. if chaosmode == true then
  2811. rng.BrickColor = BrickColor.random()
  2812. end
  2813. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2814. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2815. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2816. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2817. end
  2818. rng:Destroy()
  2819. end))
  2820. end
  2821.  
  2822. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2823. local type = type
  2824. local rng = Instance.new("Part", workspace)
  2825. rng.Anchored = true
  2826. rng.BrickColor = color
  2827. rng.CanCollide = false
  2828. rng.FormFactor = 3
  2829. rng.Name = "Ring"
  2830. rng.Material = "Neon"
  2831. rng.Size = Vector3.new(1, 1, 1)
  2832. rng.Transparency = 0
  2833. rng.TopSurface = 0
  2834. rng.BottomSurface = 0
  2835. rng.CFrame = pos
  2836. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2837. local rngm = Instance.new("SpecialMesh", rng)
  2838. rngm.MeshType = "Sphere"
  2839. rngm.Scale = vt(x1,y1,z1)
  2840. if rainbowmode == true then
  2841. rng.Color = Color3.new(r/255,g/255,b/255)
  2842. end
  2843. local scaler2 = 1
  2844. local speeder = FastSpeed
  2845. if type == "Add" then
  2846. scaler2 = 1*value
  2847. elseif type == "Divide" then
  2848. scaler2 = 1/value
  2849. end
  2850. coroutine.resume(coroutine.create(function()
  2851. for i = 0,10/bonuspeed,0.1 do
  2852. swait()
  2853. if rainbowmode == true then
  2854. rng.Color = Color3.new(r/255,g/255,b/255)
  2855. end
  2856. if type == "Add" then
  2857. scaler2 = scaler2 - 0.01*value/bonuspeed
  2858. elseif type == "Divide" then
  2859. scaler2 = scaler2 - 0.01/value*bonuspeed
  2860. end
  2861. if chaosmode == true then
  2862. rng.BrickColor = BrickColor.random()
  2863. end
  2864. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2865. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2866. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2867. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2868. end
  2869. rng:Destroy()
  2870. end))
  2871. end
  2872.  
  2873.  
  2874. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2875. local type = type
  2876. local rng = Instance.new("Part", char)
  2877. rng.Anchored = true
  2878. rng.BrickColor = color
  2879. rng.CanCollide = false
  2880. rng.FormFactor = 3
  2881. rng.Name = "Ring"
  2882. rng.Material = "Neon"
  2883. rng.Size = Vector3.new(1, 1, 1)
  2884. rng.Transparency = 1
  2885. rng.TopSurface = 0
  2886. rng.BottomSurface = 0
  2887. rng.CFrame = pos
  2888. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2889. local rngm = Instance.new("SpecialMesh", rng)
  2890. rngm.MeshType = "Sphere"
  2891. rngm.Scale = vt(x1,y1,z1)
  2892. if rainbowmode == true then
  2893. rng.Color = Color3.new(r/255,g/255,b/255)
  2894. end
  2895. local scaler2 = 1
  2896. local speeder = FastSpeed
  2897. if type == "Add" then
  2898. scaler2 = 1*value
  2899. elseif type == "Divide" then
  2900. scaler2 = 1/value
  2901. end
  2902. coroutine.resume(coroutine.create(function()
  2903. for i = 0,10/bonuspeed,0.1 do
  2904. swait()
  2905. if rainbowmode == true then
  2906. rng.Color = Color3.new(r/255,g/255,b/255)
  2907. end
  2908. if type == "Add" then
  2909. scaler2 = scaler2 - 0.01*value/bonuspeed
  2910. elseif type == "Divide" then
  2911. scaler2 = scaler2 - 0.01/value*bonuspeed
  2912. end
  2913. if chaosmode == true then
  2914. rng.BrickColor = BrickColor.random()
  2915. end
  2916. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2917. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2918. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2919. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2920. end
  2921. rng:Destroy()
  2922. end))
  2923. end
  2924.  
  2925. function dmg(dude)
  2926. if dude.Name ~= Character then
  2927. local bgf = Instance.new("BodyGyro",dude.Head)
  2928. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2929. local val = Instance.new("BoolValue",dude)
  2930. val.Name = "IsHit"
  2931. local ds = coroutine.wrap(function()
  2932. dude:WaitForChild("Head"):BreakJoints()
  2933. wait(0.5)
  2934. targetted = nil
  2935. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  2936. coroutine.resume(coroutine.create(function()
  2937. for i, v in pairs(dude:GetChildren()) do
  2938. if v:IsA("Accessory") then
  2939. v:Destroy()
  2940. end
  2941. if v:IsA("Humanoid") then
  2942. v:Destroy()
  2943. end
  2944. if v:IsA("CharacterMesh") then
  2945. v:Destroy()
  2946. end
  2947. if v:IsA("Model") then
  2948. v:Destroy()
  2949. end
  2950. if v:IsA("Part") or v:IsA("MeshPart") then
  2951. for x, o in pairs(v:GetChildren()) do
  2952. if o:IsA("Decal") then
  2953. o:Destroy()
  2954. end
  2955. end
  2956. coroutine.resume(coroutine.create(function()
  2957. v.Material = "Neon"
  2958. v.CanCollide = false
  2959. local bld = Instance.new("ParticleEmitter",v)
  2960. bld.LightEmission = 1
  2961. bld.Texture = "rbxassetid://284205403"
  2962. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  2963. bld.Rate = 50
  2964. bld.Lifetime = NumberRange.new(1)
  2965. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  2966. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2967. bld.Speed = NumberRange.new(0,0)
  2968. bld.VelocitySpread = 50000
  2969. bld.Rotation = NumberRange.new(-500,500)
  2970. bld.RotSpeed = NumberRange.new(-500,500)
  2971. local sbs = Instance.new("BodyPosition", v)
  2972. sbs.P = 3000
  2973. sbs.D = 1000
  2974. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2975. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2976. v.Color = Color3.new(1,1,1)
  2977. coroutine.resume(coroutine.create(function()
  2978. for i = 0, 49 do
  2979. swait(1)
  2980. v.Transparency = v.Transparency + 0.02
  2981. end
  2982. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  2983. bld.Speed = NumberRange.new(1,5)
  2984. bld.Acceleration = vt(0,10,0)
  2985. wait(0.5)
  2986. bld.Enabled = false
  2987. wait(3)
  2988. v:Destroy()
  2989. dude:Destroy()
  2990. end))
  2991. end))
  2992. end
  2993. end
  2994. end))
  2995. end)
  2996. ds()
  2997. end
  2998. end
  2999.  
  3000.  
  3001. function FindNearestHead(Position, Distance, SinglePlayer)
  3002. if SinglePlayer then
  3003. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3004. end
  3005. local List = {}
  3006. for i, v in pairs(workspace:GetChildren()) do
  3007. if v:IsA("Model") then
  3008. if v:findFirstChild("Head") then
  3009. if v ~= Character then
  3010. if (v.Head.Position - Position).magnitude <= Distance then
  3011. table.insert(List, v)
  3012. end
  3013. end
  3014. end
  3015. end
  3016. end
  3017. return List
  3018. end
  3019.  
  3020. function FaceMouse()
  3021. Cam = workspace.CurrentCamera
  3022. return {
  3023. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3024. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3025. }
  3026. end
  3027.  
  3028. function FaceMouse2()
  3029. Cam = workspace.CurrentCamera
  3030. return {
  3031. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3032. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3033. }
  3034. end
  3035.  
  3036. local ModeOfGlitch = 1
  3037. -- Functions are ready.
  3038. local storehumanoidWS = 16
  3039.  
  3040. function Blink()
  3041. for i = 0, 14 do
  3042. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3043. end
  3044. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3045. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3046. CameraEnshaking(2,10)
  3047. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3048. if v:FindFirstChild('Head') then
  3049. end
  3050. end
  3051. for i = 0, 14 do
  3052. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3053. end
  3054. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3055. end
  3056.  
  3057. function ExtinctiveHeartbreak()
  3058. local targetted = nil
  3059. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3060. targetted = mouse.Target.Parent
  3061. end
  3062. if targetted ~= nil then
  3063. attack = true
  3064. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3065. for i = 0, 9 do
  3066. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Dark red"),0)
  3067. end
  3068. for i = 0, 24 do
  3069. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Dark red"),0)
  3070. end
  3071. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Dark red"))
  3072. local originalpos = root.CFrame
  3073. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3074. for i = 0, 9 do
  3075. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Dark red"),0)
  3076. end
  3077. for i = 0, 24 do
  3078. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Dark red"),0)
  3079. end
  3080. hum.WalkSpeed = 0
  3081. targetted.Head.Anchored = true
  3082. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Dark red"))
  3083. for i = 0,2,0.1 do
  3084. swait()
  3085. 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)),.4)
  3086. 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)),.4)
  3087. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  3088. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3089. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  3090. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  3091. end
  3092. coroutine.resume(coroutine.create(function()
  3093. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3094. bld.LightEmission = 0.1
  3095. bld.Texture = "rbxassetid://284205403"
  3096. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3097. bld.Rate = 500
  3098. bld.Lifetime = NumberRange.new(1)
  3099. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3100. bld.Acceleration = vt(0,-25,0)
  3101. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3102. bld.Speed = NumberRange.new(10,50)
  3103. bld.EmissionDirection = "Front"
  3104. bld.VelocitySpread = 25
  3105. bld.Rotation = NumberRange.new(-500,500)
  3106. bld.RotSpeed = NumberRange.new(-500,500)
  3107. end))
  3108. coroutine.resume(coroutine.create(function()
  3109. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3110. bld.LightEmission = 0.1
  3111. bld.Texture = "rbxassetid://284205403"
  3112. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3113. bld.Rate = 500
  3114. bld.Lifetime = NumberRange.new(1)
  3115. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3116. bld.Acceleration = vt(0,-25,0)
  3117. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3118. bld.Speed = NumberRange.new(10,50)
  3119. bld.EmissionDirection = "Front"
  3120. bld.VelocitySpread = 25
  3121. bld.Rotation = NumberRange.new(-500,500)
  3122. bld.RotSpeed = NumberRange.new(-500,500)
  3123. end))
  3124. CameraEnshaking(5,5)
  3125. game:GetService("Debris"):AddItem(bld,3)
  3126. dmg(targetted)
  3127. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3128. for i = 0,1,0.1 do
  3129. swait()
  3130. 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)),.8)
  3131. 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)),.8)
  3132. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  3133. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3134. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3135. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  3136. end
  3137. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3138. for i = 0, 9 do
  3139. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Dark red"),0)
  3140. end
  3141. for i = 0, 24 do
  3142. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Dark red"),0)
  3143. end
  3144. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Dark red"))
  3145. root.CFrame = originalpos
  3146. for i = 0, 9 do
  3147. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Dark red"),0)
  3148. end
  3149. for i = 0, 24 do
  3150. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Dark red"),0)
  3151. end
  3152. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Dark red"))
  3153. bld.Enabled = false
  3154. attack = false
  3155. hum.WalkSpeed = storehumanoidWS
  3156. end
  3157. end
  3158. function test()
  3159. attack = true
  3160. for i = 0, 2, 0.1 do
  3161. swait()
  3162. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3163. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3164. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3165. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3166. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3167. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3168. end
  3169. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3170. for i=1,20 do
  3171. sphereMKCharge(5,-0.25,"Add",root.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,5,-0.005,MAINRUINCOLOR,10)
  3172. swait()
  3173. end
  3174. swait(30)
  3175. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3176. for i =1,20 do
  3177. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
  3178. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3179. end
  3180. for i = 0,2,0.1 do
  3181. swait()
  3182. 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(-30)),.5)
  3183. 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(30)),.5)
  3184. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,30 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  3185. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  3186. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  3187. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  3188. end
  3189. for i =1,20 do
  3190. sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3191. end
  3192. text.TextTransparency = 1
  3193. text.TextStrokeTransparency = 1
  3194. tr2.Enabled = false
  3195. tr1.Enabled = false
  3196. tr3.Enabled = false
  3197. tl1.Enabled = false
  3198. tl2.Enabled = false
  3199. tl3.Enabled = false
  3200. sphere(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3201. eff = false
  3202. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3203. local invtab = {}
  3204. local function search(targ)
  3205. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3206. table.insert(invtab,targ)
  3207. end
  3208. for i,v in pairs(targ:GetChildren()) do
  3209. search(v)
  3210. end
  3211. end
  3212. search(plr.Character)
  3213. local frm = 0
  3214. local frmcon
  3215. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3216. if frm < 10 then
  3217. for i,v in pairs(invtab) do
  3218. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3219. v.Transparency = v.Transparency + 0.1
  3220. end
  3221. end
  3222. frm = frm + 1
  3223. else
  3224. frmcon:disconnect()
  3225. end
  3226. end)
  3227. swait(200)
  3228. text.TextTransparency = 0
  3229. text.TextStrokeTransparency = 0
  3230. tr2.Enabled = false
  3231. tr1.Enabled = false
  3232. tr3.Enabled = false
  3233. tl1.Enabled = false
  3234. tl2.Enabled = false
  3235. tl3.Enabled = false
  3236. eff = true
  3237. for i =1,20 do
  3238. sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3239. end
  3240. sphere(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3241. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3242. local invtab = {}
  3243. local function search(targ)
  3244. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3245. table.insert(invtab,targ)
  3246. end
  3247. for i,v in pairs(targ:GetChildren()) do
  3248. search(v)
  3249. end
  3250. end
  3251. search(plr.Character)
  3252. local frm = 0
  3253. local frmcon
  3254. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3255. if frm < 10 then
  3256. for i,v in pairs(invtab) do
  3257. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3258. v.Transparency = v.Transparency - 0.1
  3259. end
  3260. end
  3261. frm = frm + 1
  3262. else
  3263. frmcon:disconnect()
  3264. end
  3265. end)
  3266. swait(5)
  3267. for i = 0, 2, 0.1 do
  3268. swait()
  3269. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3270. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3271. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3272. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3273. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3274. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3275. end
  3276. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3277. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3278. MagniDamage(root, 30, 65,90, 0, "Normal")
  3279. for i =1,20 do
  3280. sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3281. end
  3282. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3283. for i =1,20 do
  3284. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3285. end
  3286. swait(20)
  3287. attack = false
  3288. tr2.Enabled = true
  3289. tr1.Enabled = true
  3290. tr3.Enabled = true
  3291. tl1.Enabled = true
  3292. tl2.Enabled = true
  3293. tl3.Enabled = true
  3294. end
  3295. function FinalCalam()
  3296. attack = true
  3297.  
  3298. local orb = Instance.new("Part", char)
  3299. orb.Anchored = true
  3300. orb.BrickColor = MAINRUINCOLOR
  3301. orb.CanCollide = false
  3302. orb.FormFactor = 3
  3303. orb.Name = "Ring"
  3304. orb.Material = "Neon"
  3305. orb.Size = Vector3.new(1, 1, 1)
  3306. orb.Transparency = 0
  3307. orb.TopSurface = 0
  3308. orb.BottomSurface = 0
  3309. local orbm = Instance.new("SpecialMesh", orb)
  3310. orbm.MeshType = "Sphere"
  3311. orbm.Name = "SizeMesh"
  3312. orbm.Scale = vt(0,0,0)
  3313. local scaled = 0.1
  3314. local posid = 0
  3315. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3316. for i = 0, 5, 0.1 do
  3317. swait()
  3318. scaled = scaled - 0.001
  3319. posid = posid - scaled
  3320. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3321. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3322. sphereMKCharge(5,-0.25,"Add",orb.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,5,-0.005,MAINRUINCOLOR,10)
  3323. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  3324. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3325. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3326. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3327. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3328. end
  3329. swait(60)
  3330. for i =1,3 do
  3331. swait(30)
  3332. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3333. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3334. end
  3335. swait(30)
  3336. for i = 0, 2, 0.1 do
  3337. swait()
  3338. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3339. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3340. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3341. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3342. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3343. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3344. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3345. end
  3346. swait(60)
  3347. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3348. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3349. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3350. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3351. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3352. if v:FindFirstChild('Head') then
  3353. dmg(v)
  3354. end
  3355. end
  3356. for i = 1,20 do
  3357. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,MAINRUINCOLOR,0)
  3358. for i = 0, 10 do
  3359. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,MAINRUINCOLOR,0)
  3360. end
  3361. end
  3362. orb:Remove()
  3363. attack = false
  3364. end
  3365. function PureBomb()
  3366. attack = true
  3367.  
  3368. local orb = Instance.new("Part", char)
  3369. orb.Anchored = true
  3370. orb.BrickColor = BrickColor.new("Bright red")
  3371. orb.CanCollide = false
  3372. orb.FormFactor = 3
  3373. orb.Name = "Ring"
  3374. orb.Material = "Neon"
  3375. orb.Size = Vector3.new(1, 1, 1)
  3376. orb.Transparency = 0
  3377. orb.TopSurface = 0
  3378. orb.BottomSurface = 0
  3379. local orbm = Instance.new("SpecialMesh", orb)
  3380. orbm.MeshType = "Sphere"
  3381. orbm.Name = "SizeMesh"
  3382. orbm.Scale = vt(0,0,0)
  3383. local scaled = 0.1
  3384. local posid = 0
  3385. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3386. for i = 0, 5, 0.1 do
  3387. swait()
  3388. scaled = scaled - 0.001
  3389. posid = posid - scaled
  3390. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3391. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3392. sphereMKCharge(5,-0.25,"Add",orb.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,5,-0.005,BrickColor.new("Bright red"),10)
  3393. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Bright red"),0)
  3394. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3395. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3396. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3397. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3398. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3399. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3400. end
  3401. for i = 0, 2, 0.1 do
  3402. swait()
  3403. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3404. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3405. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3406. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3407. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3408. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3409. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3410. end
  3411. coroutine.resume(coroutine.create(function()
  3412. orb.Anchored = false
  3413. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3414. local a = Instance.new("Part",workspace)
  3415. a.Name = "Direction"
  3416. a.Anchored = true
  3417. a.BrickColor = bc("Bright red")
  3418. a.Material = "Neon"
  3419. a.Transparency = 1
  3420. a.CanCollide = false
  3421. local ray = Ray.new(
  3422. orb.CFrame.p, -- origin
  3423. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3424. )
  3425. local ignore = orb
  3426. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3427. a.BottomSurface = 10
  3428. a.TopSurface = 10
  3429. local distance = (orb.CFrame.p - position).magnitude
  3430. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3431. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3432. orb.CFrame = a.CFrame
  3433. a:Destroy()
  3434. local bv = Instance.new("BodyVelocity")
  3435. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3436. bv.velocity = orb.CFrame.lookVector*125
  3437. bv.Parent = orb
  3438. local hitted = false
  3439. game:GetService("Debris"):AddItem(orb, 15)
  3440. wait()
  3441. local hit =orb.Touched:connect(function(hit)
  3442. if hitted == false then
  3443. hitted = true
  3444. CameraEnshaking(10,2.5)
  3445. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3446. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Bright red"))
  3447. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Bright red"))
  3448. for i = 0, 49 do
  3449. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Bright red"),0)
  3450. end
  3451. for i = 0, 9 do
  3452. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Bright red"),0)
  3453. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Bright red"),0)
  3454. end
  3455. orb.Anchored = true
  3456. orb.Transparency = 1
  3457. wait(8)
  3458. orb:Destroy()
  3459. end
  3460. end)
  3461. end))
  3462. for i = 0, 1, 0.1 do
  3463. swait()
  3464. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3465. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3466. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3467. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3468. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3469. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3470. end
  3471. attack = false
  3472. end
  3473.  
  3474. function ChaosGroundStrike()
  3475. attack = true
  3476. for i = 0, 2, 0.1 do
  3477. swait()
  3478. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3479. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3480. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3481. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3482. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3483. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3484. end
  3485. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3486. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3487. CameraEnshaking(4,12)
  3488. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3489. if v:FindFirstChild('Head') then
  3490. dmg(v)
  3491. end
  3492. end
  3493. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.new("Toothpaste"))
  3494. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.new("Toothpaste"))
  3495. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.new("Toothpaste"))
  3496. for i = 0, 2, 0.1 do
  3497. swait()
  3498. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.new("Toothpaste"),0)
  3499. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.new("Toothpaste"),0)
  3500. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3501. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3502. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3503. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3504. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3505. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3506. end
  3507. attack = false
  3508. end
  3509.  
  3510. function Starfall()
  3511. attack = true
  3512. hum.WalkSpeed = 0
  3513. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3514. for i = 0, 5, 0.1 do
  3515. swait()
  3516. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3517. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3518. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3519. 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)),.1)
  3520. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3521. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3522. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3523. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3524. end
  3525. local Overed = false
  3526. CameraEnshaking(2,20)
  3527. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3528. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3529. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3530. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3531. local orb = Instance.new("Part", char)
  3532. orb.Anchored = true
  3533. orb.BrickColor = BrickColor.new("Bright red")
  3534. orb.CanCollide = false
  3535. orb.FormFactor = 3
  3536. orb.Name = "Remenant"
  3537. orb.Material = "Neon"
  3538. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3539. orb.Size = Vector3.new(1, 1, 1)
  3540. orb.Transparency = 1
  3541. orb.TopSurface = 0
  3542. orb.BottomSurface = 0
  3543. hum.WalkSpeed = storehumanoidWS
  3544. coroutine.resume(coroutine.create(function()
  3545. for i = 0, 9 do
  3546. swait(10)
  3547. local lb = Instance.new("Part")
  3548. lb.Color = MAINRUINCOLOR.Color
  3549. lb.CanCollide = false
  3550. lb.Material = "Neon"
  3551. lb.Anchored = true
  3552. lb.TopSurface = 0
  3553. lb.BottomSurface = 0
  3554. lb.Transparency = 0
  3555. lb.Size = vt(1,1,1)
  3556. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3557. lb.Anchored = false
  3558. lb.Parent = char
  3559. local thingery = Instance.new("SpecialMesh",lb)
  3560. thingery.MeshType = "Sphere"
  3561. thingery.Scale = vt(20,20,20)
  3562. game:GetService("Debris"):AddItem(lb, 10)
  3563. local bv = Instance.new("BodyVelocity")
  3564. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3565. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3566. bv.Parent = lb
  3567. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3568. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3569. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3570. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3571. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3572. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3573. local hitted = false
  3574. coroutine.resume(coroutine.create(function()
  3575. while true do
  3576. swait(1)
  3577. if lb.Parent ~= nil and hitted == false then
  3578. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3579. elseif lb.Parent == nil then
  3580. break
  3581. end
  3582. end
  3583. end))
  3584.  
  3585. game:GetService("Debris"):AddItem(a, 0.1)
  3586.  
  3587. coroutine.resume(coroutine.create(function()
  3588. swait(1)
  3589. lb.Touched:connect(function(hit)
  3590. if hitted == false then
  3591. hitted = true
  3592. lb.Transparency = 1
  3593. lb.Anchored = true
  3594. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3595. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3596. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3597. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3598. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3599. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3600. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3601. CameraEnshaking(1,5)
  3602. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3603. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3604. for i = 0, 9 do
  3605. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3606. end
  3607. for i = 0, 49 do
  3608. swait()
  3609. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3610. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3611. end
  3612. end
  3613. end)
  3614. end))
  3615. end
  3616. Overed = true
  3617. orb:Destroy()
  3618. end))
  3619.  
  3620. attack = false
  3621. end
  3622.  
  3623. function StarfallEX()
  3624. attack = true
  3625. hum.WalkSpeed = 0
  3626. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3627. for i = 0, 5, 0.1 do
  3628. swait()
  3629. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3630. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3631. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3632. 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)),.1)
  3633. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3634. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3635. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3636. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3637. end
  3638. local Overed = false
  3639. CameraEnshaking(2,20)
  3640. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3641. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3642. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3643. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3644. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3645. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3646. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3647. local orb = Instance.new("Part", char)
  3648. orb.Anchored = true
  3649. orb.BrickColor = BrickColor.new("Bright red")
  3650. orb.CanCollide = false
  3651. orb.FormFactor = 3
  3652. orb.Name = "Remenant"
  3653. orb.Material = "Neon"
  3654. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3655. orb.Size = Vector3.new(1, 1, 1)
  3656. orb.Transparency = 1
  3657. orb.TopSurface = 0
  3658. orb.BottomSurface = 0
  3659. hum.WalkSpeed = storehumanoidWS
  3660. coroutine.resume(coroutine.create(function()
  3661. for i = 0, 9 do
  3662. swait(10)
  3663. local lb = Instance.new("Part")
  3664. lb.Color = MAINRUINCOLOR.Color
  3665. lb.CanCollide = false
  3666. lb.Material = "Neon"
  3667. lb.Anchored = true
  3668. lb.TopSurface = 0
  3669. lb.BottomSurface = 0
  3670. lb.Transparency = 0
  3671. lb.Size = vt(1,1,1)
  3672. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3673. lb.Anchored = false
  3674. lb.Parent = char
  3675. local thingery = Instance.new("SpecialMesh",lb)
  3676. thingery.MeshType = "Sphere"
  3677. thingery.Scale = vt(20,20,20)
  3678. game:GetService("Debris"):AddItem(lb, 10)
  3679. local bv = Instance.new("BodyVelocity")
  3680. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3681. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3682. bv.Parent = lb
  3683. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3684. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3685. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3686. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3687. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3688. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3689. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3690. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3691. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3692. local hitted = false
  3693. coroutine.resume(coroutine.create(function()
  3694. while true do
  3695. swait(1)
  3696. if lb.Parent ~= nil and hitted == false then
  3697. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3698. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3699. elseif lb.Parent == nil then
  3700. break
  3701. end
  3702. end
  3703. end))
  3704.  
  3705. game:GetService("Debris"):AddItem(a, 0.1)
  3706.  
  3707. coroutine.resume(coroutine.create(function()
  3708. swait(1)
  3709. lb.Touched:connect(function(hit)
  3710. if hitted == false then
  3711. hitted = true
  3712. lb.Transparency = 1
  3713. lb.Anchored = true
  3714. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3715. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3716. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3717. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3718. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3719. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3720. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3721. CameraEnshaking(10,5)
  3722. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3723. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3724. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3725. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3726. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3727. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3728. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3729. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3730. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3731. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3732. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3733. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3734. for i = 0, 9 do
  3735. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3736. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3737. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3738. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3739. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3740. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3741. end
  3742. for i = 0, 49 do
  3743. swait()
  3744. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  3745. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3746. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3747. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3748. end
  3749. end
  3750. end)
  3751. end))
  3752. end
  3753. Overed = true
  3754. orb:Destroy()
  3755. end))
  3756.  
  3757. attack = false
  3758. end
  3759.  
  3760. function StarDivision()
  3761. attack = true
  3762. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3763. for i = 0, 2, 0.1 do
  3764. swait()
  3765. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3766. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6)
  3767. 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)),.6)
  3768. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90)),.6)
  3769. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3770. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3771. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  3772. end
  3773. local orb = Instance.new("Part", char)
  3774. orb.BrickColor = MAINRUINCOLOR
  3775. orb.CanCollide = false
  3776. orb.FormFactor = 3
  3777. orb.Name = "Ring"
  3778. orb.Material = "Neon"
  3779. orb.Size = Vector3.new(1, 1, 1)
  3780. orb.Transparency = 0
  3781. orb.TopSurface = 0
  3782. orb.BottomSurface = 0
  3783. local orbm = Instance.new("SpecialMesh", orb)
  3784. orbm.MeshType = "Sphere"
  3785. orbm.Name = "SizeMesh"
  3786. orbm.Scale = vt(2,2,2)
  3787. local a = Instance.new("Part",workspace)
  3788. a.Name = "Direction"
  3789. a.Anchored = true
  3790. a.BrickColor = bc("Bright red")
  3791. a.Material = "Neon"
  3792. a.Transparency = 1
  3793. a.CanCollide = false
  3794. local ray = Ray.new(
  3795. sorb.CFrame.p, -- origin
  3796. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3797. )
  3798. local ignore = sorb
  3799. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3800. a.BottomSurface = 10
  3801. a.TopSurface = 10
  3802. local distance = (sorb.CFrame.p - position).magnitude
  3803. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3804. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3805. orb.CFrame = a.CFrame
  3806. a:Destroy()
  3807. local bv = Instance.new("BodyVelocity")
  3808. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3809. bv.velocity = orb.CFrame.lookVector*100
  3810. bv.Parent = orb
  3811. local hitted = false
  3812. game:GetService("Debris"):AddItem(orb, 10)
  3813. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3814. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3815. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3816. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3817. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3818. coroutine.resume(coroutine.create(function()
  3819. while true do
  3820. swait(1)
  3821. if orb.Parent ~= nil and hitted == false then
  3822. PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
  3823. elseif orb.Parent == nil then
  3824. break
  3825. end
  3826. end
  3827. end))
  3828. coroutine.resume(coroutine.create(function()
  3829. swait(1)
  3830. orb.Touched:connect(function(hit)
  3831. if hitted == false then
  3832. hitted = true
  3833. game:GetService("Debris"):AddItem(orb, 5)
  3834. orb.Transparency = 1
  3835. orb.Anchored = true
  3836. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3837. elocacenter.Anchored = true
  3838. elocacenter.CFrame = orb.CFrame
  3839. elocacenter.Orientation = vt(0,0,0)
  3840. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3841. eloca1.Anchored = true
  3842. eloca1.CFrame = elocacenter.CFrame
  3843. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3844. eloca2.Anchored = true
  3845. eloca2.CFrame = elocacenter.CFrame
  3846. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3847. eloca3.Anchored = true
  3848. eloca3.CFrame = elocacenter.CFrame
  3849. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3850. eloca4.Anchored = true
  3851. eloca4.CFrame = elocacenter.CFrame
  3852. local lookavec = 0
  3853. local speeds = 0
  3854. CameraEnshaking(1,1)
  3855. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  3856. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3857. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3858. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3859. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3860. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3861. for i = 0, 99 do
  3862. swait()
  3863. lookavec = lookavec + 1
  3864. speeds = speeds + 0.1
  3865. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3866. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3867. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3868.  
  3869. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3870. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3871.  
  3872. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3873. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3874.  
  3875. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3876. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3877. end
  3878.  
  3879. for i = 0, 149 do
  3880. swait()
  3881. speeds = speeds + 0.1
  3882. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3883. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3884. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3885.  
  3886. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3887. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3888.  
  3889. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3890. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3891.  
  3892. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3893. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3894. end
  3895. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  3896. if v:FindFirstChild('Head') then
  3897. dmg(v)
  3898. end
  3899. end
  3900. CameraEnshaking(7,30)
  3901. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  3902. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  3903. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  3904. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  3905. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  3906. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  3907. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  3908. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3909. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3910. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3911. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3912. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3913. for i = 0, 24 do
  3914. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  3915. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  3916. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  3917. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  3918. end
  3919. coroutine.resume(coroutine.create(function()
  3920. for i = 0, 499 do
  3921. swait(1)
  3922. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  3923. PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
  3924. end
  3925. elocacenter:Destroy()
  3926. eloca1:Destroy()
  3927. eloca2:Destroy()
  3928. eloca3:Destroy()
  3929. eloca4:Destroy()
  3930. end))
  3931. end
  3932. end)
  3933. end))
  3934. attack = false
  3935. end
  3936.  
  3937.  
  3938. function UniversalCollapse()
  3939. attack = true
  3940. local speedearn = 0
  3941. hum.WalkSpeed = 0
  3942. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  3943. for i = 0, 10, 0.1 do
  3944. swait()
  3945. speedearn = speedearn + 0.1
  3946. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3947. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3948. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3949. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3950. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3951. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  3952. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  3953. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3954. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  3955. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  3956. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  3957. end
  3958. CameraEnshaking(5,45)
  3959. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  3960. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  3961. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3962. if v:FindFirstChild('Head') then
  3963. dmg(v)
  3964. end
  3965. end
  3966. hum.WalkSpeed = storehumanoidWS
  3967. attack = false
  3968. end
  3969. function ChaosBegone()
  3970. attack = true
  3971. local speedearn = 0
  3972. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  3973. for i = 0, 10, 0.1 do
  3974. swait()
  3975. speedearn = speedearn + 0.1
  3976. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3977. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3978. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3979. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3980. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3981. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3982. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3983. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3984. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3985. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3986. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3987. end
  3988. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  3989. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  3990. CameraEnshaking(5,25)
  3991. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3992. if v:FindFirstChild('Head') then
  3993. dmg(v)
  3994. end
  3995. end
  3996. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  3997. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  3998. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  3999. for i = 0, 3, 0.1 do
  4000. swait()
  4001. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4002. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4003. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4004. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4005. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4006. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4007. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4008. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4009. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4010. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4011. end
  4012. attack = false
  4013. end
  4014.  
  4015. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4016. local orb = Instance.new("Part", char)
  4017. orb.Anchored = true
  4018. orb.BrickColor = color
  4019. orb.CanCollide = false
  4020. orb.FormFactor = 3
  4021. orb.Name = "Ring"
  4022. orb.Material = "Neon"
  4023. orb.Size = Vector3.new(1, 1, 1)
  4024. orb.Transparency = 0
  4025. orb.TopSurface = 0
  4026. orb.BottomSurface = 0
  4027. local orbm = Instance.new("SpecialMesh", orb)
  4028. orbm.MeshType = "Sphere"
  4029. orb.CFrame = positted
  4030. orbm.Name = "SizeMesh"
  4031. orbm.Scale = vt(1,1,1)
  4032. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4033. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4034. --[[for i = 0, 2 do
  4035. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4036. end]]--
  4037. coroutine.resume(coroutine.create(function()
  4038. wait(timer)
  4039. CameraEnshaking(3,ShakePower)
  4040. orb.Transparency = 1
  4041. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4042. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4043. --[[for i = 0, 4 do
  4044. sphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4045. end]]--
  4046. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4047. wait(3)
  4048. orb:Destroy()
  4049. end))
  4050. end
  4051.  
  4052. function orb_spawn(positted,timer)
  4053. local randomcol = math.random(1,2)
  4054. local orb = Instance.new("Part", char)
  4055. orb.Anchored = true
  4056. if randomcol == 1 then
  4057. orb.BrickColor = BrickColor.new("White")
  4058. elseif randomcol == 2 then
  4059. orb.BrickColor = BrickColor.new("Really black")
  4060. end
  4061. orb.CanCollide = false
  4062. orb.FormFactor = 3
  4063. orb.Name = "Ring"
  4064. orb.Material = "Neon"
  4065. orb.Size = Vector3.new(1, 1, 1)
  4066. orb.Transparency = 0
  4067. orb.TopSurface = 0
  4068. orb.BottomSurface = 0
  4069. local orbm = Instance.new("SpecialMesh", orb)
  4070. orbm.MeshType = "Sphere"
  4071. orb.CFrame = positted
  4072. orbm.Name = "SizeMesh"
  4073. orbm.Scale = vt(1,1,1)
  4074. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4075. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4076. for i = 0, 2 do
  4077. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4078. end
  4079. coroutine.resume(coroutine.create(function()
  4080. wait(timer)
  4081. CameraEnshaking(3,2)
  4082. orb.Transparency = 1
  4083. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4084. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4085. for i = 0, 4 do
  4086. sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4087. end
  4088. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4089. wait(3)
  4090. orb:Destroy()
  4091. end))
  4092. end
  4093.  
  4094. function scattercorrupt()
  4095. attack = true
  4096. local rot = 0
  4097. local randomrotations = math.random(1,2)
  4098. local lookv = 2.5
  4099. local power = 5
  4100. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Bright blue"))
  4101. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Bright blue"))
  4102. for i = 0, 9 do
  4103. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Bright blue"),0)
  4104. end
  4105. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4106. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4107. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4108. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4109. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4110. local hite = Instance.new("Part", char)
  4111. hite.Anchored = true
  4112. hite.CanCollide = false
  4113. hite.FormFactor = 3
  4114. hite.Name = "Ring"
  4115. hite.Material = "Neon"
  4116. hite.Size = Vector3.new(1, 1, 1)
  4117. hite.Transparency = 1
  4118. hite.TopSurface = 0
  4119. hite.BottomSurface = 0
  4120. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4121. local rem = Instance.new("Part", char)
  4122. rem.Anchored = true
  4123. rem.CanCollide = false
  4124. rem.FormFactor = 3
  4125. rem.Name = "Ring"
  4126. rem.Material = "Neon"
  4127. rem.Size = Vector3.new(1, 1, 1)
  4128. rem.Transparency = 1
  4129. rem.TopSurface = 0
  4130. rem.BottomSurface = 0
  4131. rem.CFrame = hite.CFrame
  4132. local rem2 = rem:Clone()
  4133. rem2.Parent = char
  4134. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4135. local rem3 = rem:Clone()
  4136. rem3.Parent = char
  4137. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4138. local rem4 = rem:Clone()
  4139. rem4.Parent = char
  4140. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4141. hite:Destroy()
  4142. coroutine.resume(coroutine.create(function()
  4143. for i = 0, 24 do
  4144. swait(1)
  4145. if randomrotations == 1 then
  4146. rot = rot + 1
  4147. elseif randomrotations == 2 then
  4148. rot = rot - 1
  4149. end
  4150. power = power + 0.5
  4151. lookv = lookv + 7.5
  4152. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4153. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4154. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4155. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4156. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Bright blue"),power,25,75,10,power/5,7.5)
  4157. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Bright blue"),power,25,75,10,power/5,7.5)
  4158. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Bright blue"),power,25,75,10,power/5,7.5)
  4159. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Bright blue"),power,25,75,10,power/5,7.5)
  4160. end
  4161. end))
  4162. attack = false
  4163. end
  4164. function yinyangi()
  4165. attack = true
  4166. for i = 0, 2, 0.1 do
  4167. swait()
  4168. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  4169. 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(20)),.2)
  4170. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  4171. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4172. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4173. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4174. end
  4175. local bv = Instance.new("BodyVelocity")
  4176. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4177. bv.velocity = root.CFrame.lookVector*175
  4178. bv.Parent = root
  4179. for Rotations = 0, 9 do
  4180. for i = 0, 1, 0.5 do
  4181. swait()
  4182. bv.velocity = root.CFrame.lookVector*175
  4183. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4184. 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(20)),.5)
  4185. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  4186. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4187. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4188. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4189. end
  4190. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4191. for i = 0, 1, 0.5 do
  4192. swait()
  4193. bv.velocity = root.CFrame.lookVector*175
  4194. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4195. 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(20)),.5)
  4196. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  4197. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4198. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4199. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4200. end
  4201. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4202. for i = 0, 1, 0.5 do
  4203. swait()
  4204. bv.velocity = root.CFrame.lookVector*175
  4205. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4206. 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(20)),.5)
  4207. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  4208. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4209. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4210. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4211. end
  4212. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4213. for i = 0, 1, 0.5 do
  4214. swait()
  4215. bv.velocity = root.CFrame.lookVector*175
  4216. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4217. 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(20)),.5)
  4218. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  4219. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4220. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4221. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4222. end
  4223. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4224. end
  4225. bv:Destroy()
  4226. attack = false
  4227. end
  4228.  
  4229. function Wip()
  4230. attack = true
  4231.  
  4232. local rngb = Instance.new("Part", char)
  4233. rngb.Anchored = true
  4234. rngb.BrickColor = origcolor
  4235. rngb.CanCollide = false
  4236. rngb.FormFactor = 3
  4237. rngb.Name = "Ring"
  4238. rngb.Material = "Neon"
  4239. rngb.Size = Vector3.new(1, 0.05, 1)
  4240. rngb.Transparency = 1
  4241. rngb.TopSurface = 0
  4242. rngb.BottomSurface = 0
  4243. local rngmb = Instance.new("SpecialMesh", rngb)
  4244. rngmb.MeshType = "Brick"
  4245. rngmb.Name = "SizeMesh"
  4246. rngmb.Scale = vt(0,1,0)
  4247.  
  4248. local orb = rngb:Clone()
  4249. orb.Parent = char
  4250. orb.Transparency = 0
  4251. orb.BrickColor = BrickColor.new("White")
  4252. orb.Size = vt(1,1,1)
  4253. local orbmish = orb.SizeMesh
  4254. orbmish.Scale = vt(0,0,0)
  4255. orbmish.MeshType = "Sphere"
  4256.  
  4257. local orbe = rngb:Clone()
  4258. orbe.Parent = char
  4259. orbe.Transparency = 0.5
  4260. orbe.BrickColor = BrickColor.new("New Yeller")
  4261. orbe.Size = vt(1,1,1)
  4262. local orbmish2 = orbe.SizeMesh
  4263. orbmish2.Scale = vt(0,0,0)
  4264. orbmish2.MeshType = "Sphere"
  4265. orbe.Color = Color3.new(r/255,g/255,b/255)
  4266.  
  4267. rngb:Destroy()
  4268. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4269. local scaled = 1
  4270. for i = 0,5,0.1 do
  4271. swait()
  4272. scaled = scaled - 0.02
  4273. if rainbowmode == true then
  4274. orbe.Color = Color3.new(r/255,g/255,b/255)
  4275. end
  4276. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4277. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4278. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4279. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4280. sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
  4281. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4282. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4283. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4284. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4285. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4286. 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(-2.5),math.rad(10),math.rad(0)),.3)
  4287. RootPart.CFrame = FaceMouse()[1]
  4288. end]]--
  4289. for i = 0,5,0.1 do
  4290. swait()
  4291. if rainbowmode == true then
  4292. orbe.Color = Color3.new(r/255,g/255,b/255)
  4293. end
  4294. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4295. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4296. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4297. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4298. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4299. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4300. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4301. 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(-2.5),math.rad(10),math.rad(0)),.3)
  4302. RootPart.CFrame = FaceMouse()[1]
  4303. end
  4304. orbe.Transparency = 1
  4305. orb.Transparency = 1
  4306. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4307. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4308. local a = Instance.new("Part",Character)
  4309. a.Name = "Direction"
  4310. a.Anchored = true
  4311. a.BrickColor = bc("White")
  4312. a.Material = "Neon"
  4313. a.Transparency = 0
  4314. a.Shape = "Cylinder"
  4315. a.CanCollide = false
  4316. local a2 = Instance.new("Part",Character)
  4317. a2.Name = "Direction"
  4318. a2.Anchored = true
  4319. a2.BrickColor = bc("New Yeller")
  4320. a2.Color = Color3.new(r/255,g/255,b/255)
  4321. a2.Material = "Neon"
  4322. a2.Transparency = 0.5
  4323. a2.Shape = "Cylinder"
  4324. a2.CanCollide = false
  4325. local ba = Instance.new("Part",Character)
  4326. ba.Name = "HitDirect"
  4327. ba.Anchored = true
  4328. ba.BrickColor = bc("Cool yellow")
  4329. ba.Material = "Neon"
  4330. ba.Transparency = 1
  4331. ba.CanCollide = false
  4332. local ray = Ray.new(
  4333. orb.CFrame.p, -- origin
  4334. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4335. )
  4336. local ignore = Character
  4337. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4338. a.BottomSurface = 10
  4339. a.TopSurface = 10
  4340. a2.BottomSurface = 10
  4341. a2.TopSurface = 10
  4342. local distance = (orb.CFrame.p - position).magnitude
  4343. a.Size = Vector3.new(distance, 1, 1)
  4344. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4345. a2.Size = Vector3.new(distance, 1, 1)
  4346. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4347. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4348. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4349. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4350. game:GetService("Debris"):AddItem(a, 20)
  4351. game:GetService("Debris"):AddItem(a2, 20)
  4352. game:GetService("Debris"):AddItem(ba, 20)
  4353. local msh = Instance.new("SpecialMesh",a)
  4354. msh.MeshType = "Cylinder"
  4355. msh.Scale = vt(1,5*5,5*5)
  4356. local msh2 = Instance.new("SpecialMesh",a2)
  4357. msh2.MeshType = "Cylinder"
  4358. msh2.Scale = vt(1,6*5,6*5)
  4359.  
  4360. for i = 0,10,0.1 do
  4361. swait()
  4362. CameraEnshaking(1,5)
  4363. a2.Color = Color3.new(r/255,g/255,b/255)
  4364. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4365. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4366. ray = Ray.new(
  4367. orb.CFrame.p, -- origin
  4368. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4369. )
  4370. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4371. distance = (orb.CFrame.p - position).magnitude
  4372. if typrot == 1 then
  4373. rotation = rotation + 2.5
  4374. elseif typrot == 2 then
  4375. rotation = rotation - 2.5
  4376. end
  4377. RootPart.CFrame = FaceMouse()[1]
  4378. a.Size = Vector3.new(distance, 1, 1)
  4379. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4380. a2.Size = Vector3.new(distance, 1, 1)
  4381. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4382. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4383. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4384. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4385. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4386. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  4387. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  4388. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  4389. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4390. end
  4391. a:Destroy()
  4392. a2:Destroy()
  4393. ba:Destroy()
  4394. orb:Destroy()
  4395. orbe:Destroy()
  4396. attack = false
  4397. end
  4398. function HolyBarrier()
  4399. attack = true
  4400. for i = 0, 2, 0.1 do
  4401. swait()
  4402. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  4403. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  4404. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
  4405. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  4406. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  4407. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  4408. end
  4409. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  4410. stash = Instance.new("Model",workspace)
  4411. local barrier = Instance.new("Part",stash)
  4412. barrier.Anchored = true
  4413. barrier.CanCollide = false
  4414. barrier.Size = Vector3.new(20,20,20)
  4415. barrier.CFrame = root.CFrame
  4416. barrier.Transparency = 0.6
  4417. barrier.BrickColor = MAINRUINCOLOR
  4418. barrier.Material = Enum.Material.Neon
  4419. barrier.Shape = Enum.PartType.Ball
  4420. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4421. Torso.Anchored = true
  4422. shielding = true
  4423. for i=1,50 do
  4424. local p = Instance.new("Part",stash)
  4425. p.Anchored = true
  4426. p.Transparency = 1
  4427. p.Size = Vector3.new(11,11,11)
  4428. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  4429. end
  4430. end
  4431. function Judgement()
  4432. attack = true
  4433. hum.WalkSpeed = 0
  4434. local p = Instance.new("Part",root)
  4435. p.Anchored = true
  4436. p.CanCollide = false
  4437. p.BrickColor = MAINRUINCOLOR
  4438. p.Material = Enum.Material.Neon
  4439. p.Size = Vector3.new(1,1,1)
  4440. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4441. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4442. local m = Instance.new("SpecialMesh",p)
  4443. m.MeshType = "Cylinder"
  4444. m.Scale = Vector3.new(2000,2,2)
  4445. local targ = Instance.new("Part",root)
  4446. targ.Transparency = 1
  4447. targ.CanCollide = false
  4448. targ.Size = Vector3.new(1,1,1)
  4449. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4450. CFuncs.Sound.Create("rbxassetid://164178927", targ, 5, 1)
  4451. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4452. for i = 1,15 do
  4453. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4454. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4455. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4456. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4457. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4458. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  4459. 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(-2.5),math.rad(10),math.rad(20)),.2)
  4460. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4461. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0)
  4462. m.Scale = m.Scale+Vector3.new(0,1,1)
  4463. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4464. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4465. swait()
  4466. end
  4467. sphereMK(3, 0.2, "Add", targ.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, 5, -0.005, MAINRUINCOLOR, 0)
  4468. for i = 1,200 do
  4469. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4470. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0)
  4471. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4472. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4473. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4474. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4475. swait()
  4476. end
  4477. for i =1,15 do
  4478. m.Scale = m.Scale-Vector3.new(1,1,1)
  4479. p.Transparency = i / 15
  4480. swait()
  4481. end
  4482. p:Destroy()
  4483. hum.WalkSpeed = storehumanoidWS
  4484. attack = false
  4485. end
  4486.  
  4487. function UniversalSpark()
  4488. attack = true
  4489.  
  4490. local rngb = Instance.new("Part", char)
  4491. rngb.Anchored = true
  4492. rngb.BrickColor = origcolor
  4493. rngb.CanCollide = false
  4494. rngb.FormFactor = 3
  4495. rngb.Name = "Ring"
  4496. rngb.Material = "Neon"
  4497. rngb.Size = Vector3.new(1, 0.05, 1)
  4498. rngb.Transparency = 1
  4499. rngb.TopSurface = 0
  4500. rngb.BottomSurface = 0
  4501. local rngmb = Instance.new("SpecialMesh", rngb)
  4502. rngmb.MeshType = "Brick"
  4503. rngmb.Name = "SizeMesh"
  4504. rngmb.Scale = vt(0,1,0)
  4505.  
  4506. local orb = rngb:Clone()
  4507. orb.Parent = char
  4508. orb.Transparency = 0
  4509. orb.BrickColor = BrickColor.new("White")
  4510. orb.Size = vt(1,1,1)
  4511. local orbmish = orb.SizeMesh
  4512. orbmish.Scale = vt(0,0,0)
  4513. orbmish.MeshType = "Sphere"
  4514.  
  4515. local orbe = rngb:Clone()
  4516. orbe.Parent = char
  4517. orbe.Transparency = 0.5
  4518. orbe.BrickColor = BrickColor.new("New Yeller")
  4519. orbe.Size = vt(1,1,1)
  4520. local orbmish2 = orbe.SizeMesh
  4521. orbmish2.Scale = vt(0,0,0)
  4522. orbmish2.MeshType = "Sphere"
  4523. orbe.Color = Color3.new(r/255,g/255,b/255)
  4524.  
  4525. rngb:Destroy()
  4526. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4527. local scaled = 1
  4528. for i = 0,5,0.1 do
  4529. swait()
  4530. scaled = scaled - 0.02
  4531. if rainbowmode == true then
  4532. orbe.Color = Color3.new(r/255,g/255,b/255)
  4533. end
  4534. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4535. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4536. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4537. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4538. sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
  4539. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4540. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4541. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4542. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4543. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4544. 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(-2.5),math.rad(10),math.rad(0)),.3)
  4545. RootPart.CFrame = FaceMouse()[1]
  4546. end]]--
  4547. for i = 0,5,0.1 do
  4548. swait()
  4549. if rainbowmode == true then
  4550. orbe.Color = Color3.new(r/255,g/255,b/255)
  4551. end
  4552. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4553. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4554. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4555. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4556. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4557. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4558. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4559. 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(-2.5),math.rad(10),math.rad(0)),.3)
  4560. RootPart.CFrame = FaceMouse()[1]
  4561. end
  4562. orbe.Transparency = 1
  4563. orb.Transparency = 1
  4564. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4565. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  4566. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  4567. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4568.  
  4569. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4570. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  4571. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4572. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  4573. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  4574. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  4575. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  4576. local xd= Instance.new("Sound",char)
  4577. xd.SoundId = "rbxassetid://445796828"
  4578. xd.Pitch = 0.75
  4579. xd.Looped = true
  4580. xd.Volume = 1.25
  4581. xd:Play()
  4582. local a = Instance.new("Part",Character)
  4583. a.Name = "Direction"
  4584. a.Anchored = true
  4585. a.BrickColor = bc("Alder")
  4586. a.Color = MAINRUINCOLOR.Color
  4587. a.Material = "Neon"
  4588. a.Transparency = 0.5
  4589. a.Shape = "Cylinder"
  4590. a.CanCollide = false
  4591. local a2 = Instance.new("Part",Character)
  4592. a2.Name = "Direction"
  4593. a2.Anchored = true
  4594. a2.BrickColor = bc("New Yeller")
  4595. a2.Color = MAINRUINCOLOR.Color
  4596. a2.Material = "Neon"
  4597. a2.Transparency = 0.5
  4598. a2.Shape = "Cylinder"
  4599. a2.CanCollide = false
  4600. local ba = Instance.new("Part",Character)
  4601. ba.Name = "HitDirect"
  4602. ba.Anchored = true
  4603. ba.BrickColor = bc("Cool yellow")
  4604. ba.Material = "Neon"
  4605. ba.Transparency = 1
  4606. ba.CanCollide = false
  4607. local ray = Ray.new(
  4608. orb.CFrame.p, -- origin
  4609. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4610. )
  4611. local ignore = Character
  4612. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4613. a.BottomSurface = 10
  4614. a.TopSurface = 10
  4615. a2.BottomSurface = 10
  4616. a2.TopSurface = 10
  4617. local distance = (orb.CFrame.p - position).magnitude
  4618. a.Size = Vector3.new(distance, 1, 1)
  4619. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4620. a2.Size = Vector3.new(distance, 1, 1)
  4621. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4622. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4623. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4624. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4625. game:GetService("Debris"):AddItem(a, 60)
  4626. game:GetService("Debris"):AddItem(a2, 60)
  4627. game:GetService("Debris"):AddItem(ba, 60)
  4628. local outerscale = 0
  4629. local msh = Instance.new("SpecialMesh",a)
  4630. msh.MeshType = "Cylinder"
  4631. msh.Scale = vt(1,0,0)
  4632. local msh2 = Instance.new("SpecialMesh",a2)
  4633. msh2.MeshType = "Cylinder"
  4634. msh2.Scale = vt(1,0,0)
  4635. for i = 0,2,0.1 do
  4636. swait()
  4637. CameraEnshaking(1,1)
  4638. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  4639. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  4640. outerscale = outerscale - 0.015
  4641. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4642. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4643. ray = Ray.new(
  4644. orb.CFrame.p, -- origin
  4645. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4646. )
  4647. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4648. distance = (orb.CFrame.p - position).magnitude
  4649. if typrot == 1 then
  4650. rotation = rotation + 2.5
  4651. elseif typrot == 2 then
  4652. rotation = rotation - 2.5
  4653. end
  4654. RootPart.CFrame = FaceMouse()[1]
  4655. a.Size = Vector3.new(distance, 1, 1)
  4656. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4657. a2.Size = Vector3.new(distance, 1, 1)
  4658. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4659. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4660. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4661. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4662. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4663. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4664. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4665. end
  4666. for z = 0, 2 do
  4667. for i = 0,4,0.1 do
  4668. swait()
  4669. CameraEnshaking(1,1)
  4670. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4671. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4672. outerscale = outerscale + 0.015
  4673. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4674. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4675. ray = Ray.new(
  4676. orb.CFrame.p, -- origin
  4677. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4678. )
  4679. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4680. distance = (orb.CFrame.p - position).magnitude
  4681. if typrot == 1 then
  4682. rotation = rotation + 2.5
  4683. elseif typrot == 2 then
  4684. rotation = rotation - 2.5
  4685. end
  4686. RootPart.CFrame = FaceMouse()[1]
  4687. a.Size = Vector3.new(distance, 1, 1)
  4688. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4689. a2.Size = Vector3.new(distance, 1, 1)
  4690. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4691. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4692. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4693. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4694. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4695. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4696. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4697. end
  4698. for i = 0,4,0.1 do
  4699. swait()
  4700. CameraEnshaking(1,1)
  4701. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4702. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4703. outerscale = outerscale - 0.015
  4704. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4705. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4706. ray = Ray.new(
  4707. orb.CFrame.p, -- origin
  4708. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4709. )
  4710. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4711. distance = (orb.CFrame.p - position).magnitude
  4712. if typrot == 1 then
  4713. rotation = rotation + 2.5
  4714. elseif typrot == 2 then
  4715. rotation = rotation - 2.5
  4716. end
  4717. RootPart.CFrame = FaceMouse()[1]
  4718. a.Size = Vector3.new(distance, 1, 1)
  4719. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4720. a2.Size = Vector3.new(distance, 1, 1)
  4721. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4722. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4723. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4724. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4725. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4726. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4727. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4728. end
  4729. end
  4730. for i = 0,4,0.1 do
  4731. swait()
  4732. CameraEnshaking(1,1)
  4733. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4734. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4735. xd.Volume = xd.Volume - 0.025
  4736. a.Transparency = a.Transparency + 0.025
  4737. a2.Transparency = a2.Transparency + 0.025
  4738. outerscale = outerscale - 0.015
  4739. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4740. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4741. ray = Ray.new(
  4742. orb.CFrame.p, -- origin
  4743. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4744. )
  4745. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4746. distance = (orb.CFrame.p - position).magnitude
  4747. if typrot == 1 then
  4748. rotation = rotation + 2.5
  4749. elseif typrot == 2 then
  4750. rotation = rotation - 2.5
  4751. end
  4752. RootPart.CFrame = FaceMouse()[1]
  4753. a.Size = Vector3.new(distance, 1, 1)
  4754. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4755. a2.Size = Vector3.new(distance, 1, 1)
  4756. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4757. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4758. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4759. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4760. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4761. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4762. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4763. end
  4764. xd:Destroy()
  4765. a:Destroy()
  4766. a2:Destroy()
  4767. ba:Destroy()
  4768. orb:Destroy()
  4769. orbe:Destroy()
  4770. attack = false
  4771. end
  4772.  
  4773.  
  4774. function resetmode()
  4775. rainbowmode = false
  4776. chaosmode = false
  4777. tl1.Enabled = false
  4778. tl2.Enabled = false
  4779. tl3.Enabled = false
  4780. ModeOfGlitch = 1
  4781. storehumanoidWS = 16
  4782. coroutine.resume(coroutine.create(function()
  4783. attack = true
  4784. hum.WalkSpeed = 0
  4785. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  4786. for i = 0,4,0.1 do
  4787. swait()
  4788. sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
  4789. 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(30)),.5)
  4790. 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(-30)),.5)
  4791. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.5)
  4792. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.5)
  4793. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  4794. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  4795. end
  4796. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  4797. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  4798. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  4799. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  4800. RecolorTextAndRename("Normal",Color3.new(0,0,0),Color3.new(40/255, 127/255, 71/255))
  4801. CameraEnshaking(5,2.5)
  4802. MAINRUINCOLOR = BrickColor.new("Dark green")
  4803. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4804. for i = 0, 49 do
  4805. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  4806. end
  4807. for i = 0,3,0.1 do
  4808. sphereMK(2.5,-1,"Add",root.CFrame*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,MAINRUINCOLOR,0)
  4809. end
  4810. for i, v in pairs(mw2:GetChildren()) do
  4811. if v:IsA("Part") then
  4812. v.BrickColor = BrickColor.new("Dark green")
  4813. v.Material = "Neon"
  4814. end
  4815. end
  4816. for i, v in pairs(mw1:GetChildren()) do
  4817. if v:IsA("Part") then
  4818. v.Transparency = 1
  4819. v.BrickColor = BrickColor.new("Dark green")
  4820. v.Material = "Neon"
  4821. end
  4822. end
  4823. for i, v in pairs(m:GetChildren()) do
  4824. if v:IsA("Part") then
  4825. v.BrickColor = BrickColor.new("Really black")
  4826. v.Material = "Glass"
  4827. end
  4828. end
  4829. for i, v in pairs(m2:GetChildren()) do
  4830. if v:IsA("Part") then
  4831. v.BrickColor = BrickColor.new("Navy blue")
  4832. v.Material = "Granite"
  4833. end
  4834. end
  4835. for i, v in pairs(m3:GetChildren()) do
  4836. if v:IsA("Part") then
  4837. v.BrickColor = BrickColor.new("Dark green")
  4838. v.Material = "Neon"
  4839. end
  4840. end
  4841. for i, v in pairs(extrawingmod1:GetChildren()) do
  4842. if v:IsA("Part") then
  4843. v.Transparency = 1
  4844. v.BrickColor = BrickColor.new("White")
  4845. v.Material = "Neon"
  4846. end
  4847. end
  4848. for i, v in pairs(extrawingmod2:GetChildren()) do
  4849. if v:IsA("Part") then
  4850. v.Transparency = 1
  4851. v.BrickColor = BrickColor.new("White")
  4852. v.Material = "Neon"
  4853. end
  4854. end
  4855. for i = 0,2,0.1 do
  4856. swait()
  4857. 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(-30)),.5)
  4858. 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(30)),.5)
  4859. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  4860. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  4861. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  4862. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  4863. end
  4864. hum.WalkSpeed = storehumanoidWS
  4865. attack = false
  4866. end))
  4867. newTheme("rbxassetid://1547042045",48.6,1,0.3)
  4868. end
  4869.  
  4870. function attackone()
  4871. attack = true
  4872. for i = 0,1,0.1 do
  4873. swait()
  4874. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  4875. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  4876. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4877. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4878. RH.C0=clerp(RH.C0,cf(1,-1 - 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)),.2)
  4879. 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(10)),.2)
  4880. end
  4881. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  4882.  
  4883. local hitb = Instance.new("Part", char)
  4884. hitb.Anchored = true
  4885. hitb.CanCollide = false
  4886. hitb.FormFactor = 3
  4887. hitb.Name = "Ring"
  4888. hitb.Material = "Neon"
  4889. hitb.Size = Vector3.new(1, 1, 1)
  4890. hitb.Transparency = 1
  4891. hitb.TopSurface = 0
  4892. hitb.BottomSurface = 0
  4893. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  4894. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  4895. hitb:Destroy()
  4896. for i = 0,1,0.1 do
  4897. swait()
  4898. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  4899. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  4900. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  4901. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  4902. RH.C0=clerp(RH.C0,cf(1,-1 - 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(-40)),.4)
  4903. 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(-10)),.4)
  4904. end
  4905.  
  4906. attack = false
  4907. end
  4908.  
  4909. function attacktwo()
  4910. attack = true
  4911. for i = 0,1,0.1 do
  4912. swait()
  4913. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  4914. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  4915. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4916. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4917. RH.C0=clerp(RH.C0,cf(1,-1 - 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)),.2)
  4918. 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(10)),.2)
  4919. end
  4920. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  4921. local hitb = Instance.new("Part", char)
  4922. hitb.Anchored = true
  4923. hitb.CanCollide = false
  4924. hitb.FormFactor = 3
  4925. hitb.Name = "Ring"
  4926. hitb.Material = "Neon"
  4927. hitb.Size = Vector3.new(1, 1, 1)
  4928. hitb.Transparency = 1
  4929. hitb.TopSurface = 0
  4930. hitb.BottomSurface = 0
  4931. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  4932. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  4933. hitb:Destroy()
  4934. for i = 0,1,0.1 do
  4935. swait()
  4936. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  4937. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  4938. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  4939. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  4940. RH.C0=clerp(RH.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(-40)),.4)
  4941. 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(-10)),.4)
  4942. end
  4943. attack = false
  4944. end
  4945.  
  4946. function attackthree()
  4947. attack = true
  4948. for i = 0,1,0.1 do
  4949. swait()
  4950. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  4951. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  4952. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  4953. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4954. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4955. 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(-2.5),math.rad(10),math.rad(0)),.3)
  4956. end
  4957. local distlook = 5
  4958. for i = 0, 4 do
  4959. swait(2)
  4960. CameraEnshaking(2,3)
  4961. local hite = Instance.new("Part", char)
  4962. hite.Anchored = true
  4963. hite.CanCollide = false
  4964. hite.FormFactor = 3
  4965. hite.Name = "Ring"
  4966. hite.Material = "Neon"
  4967. hite.Size = Vector3.new(1, 1, 1)
  4968. hite.Transparency = 1
  4969. hite.TopSurface = 0
  4970. hite.BottomSurface = 0
  4971. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  4972. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  4973. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  4974. MagniDamage(hite, 10, 15,35, 0, "Normal")
  4975. for i = 0, 2 do
  4976. sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  4977. sphereMK(3,0.2,"Add",hite.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,5,-0.005,MAINRUINCOLOR,0)
  4978. sphereMK(6,0.35,"Add",hite.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,5,-0.005,MAINRUINCOLOR,0)
  4979. end
  4980. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  4981. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  4982. game:GetService("Debris"):AddItem(hite, 5)
  4983. distlook = distlook + 10
  4984. end
  4985. attack = false
  4986. end
  4987.  
  4988. local ActiveGia = false
  4989. function THEHELLITSTHATBIG()
  4990. ActiveGia = true
  4991. attack = true
  4992. hum.WalkSpeed = 0
  4993. for i = 0,2,0.1 do
  4994. swait()
  4995. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4996. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4997. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4998. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4999. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  5000. 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(-2.5),math.rad(10),math.rad(20)),.2)
  5001. end
  5002. for i = 0,1,0.1 do
  5003. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5004. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5005. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5006. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5007. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5008. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5009. end
  5010. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  5011. secrleg.Transparency = 0.5
  5012. seclleg.Transparency = 0.5
  5013. secrarm.Transparency = 0.5
  5014. seclarm.Transparency = 0.5
  5015. seched.Transparency = 0.5
  5016. sectors.Transparency = 0.5
  5017. for i = 0,25,0.1 do
  5018. swait()
  5019. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
  5020. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5021. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.025)
  5022. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),0.025)
  5023. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5024. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5025. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5026. end
  5027. --[[secrleg.Transparency = 1
  5028. seclleg.Transparency = 1
  5029. secrarm.Transparency = 1
  5030. seclarm.Transparency = 1
  5031. seched.Transparency = 1
  5032. sectors.Transparency = 1]]--
  5033. torsweld.Part0 = root
  5034. hum.WalkSpeed = storehumanoidWS
  5035. attack = false
  5036. end
  5037.  
  5038. function removelol()
  5039. ActiveGia = false
  5040. attack = true
  5041. hum.WalkSpeed = 0
  5042. for i = 0,2,0.1 do
  5043. swait()
  5044. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5045. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5046. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5047. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5048. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  5049. 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(-2.5),math.rad(10),math.rad(20)),.2)
  5050. end
  5051. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5052. for i = 0,25,0.1 do
  5053. swait()
  5054. secrleg.Transparency = secrleg.Transparency + 0.00225
  5055. seclleg.Transparency = secrleg.Transparency
  5056. secrarm.Transparency = secrleg.Transparency
  5057. seclarm.Transparency = secrleg.Transparency
  5058. seched.Transparency = secrleg.Transparency
  5059. sectors.Transparency = secrleg.Transparency
  5060. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
  5061. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5062. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(20)),0.025)
  5063. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),0.025)
  5064. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5065. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5066. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5067. end
  5068. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5069. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5070. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5071. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5072. secrleg.Transparency = 1
  5073. seclleg.Transparency = 1
  5074. secrarm.Transparency = 1
  5075. seclarm.Transparency = 1
  5076. seched.Transparency = 1
  5077. sectors.Transparency = 1
  5078. torsweld.Part0 = root
  5079. hum.WalkSpeed = storehumanoidWS
  5080. attack = false
  5081. end
  5082.  
  5083. function FinalCalamity()
  5084. end
  5085.  
  5086. local attacktype = 1
  5087. mouse.Button1Down:connect(function()
  5088. if attack == false and attacktype == 1 then
  5089. attacktype = 2
  5090. attackone()
  5091. elseif attack == false and attacktype == 2 then
  5092. attacktype = 3
  5093. attacktwo()
  5094. elseif attack == false and attacktype == 3 then
  5095. attacktype = 1
  5096. attackthree()
  5097. elseif attack == false and attacktype == 4 then
  5098. attacktype = 1
  5099. --attackfour()
  5100. end
  5101. end)
  5102. mouse.KeyDown:connect(function(k)
  5103. if k == "1" and attack == false and ModeOfGlitch ~= 2 then
  5104. ModeOfGlitch = 2
  5105. storehumanoidWS = 16
  5106. hum.WalkSpeed = 16
  5107. rainbowmode = false
  5108. chaosmode = false
  5109. tl1.Enabled = false
  5110. tl2.Enabled = false
  5111. tl3.Enabled = false
  5112. RecolorTextAndRename("Machinery",Color3.new(196/255, 40/255, 28/255),Color3.new(255/255, 89/255, 89/255))
  5113. newTheme("rbxassetid://409475133",0,1,0.3)
  5114. MAINRUINCOLOR = BrickColor.new("Bright red")
  5115. for i, v in pairs(mw2:GetChildren()) do
  5116. if v:IsA("Part") then
  5117. v.BrickColor = MAINRUINCOLOR
  5118. v.Material = "Neon"
  5119. end
  5120. end
  5121. for i, v in pairs(mw1:GetChildren()) do
  5122. if v:IsA("Part") then
  5123. v.Transparency = 1
  5124. v.BrickColor = MAINRUINCOLOR
  5125. v.Material = "Neon"
  5126. end
  5127. end
  5128. for i, v in pairs(m:GetChildren()) do
  5129. if v:IsA("Part") then
  5130. v.BrickColor = BrickColor.new("White")
  5131. v.Material = "Ice"
  5132. end
  5133. end
  5134. for i, v in pairs(m2:GetChildren()) do
  5135. if v:IsA("Part") then
  5136. v.BrickColor = BrickColor.new("Pastel light blue")
  5137. v.Material = "Glass"
  5138. end
  5139. end
  5140. for i, v in pairs(m3:GetChildren()) do
  5141. if v:IsA("Part") then
  5142. v.BrickColor = BrickColor.new("Bright red")
  5143. v.Material = "Neon"
  5144. end
  5145. end
  5146. for i, v in pairs(extrawingmod1:GetChildren()) do
  5147. if v:IsA("Part") then
  5148. v.Transparency = 1
  5149. v.BrickColor = BrickColor.new("White")
  5150. v.Material = "Neon"
  5151. end
  5152. end
  5153. for i, v in pairs(extrawingmod2:GetChildren()) do
  5154. if v:IsA("Part") then
  5155. v.Transparency = 1
  5156. v.BrickColor = BrickColor.new("White")
  5157. v.Material = "Neon"
  5158. end
  5159. end
  5160. elseif k == "1" and attack == false and ModeOfGlitch == 2 then
  5161. resetmode()
  5162. end
  5163. if k == "2" and attack == false and ModeOfGlitch ~= 3 then
  5164. ModeOfGlitch = 3
  5165. storehumanoidWS = 16
  5166. hum.WalkSpeed = 16
  5167. rainbowmode = false
  5168. chaosmode = false
  5169. tl1.Enabled = false
  5170. tl2.Enabled = false
  5171. tl3.Enabled = false
  5172. RecolorTextAndRename("Below-Zero",Color3.new(1,1,1),Color3.new(0,1,1))
  5173. newTheme("rbxassetid://1634231515",58.15,0.98,1.25)
  5174. MAINRUINCOLOR = BrickColor.new("Bright blue")
  5175. for i, v in pairs(mw2:GetChildren()) do
  5176. if v:IsA("Part") then
  5177. v.BrickColor = MAINRUINCOLOR
  5178. v.Material = "Neon"
  5179. end
  5180. end
  5181. for i, v in pairs(mw1:GetChildren()) do
  5182. if v:IsA("Part") then
  5183. v.Transparency = 1
  5184. v.BrickColor = MAINRUINCOLOR
  5185. v.Material = "Neon"
  5186. end
  5187. end
  5188. for i, v in pairs(m:GetChildren()) do
  5189. if v:IsA("Part") then
  5190. v.BrickColor = BrickColor.new("Black")
  5191. v.Material = "Ice"
  5192. end
  5193. end
  5194. for i, v in pairs(m2:GetChildren()) do
  5195. if v:IsA("Part") then
  5196. v.BrickColor = BrickColor.new("Dark indigo")
  5197. v.Material = "Glass"
  5198. end
  5199. end
  5200. for i, v in pairs(m3:GetChildren()) do
  5201. if v:IsA("Part") then
  5202. v.BrickColor = BrickColor.new("Bright blue")
  5203. v.Material = "Neon"
  5204. end
  5205. end
  5206. for i, v in pairs(extrawingmod1:GetChildren()) do
  5207. if v:IsA("Part") then
  5208. v.Transparency = 1
  5209. v.BrickColor = BrickColor.new("White")
  5210. v.Material = "Neon"
  5211. end
  5212. end
  5213. for i, v in pairs(extrawingmod2:GetChildren()) do
  5214. if v:IsA("Part") then
  5215. v.Transparency = 1
  5216. v.BrickColor = BrickColor.new("White")
  5217. v.Material = "Neon"
  5218. end
  5219. end
  5220. elseif k == "2" and attack == false and ModeOfGlitch == 3 then
  5221. resetmode()
  5222. end
  5223. if k == "3" and attack == false and ModeOfGlitch ~= 4 then
  5224. ModeOfGlitch = 4
  5225. storehumanoidWS = 16
  5226. hum.WalkSpeed = 16
  5227. rainbowmode = false
  5228. chaosmode = false
  5229. tl1.Enabled = true
  5230. tl2.Enabled = true
  5231. tl3.Enabled = true
  5232. RecolorTextAndRename("Infused",Color3.new(0,0,0), Color3.new(245/255, 205/255, 48/255))
  5233. newTheme("rbxassetid://539526132",0,1,1)
  5234. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  5235. for i, v in pairs(mw2:GetChildren()) do
  5236. if v:IsA("Part") then
  5237. v.BrickColor = MAINRUINCOLOR
  5238. v.Material = "Neon"
  5239. end
  5240. end
  5241. for i, v in pairs(mw1:GetChildren()) do
  5242. if v:IsA("Part") then
  5243. v.Transparency = 0
  5244. v.BrickColor = MAINRUINCOLOR
  5245. v.Material = "Neon"
  5246. end
  5247. end
  5248. for i, v in pairs(m:GetChildren()) do
  5249. if v:IsA("Part") then
  5250. v.BrickColor = BrickColor.new("Black")
  5251. v.Material = "Neon"
  5252. end
  5253. end
  5254. for i, v in pairs(m2:GetChildren()) do
  5255. if v:IsA("Part") then
  5256. v.BrickColor = BrickColor.random()
  5257. v.Material = "Neon"
  5258. end
  5259. end
  5260. for i, v in pairs(m3:GetChildren()) do
  5261. if v:IsA("Part") then
  5262. v.BrickColor = BrickColor.new("Black")
  5263. v.Material = "Neon"
  5264. end
  5265. end
  5266. for i, v in pairs(extrawingmod1:GetChildren()) do
  5267. if v:IsA("Part") then
  5268. v.Transparency = 1
  5269. v.BrickColor = BrickColor.new("White")
  5270. v.Material = "Neon"
  5271. end
  5272. end
  5273. for i, v in pairs(extrawingmod2:GetChildren()) do
  5274. if v:IsA("Part") then
  5275. v.Transparency = 1
  5276. v.BrickColor = BrickColor.new("White")
  5277. v.Material = "Neon"
  5278. end
  5279. end
  5280. elseif k == "3" and attack == false and ModeOfGlitch == 4 then
  5281. resetmode()
  5282. end
  5283. if k == "4" and attack == false and ModeOfGlitch ~= 5 then
  5284. ModeOfGlitch = 5
  5285. storehumanoidWS = 16
  5286. hum.WalkSpeed = 16
  5287. rainbowmode = false
  5288. chaosmode = false
  5289. tl1.Enabled = true
  5290. tl2.Enabled = true
  5291. tl3.Enabled = true
  5292. RecolorTextAndRename("Cyber",Color3.new(0,0,0),Color3.new(0,1,1))
  5293. newTheme("rbxassetid://170282324",0,1,1)
  5294. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5295. for i, v in pairs(mw2:GetChildren()) do
  5296. if v:IsA("Part") then
  5297. v.BrickColor = MAINRUINCOLOR
  5298. v.Material = "Neon"
  5299. end
  5300. end
  5301. for i, v in pairs(mw1:GetChildren()) do
  5302. if v:IsA("Part") then
  5303. v.Transparency = 0
  5304. v.BrickColor = MAINRUINCOLOR
  5305. v.Material = "Neon"
  5306. end
  5307. end
  5308. for i, v in pairs(m:GetChildren()) do
  5309. if v:IsA("Part") then
  5310. v.BrickColor = BrickColor.new("Cool yellow")
  5311. v.Material = "Ice"
  5312. end
  5313. end
  5314. for i, v in pairs(m2:GetChildren()) do
  5315. if v:IsA("Part") then
  5316. v.BrickColor = BrickColor.new("Bright yellow")
  5317. v.Material = "Ice"
  5318. end
  5319. end
  5320. for i, v in pairs(m3:GetChildren()) do
  5321. if v:IsA("Part") then
  5322. v.BrickColor = BrickColor.new("Bright yellow")
  5323. v.Material = "Neon"
  5324. end
  5325. end
  5326. for i, v in pairs(extrawingmod1:GetChildren()) do
  5327. if v:IsA("Part") then
  5328. v.Transparency = 1
  5329. v.BrickColor = BrickColor.new("White")
  5330. v.Material = "Neon"
  5331. end
  5332. end
  5333. for i, v in pairs(extrawingmod2:GetChildren()) do
  5334. if v:IsA("Part") then
  5335. v.Transparency = 1
  5336. v.BrickColor = BrickColor.new("White")
  5337. v.Material = "Neon"
  5338. end
  5339. end
  5340. elseif k == "4" and attack == false and ModeOfGlitch == 5 then
  5341. resetmode()
  5342. end
  5343. if k == "5" and attack == false and ModeOfGlitch ~= 6 then
  5344. ModeOfGlitch = 6
  5345. storehumanoidWS = 13
  5346. hum.WalkSpeed = 13
  5347. rainbowmode = false
  5348. chaosmode = false
  5349. tl1.Enabled = true
  5350. tl2.Enabled = true
  5351. tl3.Enabled = true
  5352. RecolorTextAndRename("ControlledBR",Color3.new(0,0,0),Color3.new(1, 89/255, 89/255))
  5353. newTheme("rbxassetid://407749940",0,1,1)
  5354. MAINRUINCOLOR = BrickColor.new("Dark red")
  5355. for i, v in pairs(mw2:GetChildren()) do
  5356. if v:IsA("Part") then
  5357. v.BrickColor = MAINRUINCOLOR
  5358. v.Material = "Neon"
  5359. end
  5360. end
  5361. for i, v in pairs(mw1:GetChildren()) do
  5362. if v:IsA("Part") then
  5363. v.Transparency = 0
  5364. v.BrickColor = MAINRUINCOLOR
  5365. v.Material = "Neon"
  5366. end
  5367. end
  5368. for i, v in pairs(m:GetChildren()) do
  5369. if v:IsA("Part") then
  5370. v.BrickColor = BrickColor.new("White")
  5371. v.Material = "Ice"
  5372. end
  5373. end
  5374. for i, v in pairs(m2:GetChildren()) do
  5375. if v:IsA("Part") then
  5376. v.BrickColor = BrickColor.new("Really black")
  5377. v.Material = "Ice"
  5378. end
  5379. end
  5380. for i, v in pairs(m3:GetChildren()) do
  5381. if v:IsA("Part") then
  5382. v.BrickColor = BrickColor.new("White")
  5383. v.Material = "Neon"
  5384. end
  5385. end
  5386. for i, v in pairs(extrawingmod1:GetChildren()) do
  5387. if v:IsA("Part") then
  5388. v.Transparency = 1
  5389. v.BrickColor = BrickColor.new("White")
  5390. v.Material = "Neon"
  5391. end
  5392. end
  5393. for i, v in pairs(extrawingmod2:GetChildren()) do
  5394. if v:IsA("Part") then
  5395. v.Transparency = 1
  5396. v.BrickColor = BrickColor.new("White")
  5397. v.Material = "Neon"
  5398. end
  5399. end
  5400. elseif k == "5" and attack == false and ModeOfGlitch == 6 then
  5401. resetmode()
  5402. end
  5403. if k == "8" and attack == false and ModeOfGlitch ~= 6 then
  5404. ModeOfGlitch = 69
  5405. storehumanoidWS = 16
  5406. hum.WalkSpeed = 16
  5407. rainbowmode = false
  5408. chaosmode = false
  5409. tl1.Enabled = true
  5410. tl2.Enabled = true
  5411. tl3.Enabled = true
  5412. RecolorTextAndRename("Balance",Color3.new(1,1,1),Color3.new(0,0,0))
  5413. newTheme("rbxassetid://933385346",0,1,1)
  5414. MAINRUINCOLOR = BrickColor.new("Really black")
  5415. for i, v in pairs(mw2:GetChildren()) do
  5416. if v:IsA("Part") then
  5417. v.BrickColor = BrickColor.new("White")
  5418. v.Material = "Neon"
  5419. end
  5420. end
  5421. for i, v in pairs(mw1:GetChildren()) do
  5422. if v:IsA("Part") then
  5423. v.Transparency = 0
  5424. v.BrickColor = BrickColor.new("Really black")
  5425. v.Material = "Neon"
  5426. end
  5427. end
  5428. for i, v in pairs(m:GetChildren()) do
  5429. if v:IsA("Part") then
  5430. v.BrickColor = BrickColor.new("White")
  5431. v.Material = "Ice"
  5432. end
  5433. end
  5434. for i, v in pairs(m2:GetChildren()) do
  5435. if v:IsA("Part") then
  5436. v.BrickColor = BrickColor.new("Really black")
  5437. v.Material = "Ice"
  5438. end
  5439. end
  5440. for i, v in pairs(m3:GetChildren()) do
  5441. if v:IsA("Part") then
  5442. v.BrickColor = BrickColor.new("White")
  5443. v.Material = "Neon"
  5444. end
  5445. end
  5446. for i, v in pairs(extrawingmod1:GetChildren()) do
  5447. if v:IsA("Part") then
  5448. v.Transparency = 1
  5449. v.BrickColor = BrickColor.new("White")
  5450. v.Material = "Neon"
  5451. end
  5452. end
  5453. for i, v in pairs(extrawingmod2:GetChildren()) do
  5454. if v:IsA("Part") then
  5455. v.Transparency = 1
  5456. v.BrickColor = BrickColor.new("White")
  5457. v.Material = "Neon"
  5458. end
  5459. end
  5460. elseif k == "8" and attack == false and ModeOfGlitch == 69 then
  5461. resetmode()
  5462. end
  5463. if k == "6" and attack == false and ModeOfGlitch ~= 6127843 then
  5464. ModeOfGlitch = 6127843
  5465. storehumanoidWS = 16
  5466. hum.WalkSpeed = 16
  5467. rainbowmode = false
  5468. chaosmode = false
  5469. tl1.Enabled = true
  5470. tl2.Enabled = true
  5471. tl3.Enabled = true
  5472. RecolorTextAndRename("Such Wow",Color3.new(163/255, 162/255, 165/255),Color3.new(253/255, 234/255, 141/255))
  5473. newTheme("rbxassetid://150794704",0,1,1)
  5474. MAINRUINCOLOR = BrickColor.new("Cool yellow")
  5475. for i, v in pairs(mw2:GetChildren()) do
  5476. if v:IsA("Part") then
  5477. v.BrickColor = MAINRUINCOLOR
  5478. v.Material = "Neon"
  5479. end
  5480. end
  5481. for i, v in pairs(mw1:GetChildren()) do
  5482. if v:IsA("Part") then
  5483. v.Transparency = 0
  5484. v.BrickColor = MAINRUINCOLOR
  5485. v.Material = "Neon"
  5486. end
  5487. end
  5488. for i, v in pairs(m:GetChildren()) do
  5489. if v:IsA("Part") then
  5490. v.BrickColor = BrickColor.new("White")
  5491. v.Material = "Neon"
  5492. end
  5493. end
  5494. for i, v in pairs(m2:GetChildren()) do
  5495. if v:IsA("Part") then
  5496. v.BrickColor = BrickColor.new("White")
  5497. v.Material = "Neon"
  5498. end
  5499. end
  5500. for i, v in pairs(m3:GetChildren()) do
  5501. if v:IsA("Part") then
  5502. v.BrickColor = BrickColor.new("White")
  5503. v.Material = "Neon"
  5504. end
  5505. end
  5506. for i, v in pairs(extrawingmod1:GetChildren()) do
  5507. if v:IsA("Part") then
  5508. v.Transparency = 1
  5509. v.BrickColor = BrickColor.new("White")
  5510. v.Material = "Neon"
  5511. end
  5512. end
  5513. for i, v in pairs(extrawingmod2:GetChildren()) do
  5514. if v:IsA("Part") then
  5515. v.Transparency = 1
  5516. v.BrickColor = BrickColor.new("White")
  5517. v.Material = "Neon"
  5518. end
  5519. end
  5520. elseif k == "6" and attack == false and ModeOfGlitch == 6127843 then
  5521. resetmode()
  5522. end
  5523. if k == "7" and attack == false and ModeOfGlitch ~= 1000000 then
  5524. ModeOfGlitch = 1000000
  5525. storehumanoidWS = 16
  5526. hum.WalkSpeed = 16
  5527. rainbowmode = false
  5528. chaosmode = false
  5529. tl1.Enabled = true
  5530. tl2.Enabled = true
  5531. tl3.Enabled = true
  5532. RecolorTextAndRename("Lunar",Color3.new(18/255, 238/255, 212/255),Color3.new(4/255, 175/255, 236/255))
  5533. newTheme("rbxassetid://561833161",0,1,1)
  5534. MAINRUINCOLOR = BrickColor.new("Teal")
  5535. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5536. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5537. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5538. for i, v in pairs(mw2:GetChildren()) do
  5539. if v:IsA("Part") then
  5540. v.BrickColor = MAINRUINCOLOR
  5541. v.Material = "Neon"
  5542. end
  5543. end
  5544. for i, v in pairs(mw1:GetChildren()) do
  5545. if v:IsA("Part") then
  5546. v.Transparency = 0
  5547. v.BrickColor = MAINRUINCOLOR
  5548. v.Material = "Neon"
  5549. end
  5550. end
  5551. for i, v in pairs(m:GetChildren()) do
  5552. if v:IsA("Part") then
  5553. v.Color = Color3.new(0.5,0,1)
  5554. v.Material = "Neon"
  5555. end
  5556. end
  5557. for i, v in pairs(m2:GetChildren()) do
  5558. if v:IsA("Part") then
  5559. v.Color = Color3.new(0.25,0,1)
  5560. v.Material = "Neon"
  5561. end
  5562. end
  5563. for i, v in pairs(m3:GetChildren()) do
  5564. if v:IsA("Part") then
  5565. v.Color = Color3.new(0.45,0,1)
  5566. v.Material = "Neon"
  5567. end
  5568. end
  5569. for i, v in pairs(extrawingmod1:GetChildren()) do
  5570. if v:IsA("Part") then
  5571. v.Transparency = 0
  5572. v.Color = MAINRUINCOLOR
  5573. v.Material = "Neon"
  5574. end
  5575. end
  5576. for i, v in pairs(extrawingmod2:GetChildren()) do
  5577. if v:IsA("Part") then
  5578. v.Transparency = 0
  5579. v.Color = MAINRUINCOLOR
  5580. v.Material = "Neon"
  5581. end
  5582. end
  5583. elseif k == "7" and attack == false and ModeOfGlitch == 1000000 then
  5584. resetmode()
  5585. end
  5586. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  5587. newTheme("rbxassetid://1770978966",0,1,1)
  5588. attack = true
  5589. hum.WalkSpeed = 0
  5590. MAINRUINCOLOR = BrickColor.new("Ghost grey")
  5591. for i = 0, 0, 0.1 do
  5592. swait()
  5593. sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100)
  5594. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5595. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5596. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5597. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5598. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5599. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5600. end
  5601. CameraEnshaking(1,1)
  5602. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5603. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5604. wait(0.55)
  5605. CameraEnshaking(1,2)
  5606. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5607. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5608. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5609. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5610. wait(0.55)
  5611. CameraEnshaking(1,3)
  5612. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5613. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5614. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5615. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5616. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5617. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5618. wait(0.55)
  5619. CameraEnshaking(10,5)
  5620. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5621. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5622. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5623. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5624. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5625. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5626. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5627. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5628. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5629. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5630. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5631. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5632. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5633. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5634. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5635. for i = 0, 49 do
  5636. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  5637. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  5638. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  5639. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  5640. end
  5641. ModeOfGlitch = 12345678987654321
  5642. storehumanoidWS = 19
  5643. hum.WalkSpeed = 19
  5644. rainbowmode = false
  5645. chaosmode = false
  5646. tl1.Enabled = true
  5647. tl2.Enabled = true
  5648. tl3.Enabled = true
  5649. RecolorTextAndRename("Spirit",Color3.new(1,1,1),Color3.new(163/255, 162/255, 165/255))
  5650. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5651. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5652. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5653. for i, v in pairs(mw2:GetChildren()) do
  5654. if v:IsA("Part") then
  5655. v.BrickColor = MAINRUINCOLOR
  5656. v.Material = "Neon"
  5657. end
  5658. end
  5659. for i, v in pairs(mw1:GetChildren()) do
  5660. if v:IsA("Part") then
  5661. v.Transparency = 0
  5662. v.BrickColor = MAINRUINCOLOR
  5663. v.Material = "Neon"
  5664. end
  5665. end
  5666. for i, v in pairs(m:GetChildren()) do
  5667. if v:IsA("Part") then
  5668. v.Color = Color3.new(0.5,0,1)
  5669. v.Material = "Neon"
  5670. end
  5671. end
  5672. for i, v in pairs(m2:GetChildren()) do
  5673. if v:IsA("Part") then
  5674. v.Color = Color3.new(0.5,0,1)
  5675. v.Material = "Neon"
  5676. end
  5677. end
  5678. for i, v in pairs(m3:GetChildren()) do
  5679. if v:IsA("Part") then
  5680. v.Color = Color3.new(0.5,0,1)
  5681. v.Material = "Neon"
  5682. end
  5683. end
  5684. for i, v in pairs(extrawingmod1:GetChildren()) do
  5685. if v:IsA("Part") then
  5686. v.Transparency = 0
  5687. v.BrickColor = MAINRUINCOLOR
  5688. v.Material = "Neon"
  5689. end
  5690. end
  5691. for i, v in pairs(extrawingmod2:GetChildren()) do
  5692. if v:IsA("Part") then
  5693. v.Transparency = 0
  5694. v.BrickColor = MAINRUINCOLOR
  5695. v.Material = "Neon"
  5696. end
  5697. attack = false
  5698. end
  5699. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  5700. resetmode()
  5701. end
  5702. if k == "m" and attack == false and ModeOfGlitch == 69 and ModeOfGlitch ~= 33 then
  5703. newThemeCust("rbxassetid://919231299",0,1,1)
  5704. attack = true
  5705. hum.WalkSpeed = 0
  5706. MAINRUINCOLOR = BrickColor.new("Ghost grey")
  5707. for i = 0, 0, 0.1 do
  5708. swait()
  5709. sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100)
  5710. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5711. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5712. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5713. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5714. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5715. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5716. end
  5717. CameraEnshaking(1,1)
  5718. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5719. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5720. wait(0.55)
  5721. CameraEnshaking(1,2)
  5722. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5723. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5724. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5725. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5726. wait(0.55)
  5727. CameraEnshaking(1,3)
  5728. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5729. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5730. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5731. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5732. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5733. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5734. wait(0.55)
  5735. CameraEnshaking(10,5)
  5736. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5737. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5738. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5739. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5740. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5741. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5742. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5743. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5744. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5745. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5746. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5747. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5748. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5749. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5750. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5751. for i = 0, 49 do
  5752. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  5753. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  5754. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  5755. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  5756. end
  5757. ModeOfGlitch = 33
  5758. storehumanoidWS = 16
  5759. hum.WalkSpeed = 16
  5760. rainbowmode = false
  5761. chaosmode = true
  5762. tl1.Enabled = true
  5763. tl2.Enabled = true
  5764. tl3.Enabled = true
  5765. RecolorTextAndRename("InSaNe",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  5766. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5767. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5768. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5769. for i, v in pairs(mw2:GetChildren()) do
  5770. if v:IsA("Part") then
  5771. v.BrickColor = MAINRUINCOLOR
  5772. v.Material = "Neon"
  5773. end
  5774. end
  5775. for i, v in pairs(mw1:GetChildren()) do
  5776. if v:IsA("Part") then
  5777. v.Transparency = 0
  5778. v.BrickColor = MAINRUINCOLOR
  5779. v.Material = "Neon"
  5780. end
  5781. end
  5782. for i, v in pairs(m:GetChildren()) do
  5783. if v:IsA("Part") then
  5784. v.Color = Color3.new(0.5,0,1)
  5785. v.Material = "Neon"
  5786. end
  5787. end
  5788. for i, v in pairs(m2:GetChildren()) do
  5789. if v:IsA("Part") then
  5790. v.Color = Color3.new(0.5,0,1)
  5791. v.Material = "Neon"
  5792. end
  5793. end
  5794. for i, v in pairs(m3:GetChildren()) do
  5795. if v:IsA("Part") then
  5796. v.Color = Color3.new(0.5,0,1)
  5797. v.Material = "Neon"
  5798. end
  5799. end
  5800. for i, v in pairs(extrawingmod1:GetChildren()) do
  5801. if v:IsA("Part") then
  5802. v.Transparency = 0
  5803. v.Color = Color3.new(0.5,0,1)
  5804. v.Material = "Neon"
  5805. end
  5806. end
  5807. for i, v in pairs(extrawingmod2:GetChildren()) do
  5808. if v:IsA("Part") then
  5809. v.Transparency = 0
  5810. v.Color = Color3.new(0.5,0,1)
  5811. v.Material = "Neon"
  5812. end
  5813. attack = false
  5814. end
  5815. elseif k == "m" and attack == false and ModeOfGlitch == 33 then
  5816. resetmode()
  5817. end
  5818. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 21 then
  5819. newTheme("rbxassetid://1764195391",0,1,1)
  5820. attack = true
  5821. hum.WalkSpeed = 0
  5822. MAINRUINCOLOR = BrickColor.new("New Yeller")
  5823. for i = 0, 75, 0.1 do
  5824. swait()
  5825. sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100)
  5826. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5827. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5828. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5829. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5830. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5831. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5832. end
  5833. CameraEnshaking(1,1)
  5834. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5835. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5836. wait(0.55)
  5837. CameraEnshaking(1,2)
  5838. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5839. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5840. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5841. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5842. wait(0.55)
  5843. CameraEnshaking(1,3)
  5844. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5845. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5846. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5847. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5848. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5849. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5850. wait(0.55)
  5851. CameraEnshaking(10,5)
  5852. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5853. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5854. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5855. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5856. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5857. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5858. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5859. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5860. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5861. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5862. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5863. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5864. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5865. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5866. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5867. for i = 0, 49 do
  5868. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  5869. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  5870. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  5871. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  5872. end
  5873. ModeOfGlitch = 21
  5874. storehumanoidWS = 16
  5875. hum.WalkSpeed = 16
  5876. rainbowmode = false
  5877. chaosmode = false
  5878. tl1.Enabled = true
  5879. tl2.Enabled = true
  5880. tl3.Enabled = true
  5881. RecolorTextAndRename("Overclocked",Color3.new(0,0,0),Color3.new(255/255, 176/255, 0))
  5882. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5883. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5884. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5885. for i, v in pairs(mw2:GetChildren()) do
  5886. if v:IsA("Part") then
  5887. v.BrickColor = BrickColor.new("Really black")
  5888. v.Material = "Neon"
  5889. end
  5890. end
  5891. for i, v in pairs(mw1:GetChildren()) do
  5892. if v:IsA("Part") then
  5893. v.Transparency = 0
  5894. v.BrickColor = BrickColor.new("Really black")
  5895. v.Material = "Neon"
  5896. end
  5897. end
  5898. for i, v in pairs(m:GetChildren()) do
  5899. if v:IsA("Part") then
  5900. v.Color = Color3.new(0.5,0,1)
  5901. v.Material = "Neon"
  5902. end
  5903. end
  5904. for i, v in pairs(m2:GetChildren()) do
  5905. if v:IsA("Part") then
  5906. v.Color = Color3.new(0.5,0,1)
  5907. v.Material = "Neon"
  5908. end
  5909. end
  5910. for i, v in pairs(m3:GetChildren()) do
  5911. if v:IsA("Part") then
  5912. v.Color = Color3.new(0.5,0,1)
  5913. v.Material = "Neon"
  5914. end
  5915. end
  5916. for i, v in pairs(extrawingmod1:GetChildren()) do
  5917. if v:IsA("Part") then
  5918. v.Transparency = 0
  5919. v.BrickColor = MAINRUINCOLOR
  5920. v.Material = "DiamondPlate"
  5921. end
  5922. end
  5923. for i, v in pairs(extrawingmod2:GetChildren()) do
  5924. if v:IsA("Part") then
  5925. v.Transparency = 0
  5926. v.BrickColor = MAINRUINCOLOR
  5927. v.Material = "DiamondPlate"
  5928. end
  5929. attack = false
  5930. end
  5931. elseif k == "m" and attack == false and ModeOfGlitch == 21 then
  5932. resetmode()
  5933. end
  5934. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  5935. newThemeCust("rbxassetid://1244332148",0,1,1)
  5936. attack = true
  5937. hum.WalkSpeed = 0
  5938. MAINRUINCOLOR = BrickColor.new("Navy blue")
  5939. for i = 0, 33, 0.1 do
  5940. swait()
  5941. sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100)
  5942. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5943. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5944. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5945. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5946. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5947. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5948. end
  5949. CameraEnshaking(1,1)
  5950. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5951. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5952. wait(0.55)
  5953. CameraEnshaking(1,2)
  5954. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5955. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5956. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5957. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5958. wait(0.55)
  5959. CameraEnshaking(1,3)
  5960. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5961. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5962. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5963. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5964. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5965. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5966. wait(0.55)
  5967. CameraEnshaking(10,5)
  5968. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5969. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5970. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5971. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5972. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5973. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5974. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5975. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5976. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5977. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5978. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5979. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5980. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5981. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5982. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5983. for i = 0, 49 do
  5984. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  5985. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  5986. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  5987. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  5988. end
  5989. ModeOfGlitch = 666
  5990. storehumanoidWS = 16
  5991. hum.WalkSpeed = 16
  5992. rainbowmode = false
  5993. chaosmode = false
  5994. tl1.Enabled = true
  5995. tl2.Enabled = true
  5996. tl3.Enabled = true
  5997. RecolorTextAndRename("Pixels",Color3.new(0,1,1),Color3.new(0,0,1))
  5998. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5999. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6000. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6001. for i, v in pairs(mw2:GetChildren()) do
  6002. if v:IsA("Part") then
  6003. v.BrickColor = MAINRUINCOLOR
  6004. v.Material = "Neon"
  6005. end
  6006. end
  6007. for i, v in pairs(mw1:GetChildren()) do
  6008. if v:IsA("Part") then
  6009. v.Transparency = 0
  6010. v.BrickColor = MAINRUINCOLOR
  6011. v.Material = "Neon"
  6012. end
  6013. end
  6014. for i, v in pairs(m:GetChildren()) do
  6015. if v:IsA("Part") then
  6016. v.Color = Color3.new(1,0,0)
  6017. v.Material = "Neon"
  6018. end
  6019. end
  6020. for i, v in pairs(m2:GetChildren()) do
  6021. if v:IsA("Part") then
  6022. v.Color = Color3.new(1,0,0)
  6023. v.Material = "Neon"
  6024. end
  6025. end
  6026. for i, v in pairs(m3:GetChildren()) do
  6027. if v:IsA("Part") then
  6028. v.Color = Color3.new(1,0,0)
  6029. v.Material = "Neon"
  6030. end
  6031. end
  6032. for i, v in pairs(extrawingmod1:GetChildren()) do
  6033. if v:IsA("Part") then
  6034. v.Transparency = 0
  6035. v.Color = Color3.new(0, 32/255, 96/255)
  6036. v.Material = "Neon"
  6037. end
  6038. end
  6039. for i, v in pairs(extrawingmod2:GetChildren()) do
  6040. if v:IsA("Part") then
  6041. v.Transparency = 0
  6042. v.Color = Color3.new(0, 32/255, 96/255)
  6043. v.Material = "Neon"
  6044. end
  6045. attack = false
  6046. end
  6047. elseif k == "m" and attack == false and ModeOfGlitch == 666 then
  6048. resetmode()
  6049. end
  6050. if k == "l" and toggleTag == false then
  6051. toggleTag = true
  6052. text.TextTransparency = 0
  6053. text.TextStrokeTransparency = 0
  6054. elseif k == "l" and toggleTag == true then
  6055. toggleTag = false
  6056. text.TextTransparency = 1
  6057. text.TextStrokeTransparency = 1
  6058. end
  6059. if k == "z" and attack == false and ModeOfGlitch == 6 or ModeOfGlitch == 33 then
  6060. ExtinctiveHeartbreak()
  6061. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  6062. PureBomb()
  6063. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  6064. scattercorrupt()
  6065. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  6066. ChaosGroundStrike()
  6067. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  6068. Judgement()
  6069. elseif k == "z" and attack == false and ModeOfGlitch == 21 then
  6070. Judgement()
  6071. elseif k == "|" and attack == false and ModeOfGlitch == 4 then
  6072. HolyBarrier()
  6073. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  6074. Starfall()
  6075. elseif k == "z" and attack == false and ModeOfGlitch == 69 then
  6076. yinyangi()
  6077. elseif k == "x" and attack == false and ModeOfGlitch == 69 then
  6078. test()
  6079. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  6080. Wip()
  6081. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  6082. StarfallEX()
  6083. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  6084. FinalCalam()
  6085. end
  6086. if k == "n" and attack == false then
  6087. Blink()
  6088. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  6089. StarDivision()
  6090. end
  6091. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  6092. UniversalCollapse()
  6093. end
  6094.  
  6095. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  6096. hum.WalkSpeed = 16 + 184
  6097. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  6098. hum.WalkSpeed = 200 - 184
  6099. end
  6100. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  6101. UniversalSpark()
  6102. end
  6103. if k == "z" and attack == false and ModeOfGlitch == 666 then
  6104. StarDivision()
  6105. end
  6106. if k == "x" and attack == false and ModeOfGlitch == 666 then
  6107. Starfall()
  6108. end
  6109. if k == "m" and attack == false and ModeOfGlitch == 4 then
  6110. ChaosBegone()
  6111. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  6112. THEHELLITSTHATBIG()
  6113. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  6114. removelol()
  6115. end
  6116. end)
  6117. mouse.KeyUp:connect(function(k)
  6118. if k == "f" and ModeOfGlitch == 5 then
  6119. stash:Remove()
  6120. attack = false
  6121. Torso.Anchored = false
  6122. shielding = false
  6123. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  6124. end
  6125. end)
  6126. coroutine.resume(coroutine.create(function()
  6127. while true do
  6128. swait(2)
  6129. if rainbowmode == true or ModeOfGlitch == 69 then
  6130. if eff == true then
  6131. sphereMK(5,0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),-6,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),1.5,1.5,10,-0.015,MAINRUINCOLOR,0)
  6132. end
  6133. end
  6134. end
  6135. end))
  6136. coroutine.resume(coroutine.create(function()
  6137. while true do
  6138. swait(2)
  6139. if shielding == true then
  6140. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("White"),0)
  6141. end
  6142. end
  6143. end))
  6144.  
  6145.  
  6146. coroutine.resume(coroutine.create(function()
  6147. while true do
  6148. if ModeOfGlitch == 1000000 then
  6149. swait(0.5)
  6150. end
  6151. swait()
  6152. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6153. sphereMK(5,0.5,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-15,15)),math.rad(math.random(-15,15)),0),1,1,15,-0.01,MAINRUINCOLOR,0)
  6154. end
  6155. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6156. sphereMK(5,math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-75,75),-25,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),0),1,1,50,-0.01,MAINRUINCOLOR,0)
  6157. end
  6158. end
  6159. end))
  6160.  
  6161.  
  6162. coroutine.resume(coroutine.create(function()
  6163. while true do
  6164. swait(2)
  6165. if chaosmode == true then
  6166. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6167. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6168. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6169. tr1.Color = ColorSequence.new(BrickColor.random().Color)
  6170. tr2.Color = ColorSequence.new(BrickColor.random().Color)
  6171. tr3.Color = ColorSequence.new(BrickColor.random().Color)
  6172. RecolorTextAndRename("InSaNe",BrickColor.random().Color,BrickColor.random().Color)
  6173. for i, v in pairs(mw1:GetChildren()) do
  6174. if v:IsA("Part") then
  6175. v.Transparency = 0
  6176. v.BrickColor = BrickColor.random()
  6177. v.Material = "Neon"
  6178. end
  6179. end
  6180. for i, v in pairs(mw2:GetChildren()) do
  6181. if v:IsA("Part") then
  6182. v.Transparency = 0
  6183. v.BrickColor = BrickColor.random()
  6184. v.Material = "Neon"
  6185. end
  6186. end
  6187. for i, v in pairs(m2:GetChildren()) do
  6188. if v:IsA("Part") then
  6189. v.BrickColor = BrickColor.random()
  6190. v.Material = "Neon"
  6191. end
  6192. end
  6193. for i, v in pairs(extrawingmod1:GetChildren()) do
  6194. if v:IsA("Part") then
  6195. v.Transparency = 0
  6196. v.BrickColor = BrickColor.random()
  6197. v.Material = "Neon"
  6198. end
  6199. end
  6200. for i, v in pairs(extrawingmod2:GetChildren()) do
  6201. if v:IsA("Part") then
  6202. v.Transparency = 0
  6203. v.BrickColor = BrickColor.random()
  6204. v.Material = "Neon"
  6205. end
  6206. end
  6207. for i, v in pairs(secondchar:GetChildren()) do
  6208. if v:IsA("Part") then
  6209. v.BrickColor = BrickColor.random()
  6210. v.Material = "Neon"
  6211. end
  6212. end
  6213. end
  6214. end
  6215. end))
  6216. Humanoid.Name = "STARGLITCHER"
  6217. Humanoid.MaxHealth = math.huge
  6218. Humanoid.Health = math.huge
  6219. Instance.new("ForceField",char).Visible = false
  6220. Humanoid.Animator.Parent = nil
  6221. idleanim=.4
  6222. while true do
  6223. if rainbowmode == false then
  6224. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6225. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6226. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6227. for i, v in pairs(secondchar:GetChildren()) do
  6228. if v:IsA("Part") then
  6229. v.BrickColor = MAINRUINCOLOR
  6230. v.Material = "Neon"
  6231. end
  6232. end
  6233. if chaosmode == false then
  6234. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6235. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6236. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6237. for i, v in pairs(secondchar:GetChildren()) do
  6238. if v:IsA("Part") then
  6239. v.BrickColor = MAINRUINCOLOR
  6240. v.Material = "Neon"
  6241. end
  6242. end
  6243. end
  6244. end
  6245. if rainbowmode == true then
  6246. RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  6247. MAINRUINCOLOR = BrickColor.new("White")
  6248. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6249. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6250. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6251. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6252. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6253. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6254. for i, v in pairs(m:GetChildren()) do
  6255. if v:IsA("Part") then
  6256. v.Color = Color3.new(r/255,g/255,b/255)
  6257. end
  6258. end
  6259. for i, v in pairs(m2:GetChildren()) do
  6260. if v:IsA("Part") then
  6261. v.Color = Color3.new(r/255,g/255,b/255)
  6262. end
  6263. end
  6264. for i, v in pairs(secondchar:GetChildren()) do
  6265. if v:IsA("Part") then
  6266. v.Color = Color3.new(r/255,g/255,b/255)
  6267. v.Material = "Neon"
  6268. end
  6269. end
  6270. for i, v in pairs(m3:GetChildren()) do
  6271. if v:IsA("Part") then
  6272. v.Color = Color3.new(r/255,g/255,b/255)
  6273. end
  6274. end
  6275. for i, v in pairs(mw1:GetChildren()) do
  6276. if v:IsA("Part") then
  6277. v.Color = Color3.new(r/255,g/255,b/255)
  6278. v.Material = "Neon"
  6279. end
  6280. end
  6281. for i, v in pairs(mw2:GetChildren()) do
  6282. if v:IsA("Part") then
  6283. v.Color = Color3.new(r/255,g/255,b/255)
  6284. v.Material = "Neon"
  6285. end
  6286. end
  6287. end
  6288. CameraManager()
  6289. swait()
  6290. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  6291. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  6292. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  6293. lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3)
  6294. lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3)
  6295. lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3)
  6296.  
  6297. if attack == false and ActiveGia == false then
  6298. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6299. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  6300. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  6301. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6302. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6303. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  6304. elseif attack == false and ActiveGia == true then
  6305. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6306. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  6307. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  6308. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  6309. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6310. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6311. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6312. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6313. torsweld.C1=clerp(torsweld.C1,cf(0,-25 + 0.5 * math.cos(sine / 32) ,-8)*angles(math.rad(20),math.rad(0),math.rad(0)),.025)
  6314. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  6315. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  6316. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,1.5*8,0.6*8)*angles(math.rad(20),math.rad(0),math.rad(0)),0.025)
  6317. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0.11*8)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6318. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  6319. end
  6320. end
  6321.  
  6322. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
  6323. rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
  6324. rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
  6325. rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3)
  6326. rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3)
  6327. rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3)
  6328. sine = sine + change
  6329. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6330. local velderp=RootPart.Velocity.y
  6331. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6332. if equipped==true or equipped==false then
  6333. if attack==false then
  6334. idle=idle+1
  6335. else
  6336. idle=0
  6337. end
  6338. if idle>=500 then
  6339. if attack==false then
  6340. --Sheath()
  6341. end
  6342. end
  6343. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6344. Anim="Jump"
  6345. if attack==false then
  6346. RH.C0=clerp(RH.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)
  6347. 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)
  6348. 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)
  6349. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6350. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  6351. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  6352. end
  6353. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6354. Anim="Fall"
  6355. if attack==false then
  6356. RH.C0=clerp(RH.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)
  6357. 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)
  6358. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6359. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6360. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  6361. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  6362. end
  6363. elseif torvel<1 and hitfloor~=nil then
  6364. Anim="Idle"
  6365. if attack==false then
  6366. if ModeOfGlitch == 2 then
  6367. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  6368. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  6369. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  6370. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1)
  6371. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  6372. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6373.  
  6374. elseif ModeOfGlitch == 33 then
  6375. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  6376. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  6377. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  6378. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6379. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  6380. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  6381.  
  6382. elseif ModeOfGlitch == 4 then
  6383. 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(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6384. 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)
  6385. 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(0)),.1)
  6386. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  6387. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  6388. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  6389.  
  6390. elseif ModeOfGlitch == 1 then
  6391. 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)
  6392. 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(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6393. 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)
  6394. 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)
  6395. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  6396. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  6397.  
  6398. elseif ModeOfGlitch == 3 or ModeOfGlitch == 6 or ModeOfGlitch == 666 then
  6399. RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1)
  6400. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1)
  6401. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6402. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  6403. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  6404. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  6405.  
  6406. elseif ModeOfGlitch == 6127843 or ModeOfGlitch == 69 then
  6407. 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)
  6408. 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)
  6409. 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(0)),.1)
  6410. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  6411. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1)
  6412. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  6413.  
  6414. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 5 or ModeOfGlitch == 21 then
  6415. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  6416. 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)),.1)
  6417. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  6418. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6419. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1)
  6420. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1)
  6421.  
  6422. elseif ModeOfGlitch == 12345678987654321 then
  6423. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  6424. 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)),.1)
  6425. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1)
  6426. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  6427. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  6428. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  6429. end
  6430. end
  6431. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  6432. Anim="Walk"
  6433. if attack==false then
  6434. if ModeOfGlitch == 2 then
  6435. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6436. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6437. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6438. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 0.325)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  6439. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6440. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6441.  
  6442. elseif ModeOfGlitch == 6 then
  6443. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(5 + 25 * math.cos(sine / 12))),.1)
  6444. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(-5 + 25 * math.cos(sine / 12))),.1)
  6445. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1)
  6446. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  6447. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 - 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  6448. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  6449.  
  6450. elseif ModeOfGlitch == 5 or ModeOfGlitch == 1000000 or ModeOfGlitch == 33 or ModeOfGlitch == 21 or ModeOfGlitch == 12345678987654321 then
  6451. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  6452. 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(20)),.2)
  6453. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  6454. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6455. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2)
  6456. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2)
  6457.  
  6458. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  6459. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6460. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6461. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6462. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  6463. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6464. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1)
  6465. end
  6466. end
  6467. elseif torvel>=22 and hitfloor~=nil then
  6468. Anim="Run"
  6469. if attack==false then
  6470. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6471. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  6472. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  6473. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  6474. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  6475. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 155 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  6476. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 155 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  6477. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6478. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  6479. 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(20)),.2)
  6480. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  6481. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6482. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2)
  6483. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2)
  6484. end
  6485. end
  6486. end
  6487. end
  6488. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement