lolita5432

Untitled

Oct 3rd, 2018
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 248.30 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. if Index == "PlrObj" then
  88. return RealPlayer
  89. end
  90. return RealPlayer[Index]
  91. end
  92. end;
  93. __tostring = function(self)
  94. return RealPlayer.Name
  95. end
  96. })
  97. end
  98. end
  99. if RealGame[Index] then
  100. local Type = type(RealGame[Index])
  101. if Type == "function" then
  102. if Index:lower() == "getservice" or Index:lower() == "service" then
  103. return function (self,Service)
  104. if Service:lower() == "players" then
  105. return setmetatable({},{
  106. __index = function (self2,Index2)
  107. local RealService = RealGame:GetService(Service)
  108. local Type2 = type(Index2)
  109. if Type2 == "function" then
  110. return function (self,...)
  111. return RealService[Index2](RealService,...)
  112. end
  113. else
  114. if Index2:lower() == "localplayer" then
  115. return Sandbox(owner)
  116. end
  117. return RealService[Index2]
  118. end
  119. end;
  120. __tostring = function(self)
  121. return RealGame:GetService(Service).Name
  122. end
  123. })
  124. elseif Service:lower() == "contextactionservice" then
  125. return InternalData["ContextActionService"]
  126. elseif Service:lower() == "contextactionservice" then
  127. return InternalData["UserInputService"]
  128. elseif Service:lower() == "runservice" then
  129. return setmetatable({},{
  130. __index = function(self2,Index2)
  131. local RealService = RealGame:GetService(Service)
  132. local Type2 = type(Index2)
  133. if Type2 == "function" then
  134. return function (self,...)
  135. return RealService[Index2](RealService,...)
  136. end
  137. else
  138. if Index2:lower() == "bindtorenderstep" then
  139. return function (self,Name,Priority,Function)
  140. return RealGame:GetService("RunService").Stepped:Connect(Function)
  141. end
  142. end
  143. if Index2:lower() == "renderstepped" then
  144. return RealService["Stepped"]
  145. end
  146. return RealService[Index2]
  147. end
  148. end
  149. })
  150. else
  151. return RealGame:GetService(Service)
  152. end
  153. end
  154. end
  155. return function (self,...)
  156. return RealGame[Index](RealGame,...)
  157. end
  158. else
  159. if game:GetService(Index) then
  160. return game:GetService(Index)
  161. end
  162. return RealGame[Index]
  163. end
  164. else
  165. return nil
  166. end
  167. end
  168. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  169. print("Complete! Running...")
  170.  
  171.  
  172. --//Paste script below this line.
  173. warn([[Star Glitcher Loaded.
  174.  
  175. plr = owner
  176. char = plr.Character
  177. hum = char.Humanoid
  178. local cam = game.Workspace.CurrentCamera
  179. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  180. Camera = cam
  181. local CamInterrupt = false
  182. local TwoD = false
  183. local TargetInfo = {nil, nil}
  184. cam.CameraType = "Custom"
  185. t = char.Torso
  186. h = char.Head
  187. ra = char["Right Arm"]
  188. la = char["Left Arm"]
  189. rl = char["Right Leg"]
  190. ll = char["Left Leg"]
  191. tors = char.Torso
  192. lleg = char["Left Leg"]
  193. root = char.HumanoidRootPart
  194. hed = char.Head
  195. rleg = char["Right Leg"]
  196. rarm = char["Right Arm"]
  197. larm = char["Left Arm"]
  198. radian = math.rad
  199. random = math.random
  200. Vec3 = Vector3.new
  201. Inst = Instance.new
  202. cFrame = CFrame.new
  203. Euler = CFrame.fromEulerAnglesXYZ
  204. vt = Vector3.new
  205. bc = BrickColor.new
  206. br = BrickColor.random
  207. it = Instance.new
  208. cf = CFrame.new
  209. local eff = true
  210. local shielding = false
  211.  
  212. local Booleans = {
  213. CamFollow = true,
  214. GyroUse = true
  215. }
  216.  
  217. function lerp(object, newCFrame, alpha)
  218. return object:lerp(newCFrame, alpha)
  219. end
  220.  
  221. local Directer = Inst("BodyGyro", root)
  222. Directer.MaxTorque = Vec3(0, 0, 0)
  223. Directer.P = 600000
  224. local CPart = Inst("Part")
  225. CPart.Anchored = true
  226. CPart.CanCollide = false
  227. CPart.Locked = true
  228. CPart.Transparency = 1
  229.  
  230. local rainbowmode = false
  231. local chaosmode = false
  232.  
  233. kan = Instance.new("Sound",char)
  234. kan.Volume = 1.25
  235. kan.TimePosition = 0
  236. kan.PlaybackSpeed = 1
  237. kan.Pitch = 1
  238. kan.SoundId = "rbxassetid://180324932"
  239. kan.Name = "wrecked"
  240. kan.Looped = true
  241. kan:Play()
  242.  
  243. function newTheme(ID,timepos,pitch,vol)
  244. local kanz = kan
  245. --kanz:Stop()
  246. --kanz.Volume = vol
  247. --kanz.TimePosition = timepos
  248. kanz.PlaybackSpeed = pitch
  249. kanz.Pitch = pitch
  250. kanz.SoundId = ID
  251. kanz.Name = "wrecked"
  252. kanz.Looped = true
  253. kanz.Volume = 0.3
  254. --kanz:Play()
  255. --coroutine.resume(coroutine.create(function()
  256. --wait(0.05)
  257. --end))
  258. end
  259.  
  260. function newThemeCust(ID,timepos,pitch,vol)
  261. local kanz = kan
  262. kanz:Stop()
  263. kanz.Volume = vol
  264. kanz.TimePosition = timepos
  265. kanz.PlaybackSpeed = pitch
  266. kanz.Pitch = pitch
  267. kanz.SoundId = ID
  268. kanz.Name = "wrecked"
  269. kanz.Looped = true
  270. kanz:Play()
  271. coroutine.resume(coroutine.create(function()
  272. wait(0.05)
  273. end))
  274. end
  275.  
  276.  
  277.  
  278. function CameraShake(Times, Power, PlayerTarget)
  279. coroutine.resume(coroutine.create(function()
  280. FV = Instance.new("BoolValue", PlayerTarget)
  281. FV.Name = "CameraShake"
  282. for ShakeNum=1,Times do
  283. swait()
  284. local ef=Power
  285. if ef>=1 then
  286. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  287. else
  288. ef=Power*10
  289. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  290. end
  291. end
  292. Humanoid.CameraOffset = Vector3.new(0,0,0)
  293. FV:Destroy()
  294. end))
  295. end
  296.  
  297. function CameraEnshaking(Length,Intensity)
  298. coroutine.resume(coroutine.create(function()
  299. local intensity = 1*Intensity
  300. local rotM = 0.01*Intensity
  301. for i = 0, Length, 0.1 do
  302. swait()
  303. intensity = intensity - 0.05*Intensity/Length
  304. rotM = rotM - 0.0005*Intensity/Length
  305. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  306. 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)
  307. end
  308. Humanoid.CameraOffset = Vec3(0, 0, 0)
  309. end))
  310. end
  311. CamShake=function(Part,Distan,Power,Times)
  312. local de=Part.Position
  313. for i,v in pairs(workspace:children()) do
  314. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  315. for _,c in pairs(v:children()) do
  316. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  317. local Noob=v.Humanoid
  318. if Noob~=nil then
  319. coroutine.resume(coroutine.create(function()
  320. FV = Instance.new("BoolValue", Noob)
  321. FV.Name = "CameraShake"
  322. for ShakeNum=1,Times do
  323. swait()
  324. local ef=Power
  325. if ef>=1 then
  326. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  327. else
  328. ef=Power*10
  329. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  330. end
  331. end
  332. Humanoid.CameraOffset = Vector3.new(0,0,0)
  333. FV:Destroy()
  334. end))
  335. CameraShake(Times, Power, Noob)
  336. end
  337. end
  338. end
  339. end
  340. end
  341. end
  342.  
  343. function chatfunc(text,color)
  344. local chat = coroutine.wrap(function()
  345. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  346. Character:FindFirstChild("TalkingBillBoard"):destroy()
  347. end
  348. local naeeym2 = Instance.new("BillboardGui",Character)
  349. naeeym2.Size = UDim2.new(0,100,0,40)
  350. naeeym2.StudsOffset = Vector3.new(0,3,0)
  351. naeeym2.Adornee = Character.Head
  352. naeeym2.Name = "TalkingBillBoard"
  353. local tecks2 = Instance.new("TextLabel",naeeym2)
  354. tecks2.BackgroundTransparency = 1
  355. tecks2.BorderSizePixel = 0
  356. tecks2.Text = ""
  357. tecks2.Font = "SciFi"
  358. tecks2.TextSize = 30
  359. tecks2.TextStrokeTransparency = 0
  360. tecks2.TextColor3 = color
  361. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  362. tecks2.Size = UDim2.new(1,0,0.5,0)
  363. local tecks3 = Instance.new("TextLabel",naeeym2)
  364. tecks3.BackgroundTransparency = 1
  365. tecks3.BorderSizePixel = 0
  366. tecks3.Text = ""
  367. tecks3.Font = "SciFi"
  368. tecks3.TextSize = 30
  369. tecks3.TextStrokeTransparency = 0
  370. tecks3.TextColor3 = Color3.new(0,0,0)
  371. tecks3.TextStrokeColor3 = color
  372. tecks3.Size = UDim2.new(1,0,0.5,0)
  373. coroutine.resume(coroutine.create(function()
  374. while true do
  375. swait(1)
  376. plr.Character.wrecked.Volume = 0.3
  377. if chaosmode == true then
  378. tecks2.TextColor3 = BrickColor.random().Color
  379. tecks3.TextStrokeColor3 = BrickColor.random().Color
  380. end
  381. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  382. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  383. tecks2.Rotation = math.random(-5,5)
  384. tecks3.Rotation = math.random(-5,5)
  385. end
  386. end))
  387. for i = 1,string.len(text),1 do
  388. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  389. tecks2.Text = string.sub(text,1,i)
  390. tecks3.Text = string.sub(text,1,i)
  391. swait(1)
  392. end
  393. wait(1)
  394. local randomrot = math.random(1,2)
  395. if randomrot == 1 then
  396. for i = 1, 50 do
  397. swait()
  398. tecks2.Rotation = tecks2.Rotation - .75
  399. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  400. tecks2.TextTransparency = tecks2.TextTransparency + .04
  401. tecks3.Rotation = tecks2.Rotation + .75
  402. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  403. tecks3.TextTransparency = tecks2.TextTransparency + .04
  404. end
  405. elseif randomrot == 2 then
  406. for i = 1, 50 do
  407. swait()
  408. tecks2.Rotation = tecks2.Rotation + .75
  409. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  410. tecks2.TextTransparency = tecks2.TextTransparency + .04
  411. tecks3.Rotation = tecks2.Rotation - .75
  412. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  413. tecks3.TextTransparency = tecks2.TextTransparency + .04
  414. end
  415. end
  416. naeeym2:Destroy()
  417. end)
  418. chat()
  419. end
  420.  
  421.  
  422. local Create = LoadLibrary("RbxUtility").Create
  423.  
  424. CFuncs = {
  425. ["Part"] = {
  426. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  427. local Part = Create("Part"){
  428. Parent = Parent,
  429. Reflectance = Reflectance,
  430. Transparency = Transparency,
  431. CanCollide = false,
  432. Locked = true,
  433. BrickColor = BrickColor.new(tostring(BColor)),
  434. Name = Name,
  435. Size = Size,
  436. Material = Material,
  437. }
  438. RemoveOutlines(Part)
  439. return Part
  440. end;
  441. };
  442.  
  443. ["Mesh"] = {
  444. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  445. local Msh = Create(Mesh){
  446. Parent = Part,
  447. Offset = OffSet,
  448. Scale = Scale,
  449. }
  450. if Mesh == "SpecialMesh" then
  451. Msh.MeshType = MeshType
  452. Msh.MeshId = MeshId
  453. end
  454. return Msh
  455. end;
  456. };
  457.  
  458. ["Mesh"] = {
  459. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  460. local Msh = Create(Mesh){
  461. Parent = Part,
  462. Offset = OffSet,
  463. Scale = Scale,
  464. }
  465. if Mesh == "SpecialMesh" then
  466. Msh.MeshType = MeshType
  467. Msh.MeshId = MeshId
  468. end
  469. return Msh
  470. end;
  471. };
  472.  
  473. ["Weld"] = {
  474. Create = function(Parent, Part0, Part1, C0, C1)
  475. local Weld = Create("Weld"){
  476. Parent = Parent,
  477. Part0 = Part0,
  478. Part1 = Part1,
  479. C0 = C0,
  480. C1 = C1,
  481. }
  482. return Weld
  483. end;
  484. };
  485.  
  486. ["Sound"] = {
  487. Create = function(id, par, vol, pit)
  488. coroutine.resume(coroutine.create(function()
  489. local S = Create("Sound"){
  490. Volume = vol,
  491. Name = "EffectSoundo",
  492. Pitch = pit or 1,
  493. SoundId = id,
  494. Parent = par or workspace,
  495. }
  496. wait()
  497. S:play()
  498. game:GetService("Debris"):AddItem(S, 10)
  499. end))
  500. end;
  501. };
  502.  
  503. ["LongSound"] = {
  504. Create = function(id, par, vol, pit)
  505. coroutine.resume(coroutine.create(function()
  506. local S = Create("Sound"){
  507. Volume = vol,
  508. Pitch = pit or 1,
  509. SoundId = id,
  510. Parent = par or workspace,
  511. }
  512. wait()
  513. S:play()
  514. game:GetService("Debris"):AddItem(S, 30)
  515. end))
  516. end;
  517. };
  518.  
  519. ["ParticleEmitter"] = {
  520. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  521. local fp = Create("ParticleEmitter"){
  522. Parent = Parent,
  523. Color = ColorSequence.new(Color1, Color2),
  524. LightEmission = LightEmission,
  525. Size = Size,
  526. Texture = Texture,
  527. Transparency = Transparency,
  528. ZOffset = ZOffset,
  529. Acceleration = Accel,
  530. Drag = Drag,
  531. LockedToPart = LockedToPart,
  532. VelocityInheritance = VelocityInheritance,
  533. EmissionDirection = EmissionDirection,
  534. Enabled = Enabled,
  535. Lifetime = LifeTime,
  536. Rate = Rate,
  537. Rotation = Rotation,
  538. RotSpeed = RotSpeed,
  539. Speed = Speed,
  540. VelocitySpread = VelocitySpread,
  541. }
  542. return fp
  543. end;
  544. };
  545.  
  546. CreateTemplate = {
  547.  
  548. };
  549. }
  550.  
  551.  
  552.  
  553. New = function(Object, Parent, Name, Data)
  554. local Object = Instance.new(Object)
  555. for Index, Value in pairs(Data or {}) do
  556. Object[Index] = Value
  557. end
  558. Object.Parent = Parent
  559. Object.Name = Name
  560. return Object
  561. end
  562. local halocolor = BrickColor.new("Pastel light blue")
  563. local halocolor2 = BrickColor.new("Cool yellow")
  564. local starcolor = BrickColor.new("Bright yellow")
  565. local lunacolor = BrickColor.new("Navy blue")
  566. local lunacolor2 = BrickColor.new("Bright blue")
  567. local wepcolor = BrickColor.new("Really black")
  568. local maincolor = BrickColor.new("Really black")
  569. local m = Instance.new("Model",char)
  570. local m2 = Instance.new("Model",char)
  571. local m3 = Instance.new("Model",char)
  572. local mw1 = Instance.new("Model",char)
  573. local mw2 = Instance.new("Model",char)
  574.  
  575. local extrawingmod1 = Instance.new("Model",char)
  576. local extrawingmod2 = Instance.new("Model",char)
  577.  
  578. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  579. local p = Instance.new("Part")
  580. p.TopSurface = 0
  581. p.BottomSurface = 0
  582. p.Parent = parent
  583. p.Size = Vector3.new(0.1,0.1,0.1)
  584. p.Transparency = transparency
  585. p.Reflectance = reflectance
  586. p.CanCollide = false
  587. p.Locked = true
  588. p.BrickColor = brickcolor
  589. p.Material = material
  590. return p
  591. end
  592.  
  593. function CreateMesh(parent,meshtype,x1,y1,z1)
  594. local mesh = Instance.new("SpecialMesh",parent)
  595. mesh.MeshType = meshtype
  596. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  597. return mesh
  598. end
  599.  
  600. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  601. local mesh = Instance.new("SpecialMesh",parent)
  602. mesh.MeshType = "FileMesh"
  603. mesh.MeshId = meshid
  604. mesh.Scale = Vector3.new(x1,y1,z1)
  605. return mesh
  606. end
  607.  
  608.  
  609. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  610. local mesh = Instance.new("SpecialMesh",parent)
  611. mesh.MeshType = "FileMesh"
  612. mesh.MeshId = meshid
  613. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  614. mesh.Scale = Vector3.new(x1,y1,z1)
  615. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  616. return mesh
  617. end
  618.  
  619. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  620. local weld = Instance.new("Weld")
  621. weld.Parent = parent
  622. weld.Part0 = part0
  623. weld.Part1 = part1
  624. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  625. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  626. return weld
  627. end
  628.  
  629.  
  630. --------------
  631. local secondchar = Instance.new("Model",char)
  632. local GhostCol = BrickColor.new("Really red")
  633. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  634. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  635. 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))
  636.  
  637. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  638. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  639. 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))
  640.  
  641. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  642. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  643. 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))
  644.  
  645. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  646. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  647. 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))
  648.  
  649. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  650. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  651. 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))
  652.  
  653. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  654. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  655. 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))
  656. --------------
  657. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  658. 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))
  659. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  660. 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))
  661.  
  662. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  663. CreateMesh(handle,"Brick",0,0,0)
  664. 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))
  665. local valuaring = 10
  666. for i = 0, 49 do
  667. valuaring = valuaring + 10
  668. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  669. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  670. 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))
  671. end
  672.  
  673. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  674. CreateMesh(handle,"Brick",0,0,0)
  675. 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))
  676. local valuaring = 10
  677. for i = 0, 49 do
  678. valuaring = valuaring + 10
  679. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  680. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  681. 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))
  682. end
  683.  
  684.  
  685. local handle = CreateParta(m,1,1,"Neon",maincolor)
  686. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  687. 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))
  688.  
  689. --- Left wing.
  690.  
  691. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  692. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  693. 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))
  694.  
  695. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  696. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  697. 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))
  698. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  699. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  700. 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))
  701. A0 = Instance.new('Attachment',wed)
  702. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  703. CreateMesh(wed,"Wedge",0.05,0.5,3)
  704. 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))
  705. A1 = Instance.new('Attachment',wed)
  706. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  707. CreateMesh(wed,"Wedge",0.05,3,0.5)
  708. 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))
  709.  
  710. tl1 = Instance.new('Trail',wed)
  711. tl1.Attachment0 = A0
  712. tl1.Attachment1 = A1
  713. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  714. tl1.LightEmission = 1
  715. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  716. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  717. tl1.Lifetime = 0.6
  718.  
  719.  
  720. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  721. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  722. 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))
  723.  
  724. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  725. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  726. 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))
  727. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  728. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  729. 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))
  730. A0 = Instance.new('Attachment',wed)
  731. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  732. CreateMesh(wed,"Wedge",0.05,0.5,3)
  733. 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))
  734. A1 = Instance.new('Attachment',wed)
  735. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  736. CreateMesh(wed,"Wedge",0.05,3,0.5)
  737. 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))
  738.  
  739. tl2 = Instance.new('Trail',wed)
  740. tl2.Attachment0 = A0
  741. tl2.Attachment1 = A1
  742. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  743. tl2.LightEmission = 1
  744. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  745. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  746. tl2.Lifetime = 0.6
  747.  
  748. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  749. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  750. 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))
  751.  
  752. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  753. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  754. 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))
  755. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  756. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  757. 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))
  758. A0 = Instance.new('Attachment',wed)
  759. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  760. CreateMesh(wed,"Wedge",0.05,0.5,3)
  761. 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))
  762. A1 = Instance.new('Attachment',wed)
  763. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  764. CreateMesh(wed,"Wedge",0.05,3,0.5)
  765. 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))
  766.  
  767. tl3 = Instance.new('Trail',wed)
  768. tl3.Attachment0 = A0
  769. tl3.Attachment1 = A1
  770. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  771. tl3.LightEmission = 1
  772. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  773. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  774. tl3.Lifetime = 0.6
  775.  
  776. tl1.Enabled = false
  777. tl2.Enabled = false
  778. tl3.Enabled = false
  779. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  780. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  781. 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))
  782.  
  783. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  784. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  785. 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))
  786. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  787. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  788. 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))
  789. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  790. CreateMesh(wed,"Wedge",0.05,0.5,3)
  791. 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))
  792. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  793. CreateMesh(wed,"Wedge",0.05,3,0.5)
  794. 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))
  795.  
  796. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  797. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  798. 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))
  799.  
  800. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  801. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  802. 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))
  803. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  804. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  805. 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))
  806. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  807. CreateMesh(wed,"Wedge",0.05,0.5,3)
  808. 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))
  809. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  810. CreateMesh(wed,"Wedge",0.05,3,0.5)
  811. 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))
  812.  
  813. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  814. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  815. 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))
  816.  
  817. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  818. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  819. 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))
  820. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  821. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  822. 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))
  823. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  824. CreateMesh(wed,"Wedge",0.05,0.5,3)
  825. 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))
  826. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  827. CreateMesh(wed,"Wedge",0.05,3,0.5)
  828. 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))
  829.  
  830. -- Right wing.
  831.  
  832. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  833. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  834. 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))
  835.  
  836. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  837. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  838. 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))
  839. A0 = Instance.new('Attachment',wed)
  840. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  841. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  842. 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))
  843. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  844. CreateMesh(wed,"Wedge",0.05,0.5,3)
  845. 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))
  846. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  847. CreateMesh(wed,"Wedge",0.05,3,0.5)
  848. 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))
  849. A1 = Instance.new('Attachment',wed)
  850.  
  851. tr1 = Instance.new('Trail',wed)
  852. tr1.Attachment0 = A0
  853. tr1.Attachment1 = A1
  854. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  855. tr1.LightEmission = 1
  856. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  857. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  858. tr1.Lifetime = 0.6
  859.  
  860. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  861. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  862. 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))
  863.  
  864. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  866. 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))
  867. A0 = Instance.new('Attachment',wed)
  868. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  869. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  870. 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))
  871. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  872. CreateMesh(wed,"Wedge",0.05,0.5,3)
  873. 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))
  874. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  875. CreateMesh(wed,"Wedge",0.05,3,0.5)
  876. 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))
  877. A1 = Instance.new('Attachment',wed)
  878.  
  879. tr2 = Instance.new('Trail',wed)
  880. tr2.Attachment0 = A0
  881. tr2.Attachment1 = A1
  882. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  883. tr2.LightEmission = 1
  884. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  885. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  886. tr2.Lifetime = 0.6
  887.  
  888. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  889. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  890. 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))
  891.  
  892. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  894. 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))
  895. A0 = Instance.new('Attachment',wed)
  896. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  897. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  898. 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))
  899. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  900. CreateMesh(wed,"Wedge",0.05,0.5,3)
  901. 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))
  902. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  903. CreateMesh(wed,"Wedge",0.05,3,0.5)
  904. 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))
  905. A1 = Instance.new('Attachment',wed)
  906.  
  907. tr3 = Instance.new('Trail',wed)
  908. tr3.Attachment0 = A0
  909. tr3.Attachment1 = A1
  910. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  911. tr3.LightEmission = 1
  912. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  913. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  914. tr3.Lifetime = 0.6
  915.  
  916.  
  917. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  918. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  919. 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))
  920.  
  921. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  922. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  923. 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))
  924. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  925. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  926. 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))
  927. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  928. CreateMesh(wed,"Wedge",0.05,0.5,3)
  929. 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))
  930. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  931. CreateMesh(wed,"Wedge",0.05,3,0.5)
  932. 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))
  933.  
  934. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  935. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  936. 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))
  937.  
  938. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  939. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  940. 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))
  941. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  942. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  943. 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))
  944. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  945. CreateMesh(wed,"Wedge",0.05,0.5,3)
  946. 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))
  947. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,3,0.5)
  949. 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))
  950.  
  951. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  952. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  953. 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))
  954.  
  955. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  956. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  957. 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))
  958. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  959. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  960. 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))
  961. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  962. CreateMesh(wed,"Wedge",0.05,0.5,3)
  963. 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))
  964. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  965. CreateMesh(wed,"Wedge",0.05,3,0.5)
  966. 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))
  967.  
  968. ---- HERES THE RING
  969.  
  970.  
  971. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  972. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  973. 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))
  974. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  975. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  976. 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))
  977. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  978. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  979. 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))
  980.  
  981.  
  982. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  983. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  984. 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))
  985.  
  986. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  987. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  988. 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))
  989.  
  990.  
  991.  
  992. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  993. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  994. 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))
  995.  
  996. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  997. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  998. 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))
  999.  
  1000. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1001. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1002. 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))
  1003.  
  1004. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1005. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1006. 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))
  1007. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1008. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1009. 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))
  1010.  
  1011. --- second ring
  1012.  
  1013. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1014. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1015. 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))
  1016. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1017. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1018. 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))
  1019. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1020. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1021. 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))
  1022.  
  1023. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1024. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1025. 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))
  1026.  
  1027. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1028. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1029. 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))
  1030.  
  1031.  
  1032.  
  1033. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1034. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1035. 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))
  1036.  
  1037. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1038. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1039. 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))
  1040.  
  1041. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1042. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1043. 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))
  1044.  
  1045. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1046. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1047. 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))
  1048. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1049. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1050. 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))]]--
  1051.  
  1052.  
  1053.  
  1054. for i, v in pairs(m:GetChildren()) do
  1055. if v:IsA("Part") then
  1056. v.BrickColor = BrickColor.new("Really black")
  1057. v.Material = "Glass"
  1058. end
  1059. end
  1060. for i, v in pairs(m2:GetChildren()) do
  1061. if v:IsA("Part") then
  1062. v.BrickColor = BrickColor.new("Crimson")
  1063. v.Material = "Granite"
  1064. end
  1065. end
  1066. for i, v in pairs(m3:GetChildren()) do
  1067. if v:IsA("Part") then
  1068. v.BrickColor = BrickColor.new("Really red")
  1069. v.Material = "Neon"
  1070. end
  1071. end
  1072. for i, v in pairs(mw2:GetChildren()) do
  1073. if v:IsA("Part") then
  1074. v.BrickColor = BrickColor.new("Really red")
  1075. v.Material = "Neon"
  1076. end
  1077. end
  1078. for i, v in pairs(mw1:GetChildren()) do
  1079. if v:IsA("Part") then
  1080. v.Transparency = 1
  1081. v.BrickColor = BrickColor.new("Really red")
  1082. v.Material = "Neon"
  1083. end
  1084. end
  1085. for i, v in pairs(extrawingmod1:GetChildren()) do
  1086. if v:IsA("Part") then
  1087. v.Transparency = 1
  1088. v.BrickColor = BrickColor.new("White")
  1089. v.Material = "Neon"
  1090. end
  1091. end
  1092. for i, v in pairs(extrawingmod2:GetChildren()) do
  1093. if v:IsA("Part") then
  1094. v.Transparency = 1
  1095. v.BrickColor = BrickColor.new("White")
  1096. v.Material = "Neon"
  1097. end
  1098. end
  1099. local MAINRUINCOLOR = BrickColor.new("Really red")
  1100. ------
  1101.  
  1102.  
  1103. function RemoveOutlines(part)
  1104. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1105. end
  1106. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1107. local Part = Create("Part")({
  1108. Parent = Parent,
  1109. Reflectance = Reflectance,
  1110. Transparency = Transparency,
  1111. CanCollide = false,
  1112. Locked = true,
  1113. BrickColor = BrickColor.new(tostring(BColor)),
  1114. Name = Name,
  1115. Size = Size,
  1116. Material = Material
  1117. })
  1118. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1119. RemoveOutlines(Part)
  1120. return Part
  1121. end
  1122. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1123. local Msh = Create(Mesh)({
  1124. Parent = Part,
  1125. Offset = OffSet,
  1126. Scale = Scale
  1127. })
  1128. if Mesh == "SpecialMesh" then
  1129. Msh.MeshType = MeshType
  1130. Msh.MeshId = MeshId
  1131. end
  1132. return Msh
  1133. end
  1134. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1135. local Weld = Create("Weld")({
  1136. Parent = Parent,
  1137. Part0 = Part0,
  1138. Part1 = Part1,
  1139. C0 = C0,
  1140. C1 = C1
  1141. })
  1142. return Weld
  1143. end
  1144.  
  1145. Player=game:GetService("Players").LocalPlayer
  1146. Character=Player.Character
  1147. PlayerGui=Player.PlayerGui
  1148. Backpack=Player.Backpack
  1149. Torso=Character.Torso
  1150. Head=Character.Head
  1151. Humanoid=Character.Humanoid
  1152. m=Instance.new('Model',Character)
  1153. LeftArm=Character["Left Arm"]
  1154. LeftLeg=Character["Left Leg"]
  1155. RightArm=Character["Right Arm"]
  1156. RightLeg=Character["Right Leg"]
  1157. LS=Torso["Left Shoulder"]
  1158. LH=Torso["Left Hip"]
  1159. RS=Torso["Right Shoulder"]
  1160. RH=Torso["Right Hip"]
  1161. Face = Head.face
  1162. Neck=Torso.Neck
  1163. it=Instance.new
  1164. attacktype=1
  1165. vt=Vector3.new
  1166. cf=CFrame.new
  1167. euler=CFrame.fromEulerAnglesXYZ
  1168. angles=CFrame.Angles
  1169. cloaked=false
  1170. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1171. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1172. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1173. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1174. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1175. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1176. RootPart=Character.HumanoidRootPart
  1177. RootJoint=RootPart.RootJoint
  1178. RootCF=euler(-1.57,0,3.14)
  1179. attack = false
  1180. attackdebounce = false
  1181. deb=false
  1182. equipped=true
  1183. hand=false
  1184. MMouse=nil
  1185. combo=0
  1186. mana=0
  1187. trispeed=.2
  1188. attackmode='none'
  1189. local idle=0
  1190. local Anim="Idle"
  1191. local Effects={}
  1192. local gun=false
  1193. local shoot=false
  1194. local sine = 0
  1195. local change = 1
  1196. player=nil
  1197.  
  1198.  
  1199. local toggleTag = true
  1200. local txt = Instance.new("BillboardGui", Head)
  1201. txt.Adornee = nil
  1202. txt.Name = "NameDetect"
  1203. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1204. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1205. local text = Instance.new("TextLabel", txt)
  1206. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1207. text.FontSize = "Size8"
  1208. text.TextScaled = true
  1209. text.TextTransparency = 0
  1210. text.BackgroundTransparency = 1
  1211. text.TextTransparency = 0
  1212. text.TextStrokeTransparency = 0
  1213. text.Font = "Fantasy"
  1214. text.TextStrokeColor3 = Color3.new(1,0,0)
  1215. text.TextColor3 = Color3.new(0,0,0)
  1216. text.Text = "Mayhem"
  1217.  
  1218. function RecolorTextAndRename(name,col1,col2)
  1219. text.TextStrokeColor3 = col2
  1220. text.TextColor3 = col1
  1221. text.Text = name
  1222. end
  1223. mouse=Player:GetMouse()
  1224. --save shoulders
  1225. RSH, LSH=nil, nil
  1226. --welds
  1227. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1228. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1229. LH=Torso["Left Hip"]
  1230. RH=Torso["Right Hip"]
  1231. TorsoColor=Torso.BrickColor
  1232. function NoOutline(Part)
  1233. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1234. end
  1235. player=Player
  1236. ch=Character
  1237. RSH=ch.Torso["Right Shoulder"]
  1238. LSH=ch.Torso["Left Shoulder"]
  1239. --
  1240. RSH.Parent=nil
  1241. LSH.Parent=nil
  1242. --
  1243. RW.Name="Right Shoulder"
  1244. RW.Part0=ch.Torso
  1245. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1246. RW.C1=cf(0, 0.5, 0)
  1247. RW.Part1=ch["Right Arm"]
  1248. RW.Parent=ch.Torso
  1249. --
  1250. LW.Name="Left Shoulder"
  1251. LW.Part0=ch.Torso
  1252. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1253. LW.C1=cf(0, 0.5, 0)
  1254. LW.Part1=ch["Left Arm"]
  1255. LW.Parent=ch.Torso
  1256.  
  1257. local Stats=Instance.new("BoolValue")
  1258. Stats.Name="Stats"
  1259. Stats.Parent=Character
  1260. local Atk=Instance.new("NumberValue")
  1261. Atk.Name="Damage"
  1262. Atk.Parent=Stats
  1263. Atk.Value=1
  1264. local Def=Instance.new("NumberValue")
  1265. Def.Name="Defense"
  1266. Def.Parent=Stats
  1267. Def.Value=1
  1268. local Speed=Instance.new("NumberValue")
  1269. Speed.Name="Speed"
  1270. Speed.Parent=Stats
  1271. Speed.Value=1
  1272. local Mvmt=Instance.new("NumberValue")
  1273. Mvmt.Name="Movement"
  1274. Mvmt.Parent=Stats
  1275. Mvmt.Value=1
  1276.  
  1277. local donum=0
  1278.  
  1279.  
  1280. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1281. local fp=it("Part")
  1282. fp.formFactor=formfactor
  1283. fp.Parent=parent
  1284. fp.Reflectance=reflectance
  1285. fp.Transparency=transparency
  1286. fp.CanCollide=false
  1287. fp.Locked=true
  1288. fp.BrickColor=brickcolor
  1289. fp.Name=name
  1290. fp.Size=size
  1291. fp.Position=Torso.Position
  1292. NoOutline(fp)
  1293. fp.Material="SmoothPlastic"
  1294. fp:BreakJoints()
  1295. return fp
  1296. end
  1297.  
  1298. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1299. local mesh=it(Mesh)
  1300. mesh.Parent=part
  1301. if Mesh=="SpecialMesh" then
  1302. mesh.MeshType=meshtype
  1303. if meshid~="nil" then
  1304. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1305. end
  1306. end
  1307. mesh.Offset=offset
  1308. mesh.Scale=scale
  1309. return mesh
  1310. end
  1311.  
  1312. function weld(parent,part0,part1,c0)
  1313. local weld=it("Weld")
  1314. weld.Parent=parent
  1315. weld.Part0=part0
  1316. weld.Part1=part1
  1317. weld.C0=c0
  1318. return weld
  1319. end
  1320.  
  1321. local Color1=Torso.BrickColor
  1322.  
  1323. local bodvel=Instance.new("BodyVelocity")
  1324. local bg=Instance.new("BodyGyro")
  1325.  
  1326. function swait(num)
  1327. if num==0 or num==nil then
  1328. game:service'RunService'.Stepped:wait(0)
  1329. else
  1330. for i=0,num do
  1331. game:service'RunService'.Stepped:wait(0)
  1332. end
  1333. end
  1334. end
  1335.  
  1336. -------- RAINBOW LEAVE IT TO ME
  1337. local r = 255
  1338. local g = 0
  1339. local b = 0
  1340. coroutine.resume(coroutine.create(function()
  1341. while wait() do
  1342. for i = 0, 254/5 do
  1343. swait()
  1344. g = g + 5
  1345. end
  1346. for i = 0, 254/5 do
  1347. swait()
  1348. r = r - 5
  1349. end
  1350. for i = 0, 254/5 do
  1351. swait()
  1352. b = b + 5
  1353. end
  1354. for i = 0, 254/5 do
  1355. swait()
  1356. g = g - 5
  1357. end
  1358. for i = 0, 254/5 do
  1359. swait()
  1360. r = r + 5
  1361. end
  1362. for i = 0, 254/5 do
  1363. swait()
  1364. b = b - 5
  1365. end
  1366. end
  1367. end))
  1368.  
  1369.  
  1370. so = function(id,par,vol,pit)
  1371. coroutine.resume(coroutine.create(function()
  1372. local sou = Instance.new("Sound",par or workspace)
  1373. sou.Volume=vol
  1374. sou.Pitch=pit or 1
  1375. sou.SoundId=id
  1376. swait()
  1377. sou:play()
  1378. game:GetService("Debris"):AddItem(sou,6)
  1379. end))
  1380. end
  1381.  
  1382. function clerp(a,b,t)
  1383. local qa = {QuaternionFromCFrame(a)}
  1384. local qb = {QuaternionFromCFrame(b)}
  1385. local ax, ay, az = a.x, a.y, a.z
  1386. local bx, by, bz = b.x, b.y, b.z
  1387. local _t = 1-t
  1388. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1389. end
  1390.  
  1391. function QuaternionFromCFrame(cf)
  1392. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1393. local trace = m00 + m11 + m22
  1394. if trace > 0 then
  1395. local s = math.sqrt(1 + trace)
  1396. local recip = 0.5/s
  1397. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1398. else
  1399. local i = 0
  1400. if m11 > m00 then
  1401. i = 1
  1402. end
  1403. if m22 > (i == 0 and m00 or m11) then
  1404. i = 2
  1405. end
  1406. if i == 0 then
  1407. local s = math.sqrt(m00-m11-m22+1)
  1408. local recip = 0.5/s
  1409. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1410. elseif i == 1 then
  1411. local s = math.sqrt(m11-m22-m00+1)
  1412. local recip = 0.5/s
  1413. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1414. elseif i == 2 then
  1415. local s = math.sqrt(m22-m00-m11+1)
  1416. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1417. end
  1418. end
  1419. end
  1420.  
  1421. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1422. local xs, ys, zs = x + x, y + y, z + z
  1423. local wx, wy, wz = w*xs, w*ys, w*zs
  1424. local xx = x*xs
  1425. local xy = x*ys
  1426. local xz = x*zs
  1427. local yy = y*ys
  1428. local yz = y*zs
  1429. local zz = z*zs
  1430. 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))
  1431. end
  1432.  
  1433. function QuaternionSlerp(a, b, t)
  1434. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1435. local startInterp, finishInterp;
  1436. if cosTheta >= 0.0001 then
  1437. if (1 - cosTheta) > 0.0001 then
  1438. local theta = math.acos(cosTheta)
  1439. local invSinTheta = 1/math.sin(theta)
  1440. startInterp = math.sin((1-t)*theta)*invSinTheta
  1441. finishInterp = math.sin(t*theta)*invSinTheta
  1442. else
  1443. startInterp = 1-t
  1444. finishInterp = t
  1445. end
  1446. else
  1447. if (1+cosTheta) > 0.0001 then
  1448. local theta = math.acos(-cosTheta)
  1449. local invSinTheta = 1/math.sin(theta)
  1450. startInterp = math.sin((t-1)*theta)*invSinTheta
  1451. finishInterp = math.sin(t*theta)*invSinTheta
  1452. else
  1453. startInterp = t-1
  1454. finishInterp = t
  1455. end
  1456. end
  1457. 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
  1458. end
  1459.  
  1460. local function CFrameFromTopBack(at, top, back)
  1461. local right = top:Cross(back)
  1462. return CFrame.new(at.x, at.y, at.z,
  1463. right.x, top.x, back.x,
  1464. right.y, top.y, back.y,
  1465. right.z, top.z, back.z)
  1466. end
  1467.  
  1468. function Triangle(a, b, c)
  1469. local edg1 = (c-a):Dot((b-a).unit)
  1470. local edg2 = (a-b):Dot((c-b).unit)
  1471. local edg3 = (b-c):Dot((a-c).unit)
  1472. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1473. a, b, c = a, b, c
  1474. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1475. a, b, c = b, c, a
  1476. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1477. a, b, c = c, a, b
  1478. else
  1479. assert(false, "unreachable")
  1480. end
  1481.  
  1482. local len1 = (c-a):Dot((b-a).unit)
  1483. local len2 = (b-a).magnitude - len1
  1484. local width = (a + (b-a).unit*len1 - c).magnitude
  1485.  
  1486. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1487.  
  1488. local list = {}
  1489.  
  1490. if len1 > 0.01 then
  1491. local w1 = Instance.new('WedgePart', m)
  1492. game:GetService("Debris"):AddItem(w1,5)
  1493. w1.Material = "SmoothPlastic"
  1494. w1.FormFactor = 'Custom'
  1495. w1.BrickColor = BrickColor.new("Really red")
  1496. w1.Transparency = 0
  1497. w1.Reflectance = 0
  1498. w1.Material = "SmoothPlastic"
  1499. w1.CanCollide = false
  1500. local l1 = Instance.new("PointLight",w1)
  1501. l1.Color = Color3.new(170,0,0)
  1502. NoOutline(w1)
  1503. local sz = Vector3.new(0.2, width, len1)
  1504. w1.Size = sz
  1505. local sp = Instance.new("SpecialMesh",w1)
  1506. sp.MeshType = "Wedge"
  1507. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1508. w1:BreakJoints()
  1509. w1.Anchored = true
  1510. w1.Parent = workspace
  1511. w1.Transparency = 0.7
  1512. table.insert(Effects,{w1,"Disappear",.01})
  1513. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1514. table.insert(list,w1)
  1515. end
  1516.  
  1517. if len2 > 0.01 then
  1518. local w2 = Instance.new('WedgePart', m)
  1519. game:GetService("Debris"):AddItem(w2,5)
  1520. w2.Material = "SmoothPlastic"
  1521. w2.FormFactor = 'Custom'
  1522. w2.BrickColor = BrickColor.new("Really red")
  1523. w2.Transparency = 0
  1524. w2.Reflectance = 0
  1525. w2.Material = "SmoothPlastic"
  1526. w2.CanCollide = false
  1527. local l2 = Instance.new("PointLight",w2)
  1528. l2.Color = Color3.new(170,0,0)
  1529. NoOutline(w2)
  1530. local sz = Vector3.new(0.2, width, len2)
  1531. w2.Size = sz
  1532. local sp = Instance.new("SpecialMesh",w2)
  1533. sp.MeshType = "Wedge"
  1534. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1535. w2:BreakJoints()
  1536. w2.Anchored = true
  1537. w2.Parent = workspace
  1538. w2.Transparency = 0.7
  1539. table.insert(Effects,{w2,"Disappear",.01})
  1540. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1541. table.insert(list,w2)
  1542. end
  1543. return unpack(list)
  1544. end
  1545.  
  1546.  
  1547. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1548. if hit.Parent == nil then
  1549. return
  1550. end
  1551. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1552. for _, v in pairs(hit.Parent:children()) do
  1553. if v:IsA("Humanoid") then
  1554. h = v
  1555. end
  1556. end
  1557. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1558. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1559. return
  1560. end
  1561. local c = Create("ObjectValue")({
  1562. Name = "creator",
  1563. Value = game:service("Players").LocalPlayer,
  1564. Parent = h
  1565. })
  1566. game:GetService("Debris"):AddItem(c, 0.5)
  1567. if HitSound ~= nil and HitPitch ~= nil then
  1568. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1569. end
  1570. local Damage = math.random(minim, maxim)
  1571. local blocked = false
  1572. local block = hit.Parent:findFirstChild("Block")
  1573. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1574. blocked = true
  1575. block.Value = block.Value - 1
  1576. print(block.Value)
  1577. end
  1578. if blocked == false then
  1579. HitHealth = h.Health
  1580. h.Health = h.Health - Damage
  1581. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1582. print("gained kill")
  1583. end
  1584. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1585. else
  1586. h.Health = h.Health - Damage / 2
  1587. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1588. end
  1589. if Type == "Knockdown" then
  1590. local hum = hit.Parent.Humanoid
  1591. hum.PlatformStand = true
  1592. coroutine.resume(coroutine.create(function(HHumanoid)
  1593. swait(1)
  1594. HHumanoid.PlatformStand = false
  1595. end), hum)
  1596. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1597. local bodvol = Create("BodyVelocity")({
  1598. velocity = angle * knockback,
  1599. P = 5000,
  1600. maxForce = Vector3.new(8000, 8000, 8000),
  1601. Parent = hit
  1602. })
  1603. local rl = Create("BodyAngularVelocity")({
  1604. P = 3000,
  1605. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1606. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1607. Parent = hit
  1608. })
  1609. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1610. game:GetService("Debris"):AddItem(rl, 0.5)
  1611. elseif Type == "Normal" then
  1612. local vp = Create("BodyVelocity")({
  1613. P = 500,
  1614. maxForce = Vector3.new(math.huge, 0, math.huge),
  1615. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1616. })
  1617. if knockback > 0 then
  1618. vp.Parent = hit.Parent.Head
  1619. end
  1620. game:GetService("Debris"):AddItem(vp, 0.5)
  1621. elseif Type == "Up" then
  1622. local bodyVelocity = Create("BodyVelocity")({
  1623. velocity = Vector3.new(0, 20, 0),
  1624. P = 5000,
  1625. maxForce = Vector3.new(8000, 8000, 8000),
  1626. Parent = hit
  1627. })
  1628. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1629. local bodyVelocity = Create("BodyVelocity")({
  1630. velocity = Vector3.new(0, 20, 0),
  1631. P = 5000,
  1632. maxForce = Vector3.new(8000, 8000, 8000),
  1633. Parent = hit
  1634. })
  1635. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1636. elseif Type == "Leech" then
  1637. local hum = hit.Parent.Humanoid
  1638. if hum ~= nil then
  1639. for i = 0, 2 do
  1640. 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)
  1641. end
  1642. Humanoid.Health = Humanoid.Health + 10
  1643. end
  1644. elseif Type == "UpKnock" then
  1645. local hum = hit.Parent.Humanoid
  1646. hum.PlatformStand = true
  1647. if hum ~= nil then
  1648. hitr = true
  1649. end
  1650. coroutine.resume(coroutine.create(function(HHumanoid)
  1651. swait(5)
  1652. HHumanoid.PlatformStand = false
  1653. hitr = false
  1654. end), hum)
  1655. local bodyVelocity = Create("BodyVelocity")({
  1656. velocity = Vector3.new(0, 20, 0),
  1657. P = 5000,
  1658. maxForce = Vector3.new(8000, 8000, 8000),
  1659. Parent = hit
  1660. })
  1661. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1662. local bodyVelocity = Create("BodyVelocity")({
  1663. velocity = Vector3.new(0, 20, 0),
  1664. P = 5000,
  1665. maxForce = Vector3.new(8000, 8000, 8000),
  1666. Parent = hit
  1667. })
  1668. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1669. elseif Type == "Snare" then
  1670. local bp = Create("BodyPosition")({
  1671. P = 2000,
  1672. D = 100,
  1673. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1674. position = hit.Parent.Torso.Position,
  1675. Parent = hit.Parent.Torso
  1676. })
  1677. game:GetService("Debris"):AddItem(bp, 1)
  1678. elseif Type == "Slashnare" then
  1679. 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)
  1680. for i = 1, math.random(4, 5) do
  1681. 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)
  1682. end
  1683. local bp = Create("BodyPosition")({
  1684. P = 2000,
  1685. D = 100,
  1686. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1687. position = hit.Parent.Torso.Position,
  1688. Parent = hit.Parent.Torso
  1689. })
  1690. game:GetService("Debris"):AddItem(bp, 1)
  1691. elseif Type == "Spike" then
  1692. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1693. local bp = Create("BodyPosition")({
  1694. P = 2000,
  1695. D = 100,
  1696. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1697. position = hit.Parent.Torso.Position,
  1698. Parent = hit.Parent.Torso
  1699. })
  1700. game:GetService("Debris"):AddItem(bp, 1)
  1701. elseif Type == "Freeze" then
  1702. local BodPos = Create("BodyPosition")({
  1703. P = 50000,
  1704. D = 1000,
  1705. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1706. position = hit.Parent.Torso.Position,
  1707. Parent = hit.Parent.Torso
  1708. })
  1709. local BodGy = Create("BodyGyro")({
  1710. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1711. P = 20000,
  1712. Parent = hit.Parent.Torso,
  1713. cframe = hit.Parent.Torso.CFrame
  1714. })
  1715. hit.Parent.Torso.Anchored = true
  1716. coroutine.resume(coroutine.create(function(Part)
  1717. swait(1.5)
  1718. Part.Anchored = false
  1719. end), hit.Parent.Torso)
  1720. game:GetService("Debris"):AddItem(BodPos, 3)
  1721. game:GetService("Debris"):AddItem(BodGy, 3)
  1722. end
  1723. local debounce = Create("BoolValue")({
  1724. Name = "DebounceHit",
  1725. Parent = hit.Parent,
  1726. Value = true
  1727. })
  1728. game:GetService("Debris"):AddItem(debounce, Delay)
  1729. c = Instance.new("ObjectValue")
  1730. c.Name = "creator"
  1731. c.Value = Player
  1732. c.Parent = h
  1733. game:GetService("Debris"):AddItem(c, 0.5)
  1734. end
  1735. end
  1736. function ShowDamage(Pos, Text, Time, Color)
  1737. local Rate = 0.03333333333333333
  1738. local Pos = Pos or Vector3.new(0, 0, 0)
  1739. local Text = Text or ""
  1740. local Time = Time or 2
  1741. local Color = Color or Color3.new(1, 0, 1)
  1742. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1743. EffectPart.Anchored = true
  1744. local BillboardGui = Create("BillboardGui")({
  1745. Size = UDim2.new(3, 0, 3, 0),
  1746. Adornee = EffectPart,
  1747. Parent = EffectPart
  1748. })
  1749. local TextLabel = Create("TextLabel")({
  1750. BackgroundTransparency = 1,
  1751. Size = UDim2.new(1, 0, 1, 0),
  1752. Text = Text,
  1753. TextColor3 = Color,
  1754. TextScaled = true,
  1755. Font = Enum.Font.ArialBold,
  1756. Parent = BillboardGui
  1757. })
  1758. game.Debris:AddItem(EffectPart, Time + 0.1)
  1759. EffectPart.Parent = game:GetService("Workspace")
  1760. delay(0, function()
  1761. local Frames = Time / Rate
  1762. for Frame = 1, Frames do
  1763. wait(Rate)
  1764. local Percent = Frame / Frames
  1765. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1766. TextLabel.TextTransparency = Percent
  1767. end
  1768. if EffectPart and EffectPart.Parent then
  1769. EffectPart:Destroy()
  1770. end
  1771. end)
  1772. end
  1773. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1774. for _, c in pairs(workspace:children()) do
  1775. local hum = c:findFirstChildOfClass("Humanoid")
  1776. if hum ~= nil then
  1777. local head = c:findFirstChild("Head")
  1778. if head ~= nil then
  1779. local targ = head.Position - Part.Position
  1780. local mag = targ.magnitude
  1781. if magni >= mag and c.Name ~= Player.Name then
  1782. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1783. end
  1784. end
  1785. end
  1786. end
  1787. end
  1788.  
  1789. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1790. for _, c in pairs(workspace:children()) do
  1791. local hum = c:findFirstChild("Humanoid")
  1792. if hum ~= nil then
  1793. local head = c:findFirstChild("Torso")
  1794. if head ~= nil then
  1795. local targ = head.Position - Part.Position
  1796. local mag = targ.magnitude
  1797. if magni >= mag and c.Name ~= Player.Name then
  1798. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1799. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1800. end
  1801. end
  1802. end
  1803. end
  1804. end
  1805.  
  1806. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1807. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1808. end
  1809.  
  1810. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1811. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1812. prt.Anchored=true
  1813. prt.CFrame=cframe
  1814. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1815. --http://www.roblox.com/asset/?id=4770560
  1816. game:GetService("Debris"):AddItem(prt,2)
  1817. CF=prt.CFrame
  1818. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1819. for i=0,1,0.2 do
  1820. wait()
  1821. Part.CFrame=CF*cf(0,0,-0.4)
  1822. end
  1823. for i=0,1,delay do
  1824. wait()
  1825. --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)
  1826. Mesh.Scale=Mesh.Scale
  1827. end
  1828. for i=0,1,0.1 do
  1829. wait()
  1830. Part.Transparency=i
  1831. end
  1832. Part.Parent=nil
  1833. end),prt,msh,CF)
  1834. end
  1835.  
  1836. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1837. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1838. prt.Anchored=true
  1839. prt.Material = "Neon"
  1840. prt.CFrame=cframe
  1841. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1842. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1843. game:GetService("Debris"):AddItem(prt,5)
  1844. coroutine.resume(coroutine.create(function(Part,Mesh)
  1845. for i=0,1,delay do
  1846. swait()
  1847. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1848. Part.Transparency=i
  1849. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1850. end
  1851. Part.Parent=nil
  1852. end),prt,msh)
  1853. end
  1854.  
  1855. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1856. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1857. prt.Anchored=true
  1858. prt.Material = "Neon"
  1859. prt.CFrame=cframe
  1860. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1861. game:GetService("Debris"):AddItem(prt,5)
  1862. coroutine.resume(coroutine.create(function(Part,Mesh)
  1863. local rtype = rottype
  1864. for i=0,1,delay do
  1865. swait()
  1866. if rtype == 1 then
  1867. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1868. elseif rtype == 2 then
  1869. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1870. end
  1871. Part.Transparency=i
  1872. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1873. end
  1874. Part.Parent=nil
  1875. end),prt,msh)
  1876. end
  1877.  
  1878. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1879. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1880. prt.Anchored=true
  1881. prt.CFrame=cframe
  1882. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1883. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1884. game:GetService("Debris"):AddItem(prt,5)
  1885. coroutine.resume(coroutine.create(function(Part,Mesh)
  1886. for i=0,1,delay do
  1887. wait()
  1888. Part.Transparency=i
  1889. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1890. end
  1891. Part.Parent=nil
  1892. end),prt,msh)
  1893. end
  1894.  
  1895. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1896. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1897. prt.Anchored=true
  1898. prt.Material = "Neon"
  1899. prt.CFrame=cframe
  1900. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  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. Part.Transparency=i
  1912. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1913. end
  1914. Part.Parent=nil
  1915. end),prt,msh)
  1916. end
  1917.  
  1918. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1919. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1920. prt.Anchored=true
  1921. prt.Material = "Neon"
  1922. prt.CFrame=cframe
  1923. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1924. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1925. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1926. game:GetService("Debris"):AddItem(prt,5)
  1927. coroutine.resume(coroutine.create(function(Part,Mesh)
  1928. local rtype = rottype
  1929. for i=0,1,delay do
  1930. swait()
  1931. if rtype == 1 then
  1932. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1933. elseif rtype == 2 then
  1934. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1935. end
  1936. dec.Transparency=i
  1937. dec2.Transparency=i
  1938. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1939. end
  1940. Part.Parent=nil
  1941. end),prt,msh)
  1942. end
  1943.  
  1944. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1945. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1946. prt.Anchored=true
  1947. prt.Material = "Neon"
  1948. prt.CFrame=cframe
  1949. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1950. game:GetService("Debris"):AddItem(prt,5)
  1951. coroutine.resume(coroutine.create(function(Part,Mesh)
  1952. local rtype = rottype
  1953. for i=0,1,delay do
  1954. swait()
  1955. if rtype == 1 then
  1956. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1957. elseif rtype == 2 then
  1958. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1959. end
  1960. prt.Transparency=i
  1961. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1962. end
  1963. Part.Parent=nil
  1964. end),prt,msh)
  1965. end
  1966.  
  1967. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1968. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1969. prt.Anchored=true
  1970. prt.Material = "Neon"
  1971. prt.CFrame=cframe
  1972. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1973. game:GetService("Debris"):AddItem(prt,5)
  1974. coroutine.resume(coroutine.create(function(Part,Mesh)
  1975. local rtype = rottype
  1976. for i=0,1,delay do
  1977. swait()
  1978. if rtype == 1 then
  1979. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1980. elseif rtype == 2 then
  1981. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1982. end
  1983. prt.Transparency=i
  1984. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1985. end
  1986. Part.Parent=nil
  1987. end),prt,msh)
  1988. end
  1989.  
  1990. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1991. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1992. prt.Anchored=true
  1993. prt.Material = "Neon"
  1994. prt.CFrame=cframe
  1995. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1996. game:GetService("Debris"):AddItem(prt,5)
  1997. coroutine.resume(coroutine.create(function(Part,Mesh)
  1998. local rtype = rottype
  1999. for i=0,1,delay do
  2000. swait()
  2001. if rtype == 1 then
  2002. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2003. elseif rtype == 2 then
  2004. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2005. end
  2006. prt.Transparency=i
  2007. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2008. end
  2009. Part.Parent=nil
  2010. end),prt,msh)
  2011. end
  2012.  
  2013. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2014. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2015. prt.Anchored=true
  2016. prt.Material = "Neon"
  2017. prt.CFrame=cframe
  2018. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2019. game:GetService("Debris"):AddItem(prt,5)
  2020. coroutine.resume(coroutine.create(function(Part,Mesh)
  2021. local rtype = rottype
  2022. for i=0,1,delay do
  2023. swait()
  2024. if rtype == 1 then
  2025. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2026. elseif rtype == 2 then
  2027. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2028. end
  2029. prt.Transparency=i
  2030. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2031. end
  2032. Part.Parent=nil
  2033. end),prt,msh)
  2034. end
  2035.  
  2036. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2037. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2038. prt.Anchored=false
  2039. prt.CFrame=cframe
  2040. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2041. local wld=weld(prt,prt,Parent,cframe)
  2042. game:GetService("Debris"):AddItem(prt,5)
  2043. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2044. for i=0,1,delay do
  2045. wait()
  2046. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2047. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2048. Part.Transparency=i
  2049. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2050. end
  2051. Part.Parent=nil
  2052. end),prt,msh,wld)
  2053. end
  2054.  
  2055. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2056. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2057. prt.Anchored=false
  2058. prt.CFrame=cframe
  2059. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2060. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2061. game:GetService("Debris"):AddItem(prt,5)
  2062. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2063. for i=0,1,delay do
  2064. wait()
  2065. Weld.C0=euler(i*20,0,0)
  2066. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2067. Part.Transparency=i
  2068. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2069. end
  2070. Part.Parent=nil
  2071. end),prt,msh,wld)
  2072. end
  2073.  
  2074. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2075. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2076. prt.Anchored=true
  2077. prt.CFrame=cframe
  2078. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2079. game:GetService("Debris"):AddItem(prt,2)
  2080. coroutine.resume(coroutine.create(function(Part,Mesh)
  2081. for i=0,1,delay do
  2082. wait()
  2083. Part.CFrame=Part.CFrame
  2084. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2085. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2086. prt2.Anchored=true
  2087. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2088. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2089. game:GetService("Debris"):AddItem(prt2,2)
  2090. coroutine.resume(coroutine.create(function(Part,Mesh)
  2091. for i=0,1,0.1 do
  2092. wait()
  2093. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2094. end
  2095. Part.Parent=nil
  2096. end),prt2,msh2)
  2097. end
  2098. for i=0,1,delay*2 do
  2099. wait()
  2100. Part.CFrame=Part.CFrame
  2101. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2102. end
  2103. Part.Parent=nil
  2104. end),prt,msh)
  2105. end
  2106.  
  2107. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2108. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2109. prt.Anchored=true
  2110. prt.CFrame=cframe
  2111. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2112. game:GetService("Debris"):AddItem(prt,2)
  2113. coroutine.resume(coroutine.create(function(Part,Mesh)
  2114. for i=0,1,delay do
  2115. wait()
  2116. Part.CFrame=Part.CFrame
  2117. Part.Transparency=i
  2118. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2119. end
  2120. Part.Parent=nil
  2121. end),prt,msh)
  2122. end
  2123.  
  2124. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2125. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2126. prt.Anchored=true
  2127. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2128. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2129. game:GetService("Debris"):AddItem(prt,2)
  2130. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2131. CF=Part.CFrame
  2132. Numbb=0
  2133. randnumb=math.random()/10
  2134. rand1=math.random()/10
  2135. for i=0,1,rand1 do
  2136. wait()
  2137. CF=CF*cf(0,math.random()/2,0)
  2138. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2139. Part.CFrame=CF*euler(Numbb,0,0)
  2140. Part.Transparency=i
  2141. Numbb=Numbb+randnumb
  2142. end
  2143. Part.Parent=nil
  2144. end),prt,CF,Numbb,randnumb)
  2145. end
  2146.  
  2147. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2148. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2149. prt.Anchored=true
  2150. prt.CFrame=cframe
  2151. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2152. game:GetService("Debris"):AddItem(prt,5)
  2153. coroutine.resume(coroutine.create(function(Part,Mesh)
  2154. for i=0,1,delay do
  2155. wait()
  2156. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2157. Part.Transparency=i
  2158. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2159. end
  2160. Part.Parent=nil
  2161. end),prt,msh)
  2162. end
  2163.  
  2164. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2165. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2166. prt.Anchored=true
  2167. prt.CFrame=cframe
  2168. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2169. game:GetService("Debris"):AddItem(prt,2)
  2170. coroutine.resume(coroutine.create(function(Part,Mesh)
  2171. for i=0,1,delay do
  2172. wait()
  2173. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2174. Part.Transparency=i
  2175. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2176. end
  2177. Part.Parent=nil
  2178. end),prt,msh)
  2179. end
  2180.  
  2181. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2182. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2183. prt.Anchored=true
  2184. prt.CFrame=cframe*cf(x,y,z)
  2185. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2186. game:GetService("Debris"):AddItem(prt,5)
  2187. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2188. local num=math.random()
  2189. local num2=math.random(-3,2)+math.random()
  2190. local numm=0
  2191. for i=0,1,delay*2 do
  2192. swait()
  2193. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2194. Part.Transparency=i
  2195. numm=numm+0.01
  2196. end
  2197. Part.Parent=nil
  2198. Mesh.Parent=nil
  2199. end),prt,msh,x,y,z)
  2200. end
  2201.  
  2202. function dmgstart(dmg,what)
  2203. hitcon = what.Touched:connect(function(hit)
  2204. local hum = hit.Parent:FindFirstChild("Humanoid")
  2205. if hum and not hum:IsDescendantOf(Character) then
  2206. hum:TakeDamage(dmg)
  2207. end
  2208. end)
  2209. end
  2210.  
  2211. function dmgstop()
  2212. hitcon:disconnect()
  2213. end
  2214.  
  2215. function Cloak()
  2216. Face.Parent=nil
  2217. cloaked=true
  2218. for _,v in pairs(Torso.Parent:children()) do
  2219. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2220. coroutine.resume(coroutine.create(function()
  2221. for i=0,1,0.2 do
  2222. wait()
  2223. v.Transparency=i
  2224. end
  2225. v.Transparency=1
  2226. end))
  2227. end
  2228. if v.className=="Hat" then
  2229. hatp=v.Handle
  2230. coroutine.resume(coroutine.create(function(derp)
  2231. for i=0,1,0.2 do
  2232. wait()
  2233. derp.Transparency=i
  2234. end
  2235. derp.Transparency=1
  2236. end),hatp)
  2237. end
  2238. end
  2239. for _,v in pairs(m:children()) do
  2240. if v.className=="Part" then
  2241. coroutine.resume(coroutine.create(function()
  2242. for i=0,1,0.2 do
  2243. wait()
  2244. v.Transparency=i
  2245. end
  2246. v.Transparency=1
  2247. end))
  2248. end
  2249. end
  2250. end
  2251.  
  2252. function UnCloak()
  2253. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2254. Face.Parent=Head
  2255. cloaked=false
  2256. for _,v in pairs(Torso.Parent:children()) do
  2257. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2258. coroutine.resume(coroutine.create(function()
  2259. for i=0,1,0.1 do
  2260. wait()
  2261. v.Transparency=v.Transparency-0.1
  2262. end
  2263. v.Transparency=0
  2264. end))
  2265. end
  2266. if v.className=="Hat" then
  2267. hatp=v.Handle
  2268. coroutine.resume(coroutine.create(function(derp)
  2269. for i=0,1,0.1 do
  2270. wait()
  2271. derp.Transparency=derp.Transparency-0.1
  2272. end
  2273. derp.Transparency=0
  2274. end),hatp)
  2275. end
  2276. end
  2277. for _,v in pairs(m:children()) do
  2278. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2279. coroutine.resume(coroutine.create(function()
  2280. for i=0,1,0.1 do
  2281. wait()
  2282. v.Transparency=v.Transparency-0.1
  2283. end
  2284. v.Transparency=0
  2285. end))
  2286. v.Transparency=0
  2287. end
  2288. end
  2289. end
  2290.  
  2291. local origcolor = BrickColor.new("Pastel light blue")
  2292. ---- This section of explosions.
  2293. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2294. local expart = Instance.new("Part",char)
  2295. local expart2 = Instance.new("Part",char)
  2296. local rin = Instance.new("Part",char)
  2297. local rin2 = Instance.new("Part",char)
  2298. local partMesh = Instance.new("SpecialMesh",expart)
  2299. partMesh.MeshType = "Sphere"
  2300. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2301. partMesh2.MeshType = "Sphere"
  2302. local partMesh3 = Instance.new("SpecialMesh",rin)
  2303. partMesh3.MeshType = "Brick"
  2304. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2305. partMesh4.MeshType = "Brick"
  2306. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2307. partMesh.Scale = vt(rad,rad,rad)
  2308. expart.Size = vt(1,1,1)
  2309. expart.Transparency = 0
  2310. expart.Anchored = true
  2311. expart.Material = "Neon"
  2312. expart.BrickColor = bc("White")
  2313. expart.CFrame = par.CFrame
  2314. partMesh2.Scale = vt(rad,rad,rad)
  2315. expart2.Size = vt(1.15,1.15,1.15)
  2316. expart2.Transparency = 0.5
  2317. expart2.Anchored = true
  2318. expart2.Material = "Neon"
  2319. expart2.BrickColor = par.BrickColor
  2320. expart2.CFrame = par.CFrame
  2321. rin.Size = vt(1.15,1.15,1.15)
  2322. rin.Transparency = 1
  2323. rin.Anchored = true
  2324. rin.Material = "Neon"
  2325. rin.BrickColor = par.BrickColor
  2326. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2327. rin2.Size = vt(1.15,1.15,1.15)
  2328. rin2.Transparency = 1
  2329. rin2.Anchored = true
  2330. rin2.Material = "Neon"
  2331. rin2.BrickColor = par.BrickColor
  2332. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2333. partMesh3.Scale = vt(0,1,0)
  2334. partMesh4.Scale = vt(0,1,0)
  2335. local dec2 = Instance.new("Decal", rin)
  2336. dec2.Face = "Top"
  2337. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2338. dec2.Parent = rin
  2339. local dec2b = dec2:Clone()
  2340. dec2b.Face = "Bottom"
  2341. dec2b.Parent = rin
  2342.  
  2343. local dec2a = Instance.new("Decal", rin2)
  2344. dec2a.Face = "Top"
  2345. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2346. dec2a.Parent = rin2
  2347. local dec2ab = dec2a:Clone()
  2348. dec2ab.Face = "Bottom"
  2349. dec2ab.Parent = rin2
  2350. expart.CanCollide = false
  2351. expart2.CanCollide = false
  2352. rin.CanCollide = false
  2353. rin2.CanCollide = false
  2354. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2355. local value = 1*rad/6.5
  2356. for i = 0, 199 do
  2357. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2358. expart.CFrame = expart.CFrame
  2359. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2360. expart2.CFrame = expart.CFrame
  2361. value = value - 0.035*rad/30
  2362. if value < 7.5 then
  2363. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2364. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2365. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2366. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2367. end
  2368. if value < 0 then
  2369. dec2.Transparency = dec2.Transparency + 0.025
  2370. dec2a.Transparency = dec2a.Transparency + 0.025
  2371. dec2b.Transparency = dec2b.Transparency + 0.025
  2372. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2373. expart.Transparency = expart.Transparency + 0.025
  2374. expart2.Transparency = expart2.Transparency + 0.025
  2375. rin.Transparency = rin.Transparency + 0.025
  2376. rin2.Transparency = rin2.Transparency + 0.025
  2377. end
  2378. swait()
  2379. end
  2380. game:GetService("Debris"):AddItem(expart, 1)
  2381. game:GetService("Debris"):AddItem(expart2, 1)
  2382. game:GetService("Debris"):AddItem(rin, 1)
  2383. game:GetService("Debris"):AddItem(rin2, 1)
  2384. end
  2385.  
  2386. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2387. local expart = Instance.new("Part",char)
  2388. local expart2 = Instance.new("Part",char)
  2389. local partMesh = Instance.new("SpecialMesh",expart)
  2390. partMesh.MeshType = "Sphere"
  2391. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2392. partMesh2.MeshType = "Sphere"
  2393. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2394. partMesh.Scale = vt(rad,rad,rad)
  2395. expart.Size = vt(1,1,1)
  2396. expart.Transparency = 0
  2397. expart.Anchored = true
  2398. expart.Material = "Neon"
  2399. expart.BrickColor = bc("White")
  2400. expart.CFrame = par.CFrame
  2401. partMesh2.Scale = vt(rad,rad,rad)
  2402. expart2.Size = vt(1.15,1.15,1.15)
  2403. expart2.Transparency = 0.5
  2404. expart2.Anchored = true
  2405. expart2.Material = "Neon"
  2406. expart2.BrickColor = par.BrickColor
  2407. expart2.CFrame = par.CFrame
  2408. expart.CanCollide = false
  2409. expart2.CanCollide = false
  2410. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2411. local value = 1*rad/6.5
  2412. for i = 0, 75 do
  2413. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2414. expart.CFrame = expart.CFrame
  2415. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2416. expart2.CFrame = expart.CFrame
  2417. value = value - 0.035*rad/5
  2418. if value < 0 then
  2419. value = 0
  2420. expart.Transparency = expart.Transparency + 0.05
  2421. expart2.Transparency = expart2.Transparency + 0.05
  2422. end
  2423. swait()
  2424. end
  2425. game:GetService("Debris"):AddItem(expart, 1)
  2426. game:GetService("Debris"):AddItem(expart2, 1)
  2427. end
  2428.  
  2429. function AreaDanger(rad,par,mindam,maxdam)
  2430. local expart = Instance.new("Part",char)
  2431. local partMesh = Instance.new("SpecialMesh",expart)
  2432. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2433. partMesh.MeshType = "Sphere"
  2434. partMesh.Scale = vt(rad,rad,rad)
  2435. expart.Size = vt(1,1,1)
  2436. expart.Transparency = 0.5
  2437. expart.Anchored = true
  2438. expart.Material = "Neon"
  2439. expart.CanCollide = false
  2440. expart.BrickColor = par.BrickColor
  2441. expart.CFrame = par.CFrame
  2442. local value = 1*rad/5
  2443. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2444. for i = 0, 14 do
  2445. wait()
  2446. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2447. expart.CFrame = expart.CFrame
  2448. value = value - 0.035*rad
  2449. if value < 0 then
  2450. value = 0
  2451. end
  2452. end
  2453. wait(0.25)
  2454. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2455. wait(0.5)
  2456. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2457. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2458. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2459. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2460. for i = 0, 14 do
  2461. wait()
  2462. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2463. expart.CFrame = expart.CFrame
  2464. value = value - 0.035*rad/2
  2465. end
  2466. expart.Transparency = 1
  2467. game:GetService("Debris"):AddItem(expart, 5)
  2468. end
  2469.  
  2470. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2471. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2472. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2473. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2474. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2475. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2476. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2477. for i = 0, 24 do
  2478. 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))
  2479. end
  2480. for i = 0, 24 do
  2481. local expart = Instance.new("Part",char)
  2482. expart.Transparency = 1
  2483. expart.Anchored = true
  2484. expart.CanCollide = false
  2485. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2486. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2487. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2488. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2489. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2490. for i = 0, 9 do
  2491. 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))
  2492. end
  2493. game:GetService("Debris"):AddItem(expart, 2)
  2494. wait(0.1)
  2495. end
  2496. end
  2497.  
  2498. function EXterPlosion(par)
  2499. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2500. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2501. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2502. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2503. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2504. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2505. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2506. for i = 0, 24 do
  2507. 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))
  2508. end
  2509. for i = 0, 24 do
  2510. 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))
  2511. end
  2512. end
  2513. ----
  2514.  
  2515.  
  2516. function ring(type,pos,scale,value)
  2517. local type = type
  2518. local rng = Instance.new("Part", char)
  2519. rng.Anchored = true
  2520. rng.BrickColor = origcolor
  2521. rng.CanCollide = false
  2522. rng.FormFactor = 3
  2523. rng.Name = "Ring"
  2524. rng.Size = Vector3.new(1, 1, 1)
  2525. rng.Transparency = 0
  2526. rng.TopSurface = 0
  2527. rng.BottomSurface = 0
  2528. rng.CFrame = pos
  2529. local rngm = Instance.new("SpecialMesh", rng)
  2530. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2531. rngm.Scale = scale
  2532. local scaler2 = 1
  2533. if type == "Add" then
  2534. scaler2 = 1*value
  2535. elseif type == "Divide" then
  2536. scaler2 = 1/value
  2537. end
  2538. coroutine.resume(coroutine.create(function()
  2539. for i = 0,10,0.1 do
  2540. swait()
  2541. if type == "Add" then
  2542. scaler2 = scaler2 - 0.01*value
  2543. elseif type == "Divide" then
  2544. scaler2 = scaler2 - 0.01/value
  2545. end
  2546. rng.Transparency = rng.Transparency + 0.01
  2547. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2548. end
  2549. rng:Destroy()
  2550. end))
  2551. end
  2552.  
  2553.  
  2554. function wave(type,pos,scale,value)
  2555. local type = type
  2556. local rng = Instance.new("Part", char)
  2557. rng.Anchored = true
  2558. rng.BrickColor = origcolor
  2559. rng.CanCollide = false
  2560. rng.FormFactor = 3
  2561. rng.Name = "Ring"
  2562. rng.Size = Vector3.new(1, 1, 1)
  2563. rng.Transparency = 0
  2564. rng.TopSurface = 0
  2565. rng.BottomSurface = 0
  2566. rng.CFrame = pos
  2567. local rngm = Instance.new("SpecialMesh", rng)
  2568. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2569. rngm.Scale = scale
  2570. local scaler2 = 1
  2571. if type == "Add" then
  2572. scaler2 = 1*value
  2573. elseif type == "Divide" then
  2574. scaler2 = 1/value
  2575. end
  2576. coroutine.resume(coroutine.create(function()
  2577. for i = 0,10,0.1 do
  2578. swait()
  2579. if type == "Add" then
  2580. scaler2 = scaler2 - 0.01*value
  2581. elseif type == "Divide" then
  2582. scaler2 = scaler2 - 0.01/value
  2583. end
  2584. rng.Transparency = rng.Transparency + 0.01
  2585. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2586. end
  2587. rng:Destroy()
  2588. end))
  2589. end
  2590.  
  2591. function wind(type,pos,scale,value,speed)
  2592. local type = type
  2593. local rng = Instance.new("Part", char)
  2594. rng.Anchored = true
  2595. rng.BrickColor = origcolor
  2596. rng.CanCollide = false
  2597. rng.FormFactor = 3
  2598. rng.Name = "Ring"
  2599. rng.Size = Vector3.new(1, 1, 1)
  2600. rng.Transparency = 0
  2601. rng.TopSurface = 0
  2602. rng.BottomSurface = 0
  2603. rng.CFrame = pos
  2604. local rngm = Instance.new("SpecialMesh", rng)
  2605. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2606. rngm.Scale = scale
  2607. local scaler2 = 1
  2608. if type == "Add" then
  2609. scaler2 = 1*value
  2610. elseif type == "Divide" then
  2611. scaler2 = 1/value
  2612. end
  2613. coroutine.resume(coroutine.create(function()
  2614. for i = 0,10,0.1 do
  2615. swait()
  2616. if type == "Add" then
  2617. scaler2 = scaler2 - 0.01*value
  2618. elseif type == "Divide" then
  2619. scaler2 = scaler2 - 0.01/value
  2620. end
  2621. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2622. rng.Transparency = rng.Transparency + 0.01
  2623. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2624. end
  2625. rng:Destroy()
  2626. end))
  2627. end
  2628.  
  2629. function groundwind(type,pos,scale,value,speed)
  2630. local type = type
  2631. local rng = Instance.new("Part", char)
  2632. rng.Anchored = true
  2633. rng.BrickColor = origcolor
  2634. rng.CanCollide = false
  2635. rng.FormFactor = 3
  2636. rng.Name = "Ring"
  2637. rng.Size = Vector3.new(1, 1, 1)
  2638. rng.Transparency = 0
  2639. rng.TopSurface = 0
  2640. rng.BottomSurface = 0
  2641. rng.CFrame = pos
  2642. local rngm = Instance.new("SpecialMesh", rng)
  2643. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2644. rngm.Scale = scale
  2645. local scaler2 = 1
  2646. if type == "Add" then
  2647. scaler2 = 1*value
  2648. elseif type == "Divide" then
  2649. scaler2 = 1/value
  2650. end
  2651. coroutine.resume(coroutine.create(function()
  2652. for i = 0,10,0.1 do
  2653. swait()
  2654. if type == "Add" then
  2655. scaler2 = scaler2 - 0.01*value
  2656. elseif type == "Divide" then
  2657. scaler2 = scaler2 - 0.01/value
  2658. end
  2659. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2660. rng.Transparency = rng.Transparency + 0.01
  2661. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2662. end
  2663. rng:Destroy()
  2664. end))
  2665. end
  2666.  
  2667. function CameraManager()
  2668. if TwoD and not CamInterrupt then
  2669. if Humanoid.Health > 0 then
  2670. Camera.CameraSubject = Humanoid
  2671. Camera.CameraType = "Scriptable"
  2672. Humanoid.AutoRotate = false
  2673. if Booleans.GyroUse then
  2674. Directer.MaxTorque = Vec3(0, huge, 0)
  2675. else
  2676. Directer.MaxTorque = Vec3(0, 0, 0)
  2677. end
  2678. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2679. if Booleans.CamFollow then
  2680. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2681. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2682. else
  2683. CPart.Position = RootPart.Position
  2684. end
  2685. else
  2686. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2687. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2688. end
  2689. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2690. else
  2691. Camera.CameraSubject = Humanoid
  2692. Camera.CameraType = "Custom"
  2693. Controller.Disabled = false
  2694. end
  2695. end
  2696. end
  2697.  
  2698. function sphere(bonuspeed,type,pos,scale,value,color)
  2699. local type = type
  2700. local rng = Instance.new("Part", workspace)
  2701. rng.Anchored = true
  2702. rng.BrickColor = color
  2703. rng.CanCollide = false
  2704. rng.FormFactor = 3
  2705. rng.Name = "Ring"
  2706. rng.Material = "Neon"
  2707. rng.Size = Vector3.new(1, 1, 1)
  2708. rng.Transparency = 0
  2709. rng.TopSurface = 0
  2710. rng.BottomSurface = 0
  2711. rng.CFrame = pos
  2712. local rngm = Instance.new("SpecialMesh", rng)
  2713. rngm.MeshType = "Sphere"
  2714. rngm.Scale = scale
  2715. if rainbowmode == true then
  2716. rng.Color = Color3.new(r/255,g/255,b/255)
  2717. end
  2718. local scaler2 = 1
  2719. if type == "Add" then
  2720. scaler2 = 1*value
  2721. elseif type == "Divide" then
  2722. scaler2 = 1/value
  2723. end
  2724. coroutine.resume(coroutine.create(function()
  2725. for i = 0,10/bonuspeed,0.1 do
  2726. swait()
  2727. if rainbowmode == true then
  2728. rng.Color = Color3.new(r/255,g/255,b/255)
  2729. end
  2730. if type == "Add" then
  2731. scaler2 = scaler2 - 0.01*value/bonuspeed
  2732. elseif type == "Divide" then
  2733. scaler2 = scaler2 - 0.01/value*bonuspeed
  2734. end
  2735. if chaosmode == true then
  2736. rng.BrickColor = BrickColor.random()
  2737. end
  2738. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2739. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2740. end
  2741. rng:Destroy()
  2742. end))
  2743. end
  2744.  
  2745. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2746. local type = type
  2747. local rng = Instance.new("Part", char)
  2748. rng.Anchored = true
  2749. rng.BrickColor = color
  2750. rng.CanCollide = false
  2751. rng.FormFactor = 3
  2752. rng.Name = "Ring"
  2753. rng.Material = "Neon"
  2754. rng.Size = Vector3.new(1, 1, 1)
  2755. rng.Transparency = 0
  2756. rng.TopSurface = 0
  2757. rng.BottomSurface = 0
  2758. rng.CFrame = pos
  2759. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2760. local rngm = Instance.new("SpecialMesh", rng)
  2761. rngm.MeshType = "Brick"
  2762. rngm.Scale = vt(x1,y1,z1)
  2763. if rainbowmode == true then
  2764. rng.Color = Color3.new(r/255,g/255,b/255)
  2765. end
  2766. local scaler2 = 1
  2767. local speeder = FastSpeed/10
  2768. if type == "Add" then
  2769. scaler2 = 1*value
  2770. elseif type == "Divide" then
  2771. scaler2 = 1/value
  2772. end
  2773. coroutine.resume(coroutine.create(function()
  2774. for i = 0,10/bonuspeed,0.1 do
  2775. swait()
  2776. if rainbowmode == true then
  2777. rng.Color = Color3.new(r/255,g/255,b/255)
  2778. end
  2779. if type == "Add" then
  2780. scaler2 = scaler2 - 0.01*value/bonuspeed
  2781. elseif type == "Divide" then
  2782. scaler2 = scaler2 - 0.01/value*bonuspeed
  2783. end
  2784. if chaosmode == true then
  2785. rng.BrickColor = BrickColor.random()
  2786. end
  2787. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2788. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2789. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2790. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2791. end
  2792. rng:Destroy()
  2793. end))
  2794. end
  2795.  
  2796. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2797. local type = type
  2798. local rng = Instance.new("Part", char)
  2799. rng.Anchored = true
  2800. rng.BrickColor = color
  2801. rng.CanCollide = false
  2802. rng.FormFactor = 3
  2803. rng.Name = "Ring"
  2804. rng.Material = "Neon"
  2805. rng.Size = Vector3.new(1, 1, 1)
  2806. rng.Transparency = 0
  2807. rng.TopSurface = 0
  2808. rng.BottomSurface = 0
  2809. rng.CFrame = pos
  2810. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2811. local rngm = Instance.new("SpecialMesh", rng)
  2812. rngm.MeshType = "Brick"
  2813. rngm.Scale = vt(x1,y1,z1)
  2814. if rainbowmode == true then
  2815. rng.Color = Color3.new(r/255,g/255,b/255)
  2816. end
  2817. local scaler2 = 0
  2818. local speeder = FastSpeed/10
  2819. if type == "Add" then
  2820. scaler2 = 1*value
  2821. elseif type == "Divide" then
  2822. scaler2 = 1/value
  2823. end
  2824. coroutine.resume(coroutine.create(function()
  2825. for i = 0,10/bonuspeed,0.1 do
  2826. swait()
  2827. if rainbowmode == true then
  2828. rng.Color = Color3.new(r/255,g/255,b/255)
  2829. end
  2830. if type == "Add" then
  2831. scaler2 = scaler2 - 0.01*value/bonuspeed
  2832. elseif type == "Divide" then
  2833. scaler2 = scaler2 - 0.01/value*bonuspeed
  2834. end
  2835. if chaosmode == true then
  2836. rng.BrickColor = BrickColor.random()
  2837. end
  2838. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2839. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2840. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2841. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2842. end
  2843. rng:Destroy()
  2844. end))
  2845. end
  2846.  
  2847. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2848. local type = type
  2849. local rng = Instance.new("Part", workspace)
  2850. rng.Anchored = true
  2851. rng.BrickColor = color
  2852. rng.CanCollide = false
  2853. rng.FormFactor = 3
  2854. rng.Name = "Ring"
  2855. rng.Material = "Neon"
  2856. rng.Size = Vector3.new(1, 1, 1)
  2857. rng.Transparency = 0
  2858. rng.TopSurface = 0
  2859. rng.BottomSurface = 0
  2860. rng.CFrame = pos
  2861. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2862. local rngm = Instance.new("SpecialMesh", rng)
  2863. rngm.MeshType = "Sphere"
  2864. rngm.Scale = vt(x1,y1,z1)
  2865. if rainbowmode == true then
  2866. rng.Color = Color3.new(r/255,g/255,b/255)
  2867. end
  2868. local scaler2 = 1
  2869. local speeder = FastSpeed
  2870. if type == "Add" then
  2871. scaler2 = 1*value
  2872. elseif type == "Divide" then
  2873. scaler2 = 1/value
  2874. end
  2875. coroutine.resume(coroutine.create(function()
  2876. for i = 0,10/bonuspeed,0.1 do
  2877. swait()
  2878. if rainbowmode == true then
  2879. rng.Color = Color3.new(r/255,g/255,b/255)
  2880. end
  2881. if type == "Add" then
  2882. scaler2 = scaler2 - 0.01*value/bonuspeed
  2883. elseif type == "Divide" then
  2884. scaler2 = scaler2 - 0.01/value*bonuspeed
  2885. end
  2886. if chaosmode == true then
  2887. rng.BrickColor = BrickColor.random()
  2888. end
  2889. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2890. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2891. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2892. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2893. end
  2894. rng:Destroy()
  2895. end))
  2896. end
  2897.  
  2898.  
  2899. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2900. local type = type
  2901. local rng = Instance.new("Part", char)
  2902. rng.Anchored = true
  2903. rng.BrickColor = color
  2904. rng.CanCollide = false
  2905. rng.FormFactor = 3
  2906. rng.Name = "Ring"
  2907. rng.Material = "Neon"
  2908. rng.Size = Vector3.new(1, 1, 1)
  2909. rng.Transparency = 1
  2910. rng.TopSurface = 0
  2911. rng.BottomSurface = 0
  2912. rng.CFrame = pos
  2913. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2914. local rngm = Instance.new("SpecialMesh", rng)
  2915. rngm.MeshType = "Sphere"
  2916. rngm.Scale = vt(x1,y1,z1)
  2917. if rainbowmode == true then
  2918. rng.Color = Color3.new(r/255,g/255,b/255)
  2919. end
  2920. local scaler2 = 1
  2921. local speeder = FastSpeed
  2922. if type == "Add" then
  2923. scaler2 = 1*value
  2924. elseif type == "Divide" then
  2925. scaler2 = 1/value
  2926. end
  2927. coroutine.resume(coroutine.create(function()
  2928. for i = 0,10/bonuspeed,0.1 do
  2929. swait()
  2930. if rainbowmode == true then
  2931. rng.Color = Color3.new(r/255,g/255,b/255)
  2932. end
  2933. if type == "Add" then
  2934. scaler2 = scaler2 - 0.01*value/bonuspeed
  2935. elseif type == "Divide" then
  2936. scaler2 = scaler2 - 0.01/value*bonuspeed
  2937. end
  2938. if chaosmode == true then
  2939. rng.BrickColor = BrickColor.random()
  2940. end
  2941. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2942. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2943. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2944. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2945. end
  2946. rng:Destroy()
  2947. end))
  2948. end
  2949.  
  2950. function dmg(dude)
  2951. if dude.Name ~= Character then
  2952. local bgf = Instance.new("BodyGyro",dude.Head)
  2953. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2954. local val = Instance.new("BoolValue",dude)
  2955. val.Name = "IsHit"
  2956. local ds = coroutine.wrap(function()
  2957. dude:WaitForChild("Head"):BreakJoints()
  2958. wait(0.5)
  2959. targetted = nil
  2960. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  2961. coroutine.resume(coroutine.create(function()
  2962. for i, v in pairs(dude:GetChildren()) do
  2963. if v:IsA("Accessory") then
  2964. v:Destroy()
  2965. end
  2966. if v:IsA("Humanoid") then
  2967. v:Destroy()
  2968. end
  2969. if v:IsA("CharacterMesh") then
  2970. v:Destroy()
  2971. end
  2972. if v:IsA("Model") then
  2973. v:Destroy()
  2974. end
  2975. if v:IsA("Part") or v:IsA("MeshPart") then
  2976. for x, o in pairs(v:GetChildren()) do
  2977. if o:IsA("Decal") then
  2978. o:Destroy()
  2979. end
  2980. end
  2981. coroutine.resume(coroutine.create(function()
  2982. v.Material = "Neon"
  2983. v.CanCollide = false
  2984. local bld = Instance.new("ParticleEmitter",v)
  2985. bld.LightEmission = 1
  2986. bld.Texture = "rbxassetid://284205403"
  2987. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  2988. bld.Rate = 50
  2989. bld.Lifetime = NumberRange.new(1)
  2990. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  2991. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2992. bld.Speed = NumberRange.new(0,0)
  2993. bld.VelocitySpread = 50000
  2994. bld.Rotation = NumberRange.new(-500,500)
  2995. bld.RotSpeed = NumberRange.new(-500,500)
  2996. local sbs = Instance.new("BodyPosition", v)
  2997. sbs.P = 3000
  2998. sbs.D = 1000
  2999. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3000. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  3001. v.Color = Color3.new(1,1,1)
  3002. coroutine.resume(coroutine.create(function()
  3003. for i = 0, 49 do
  3004. swait(1)
  3005. v.Transparency = v.Transparency + 0.02
  3006. end
  3007. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  3008. bld.Speed = NumberRange.new(1,5)
  3009. bld.Acceleration = vt(0,10,0)
  3010. wait(0.5)
  3011. bld.Enabled = false
  3012. wait(3)
  3013. v:Destroy()
  3014. dude:Destroy()
  3015. end))
  3016. end))
  3017. end
  3018. end
  3019. end))
  3020. end)
  3021. ds()
  3022. end
  3023. end
  3024.  
  3025.  
  3026. function FindNearestHead(Position, Distance, SinglePlayer)
  3027. if SinglePlayer then
  3028. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3029. end
  3030. local List = {}
  3031. for i, v in pairs(workspace:GetChildren()) do
  3032. if v:IsA("Model") then
  3033. if v:findFirstChild("Head") then
  3034. if v ~= Character then
  3035. if (v.Head.Position - Position).magnitude <= Distance then
  3036. table.insert(List, v)
  3037. end
  3038. end
  3039. end
  3040. end
  3041. end
  3042. return List
  3043. end
  3044.  
  3045. function FaceMouse()
  3046. Cam = workspace.CurrentCamera
  3047. return {
  3048. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3049. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3050. }
  3051. end
  3052.  
  3053. function FaceMouse2()
  3054. Cam = workspace.CurrentCamera
  3055. return {
  3056. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3057. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3058. }
  3059. end
  3060.  
  3061. local ModeOfGlitch = 1
  3062. -- Functions are ready.
  3063. local storehumanoidWS = 16
  3064.  
  3065. function Blink()
  3066. for i = 0, 14 do
  3067. 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)
  3068. end
  3069. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3070. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3071. CameraEnshaking(2,10)
  3072. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3073. if v:FindFirstChild('Head') then
  3074. end
  3075. end
  3076. for i = 0, 14 do
  3077. 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)
  3078. end
  3079. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3080. end
  3081.  
  3082. function ExtinctiveHeartbreak()
  3083. local targetted = nil
  3084. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3085. targetted = mouse.Target.Parent
  3086. end
  3087. if targetted ~= nil then
  3088. attack = true
  3089. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3090. for i = 0, 9 do
  3091. 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("Really red"),0)
  3092. end
  3093. for i = 0, 24 do
  3094. 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("Really red"),0)
  3095. end
  3096. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3097. local originalpos = root.CFrame
  3098. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3099. for i = 0, 9 do
  3100. 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("Really red"),0)
  3101. end
  3102. for i = 0, 24 do
  3103. 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("Really red"),0)
  3104. end
  3105. hum.WalkSpeed = 0
  3106. targetted.Head.Anchored = true
  3107. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3108. for i = 0,2,0.1 do
  3109. swait()
  3110. 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)
  3111. 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)
  3112. 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)
  3113. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3114. 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)
  3115. 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)
  3116. end
  3117. coroutine.resume(coroutine.create(function()
  3118. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3119. bld.LightEmission = 0.1
  3120. bld.Texture = "rbxassetid://284205403"
  3121. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3122. bld.Rate = 500
  3123. bld.Lifetime = NumberRange.new(1)
  3124. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3125. bld.Acceleration = vt(0,-25,0)
  3126. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3127. bld.Speed = NumberRange.new(10,50)
  3128. bld.EmissionDirection = "Front"
  3129. bld.VelocitySpread = 25
  3130. bld.Rotation = NumberRange.new(-500,500)
  3131. bld.RotSpeed = NumberRange.new(-500,500)
  3132. end))
  3133. coroutine.resume(coroutine.create(function()
  3134. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3135. bld.LightEmission = 0.1
  3136. bld.Texture = "rbxassetid://284205403"
  3137. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3138. bld.Rate = 500
  3139. bld.Lifetime = NumberRange.new(1)
  3140. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3141. bld.Acceleration = vt(0,-25,0)
  3142. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3143. bld.Speed = NumberRange.new(10,50)
  3144. bld.EmissionDirection = "Front"
  3145. bld.VelocitySpread = 25
  3146. bld.Rotation = NumberRange.new(-500,500)
  3147. bld.RotSpeed = NumberRange.new(-500,500)
  3148. end))
  3149. CameraEnshaking(5,5)
  3150. game:GetService("Debris"):AddItem(bld,3)
  3151. dmg(targetted)
  3152. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3153. for i = 0,1,0.1 do
  3154. swait()
  3155. 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)
  3156. 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)
  3157. 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)
  3158. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3159. 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)
  3160. 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)
  3161. end
  3162. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3163. for i = 0, 9 do
  3164. 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("Really red"),0)
  3165. end
  3166. for i = 0, 24 do
  3167. 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("Really red"),0)
  3168. end
  3169. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3170. root.CFrame = originalpos
  3171. for i = 0, 9 do
  3172. 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("Really red"),0)
  3173. end
  3174. for i = 0, 24 do
  3175. 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("Really red"),0)
  3176. end
  3177. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3178. bld.Enabled = false
  3179. attack = false
  3180. hum.WalkSpeed = storehumanoidWS
  3181. end
  3182. end
  3183. function test()
  3184. attack = true
  3185. for i = 0, 2, 0.1 do
  3186. swait()
  3187. 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)
  3188. 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)
  3189. 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)
  3190. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3191. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3192. 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)
  3193. end
  3194. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3195. for i=1,20 do
  3196. 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)
  3197. swait()
  3198. end
  3199. swait(30)
  3200. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3201. for i =1,20 do
  3202. 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)
  3203. 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)
  3204. end
  3205. for i = 0,2,0.1 do
  3206. swait()
  3207. 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)
  3208. 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)
  3209. 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)
  3210. 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)
  3211. 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)
  3212. 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)
  3213. end
  3214. for i =1,20 do
  3215. 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)
  3216. end
  3217. text.TextTransparency = 1
  3218. text.TextStrokeTransparency = 1
  3219. tr2.Enabled = false
  3220. tr1.Enabled = false
  3221. tr3.Enabled = false
  3222. tl1.Enabled = false
  3223. tl2.Enabled = false
  3224. tl3.Enabled = false
  3225. sphere(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3226. eff = false
  3227. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3228. local invtab = {}
  3229. local function search(targ)
  3230. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3231. table.insert(invtab,targ)
  3232. end
  3233. for i,v in pairs(targ:GetChildren()) do
  3234. search(v)
  3235. end
  3236. end
  3237. search(plr.Character)
  3238. local frm = 0
  3239. local frmcon
  3240. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3241. if frm < 10 then
  3242. for i,v in pairs(invtab) do
  3243. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3244. v.Transparency = v.Transparency + 0.1
  3245. end
  3246. end
  3247. frm = frm + 1
  3248. else
  3249. frmcon:disconnect()
  3250. end
  3251. end)
  3252. swait(200)
  3253. text.TextTransparency = 0
  3254. text.TextStrokeTransparency = 0
  3255. tr2.Enabled = false
  3256. tr1.Enabled = false
  3257. tr3.Enabled = false
  3258. tl1.Enabled = false
  3259. tl2.Enabled = false
  3260. tl3.Enabled = false
  3261. eff = true
  3262. for i =1,20 do
  3263. 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)
  3264. end
  3265. sphere(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3266. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3267. local invtab = {}
  3268. local function search(targ)
  3269. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3270. table.insert(invtab,targ)
  3271. end
  3272. for i,v in pairs(targ:GetChildren()) do
  3273. search(v)
  3274. end
  3275. end
  3276. search(plr.Character)
  3277. local frm = 0
  3278. local frmcon
  3279. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3280. if frm < 10 then
  3281. for i,v in pairs(invtab) do
  3282. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3283. v.Transparency = v.Transparency - 0.1
  3284. end
  3285. end
  3286. frm = frm + 1
  3287. else
  3288. frmcon:disconnect()
  3289. end
  3290. end)
  3291. swait(5)
  3292. for i = 0, 2, 0.1 do
  3293. swait()
  3294. 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)
  3295. 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)
  3296. 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)
  3297. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3298. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3299. 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)
  3300. end
  3301. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3302. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3303. MagniDamage(root, 30, 65,90, 0, "Normal")
  3304. for i =1,20 do
  3305. 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)
  3306. end
  3307. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3308. for i =1,20 do
  3309. 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)
  3310. end
  3311. swait(20)
  3312. attack = false
  3313. tr2.Enabled = true
  3314. tr1.Enabled = true
  3315. tr3.Enabled = true
  3316. tl1.Enabled = true
  3317. tl2.Enabled = true
  3318. tl3.Enabled = true
  3319. end
  3320. function FinalCalam()
  3321. attack = true
  3322.  
  3323. local orb = Instance.new("Part", char)
  3324. orb.Anchored = true
  3325. orb.BrickColor = MAINRUINCOLOR
  3326. orb.CanCollide = false
  3327. orb.FormFactor = 3
  3328. orb.Name = "Ring"
  3329. orb.Material = "Neon"
  3330. orb.Size = Vector3.new(1, 1, 1)
  3331. orb.Transparency = 0
  3332. orb.TopSurface = 0
  3333. orb.BottomSurface = 0
  3334. local orbm = Instance.new("SpecialMesh", orb)
  3335. orbm.MeshType = "Sphere"
  3336. orbm.Name = "SizeMesh"
  3337. orbm.Scale = vt(0,0,0)
  3338. local scaled = 0.1
  3339. local posid = 0
  3340. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3341. for i = 0, 5, 0.1 do
  3342. swait()
  3343. scaled = scaled - 0.001
  3344. posid = posid - scaled
  3345. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3346. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3347. 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)
  3348. 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)
  3349. 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)
  3350. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3351. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3352. 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)
  3353. end
  3354. swait(60)
  3355. for i =1,3 do
  3356. swait(30)
  3357. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3358. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3359. end
  3360. swait(30)
  3361. for i = 0, 2, 0.1 do
  3362. swait()
  3363. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3364. 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)
  3365. 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)
  3366. 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)
  3367. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3368. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3369. 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)
  3370. end
  3371. swait(60)
  3372. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3373. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3374. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3375. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3376. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3377. if v:FindFirstChild('Head') then
  3378. dmg(v)
  3379. end
  3380. end
  3381. for i = 1,20 do
  3382. 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)
  3383. for i = 0, 10 do
  3384. 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)
  3385. end
  3386. end
  3387. orb:Remove()
  3388. attack = false
  3389. end
  3390. function PureBomb()
  3391. attack = true
  3392.  
  3393. local orb = Instance.new("Part", char)
  3394. orb.Anchored = true
  3395. orb.BrickColor = BrickColor.new("Toothpaste")
  3396. orb.CanCollide = false
  3397. orb.FormFactor = 3
  3398. orb.Name = "Ring"
  3399. orb.Material = "Neon"
  3400. orb.Size = Vector3.new(1, 1, 1)
  3401. orb.Transparency = 0
  3402. orb.TopSurface = 0
  3403. orb.BottomSurface = 0
  3404. local orbm = Instance.new("SpecialMesh", orb)
  3405. orbm.MeshType = "Sphere"
  3406. orbm.Name = "SizeMesh"
  3407. orbm.Scale = vt(0,0,0)
  3408. local scaled = 0.1
  3409. local posid = 0
  3410. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3411. for i = 0, 5, 0.1 do
  3412. swait()
  3413. scaled = scaled - 0.001
  3414. posid = posid - scaled
  3415. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3416. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3417. 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("Toothpaste"),10)
  3418. 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("Toothpaste"),0)
  3419. 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)
  3420. 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)
  3421. 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)
  3422. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3423. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3424. 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)
  3425. end
  3426. for i = 0, 2, 0.1 do
  3427. swait()
  3428. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3429. 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)
  3430. 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)
  3431. 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)
  3432. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3433. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3434. 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)
  3435. end
  3436. coroutine.resume(coroutine.create(function()
  3437. orb.Anchored = false
  3438. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3439. local a = Instance.new("Part",workspace)
  3440. a.Name = "Direction"
  3441. a.Anchored = true
  3442. a.BrickColor = bc("Bright red")
  3443. a.Material = "Neon"
  3444. a.Transparency = 1
  3445. a.CanCollide = false
  3446. local ray = Ray.new(
  3447. orb.CFrame.p, -- origin
  3448. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3449. )
  3450. local ignore = orb
  3451. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3452. a.BottomSurface = 10
  3453. a.TopSurface = 10
  3454. local distance = (orb.CFrame.p - position).magnitude
  3455. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3456. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3457. orb.CFrame = a.CFrame
  3458. a:Destroy()
  3459. local bv = Instance.new("BodyVelocity")
  3460. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3461. bv.velocity = orb.CFrame.lookVector*125
  3462. bv.Parent = orb
  3463. local hitted = false
  3464. game:GetService("Debris"):AddItem(orb, 15)
  3465. wait()
  3466. local hit =orb.Touched:connect(function(hit)
  3467. if hitted == false then
  3468. hitted = true
  3469. CameraEnshaking(10,2.5)
  3470. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3471. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3472. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3473. for i = 0, 49 do
  3474. 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("Toothpaste"),0)
  3475. end
  3476. for i = 0, 9 do
  3477. 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("Toothpaste"),0)
  3478. 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("Toothpaste"),0)
  3479. end
  3480. orb.Anchored = true
  3481. orb.Transparency = 1
  3482. wait(8)
  3483. orb:Destroy()
  3484. end
  3485. end)
  3486. end))
  3487. for i = 0, 1, 0.1 do
  3488. swait()
  3489. 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)
  3490. 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)
  3491. 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)
  3492. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3493. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3494. 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)
  3495. end
  3496. attack = false
  3497. end
  3498.  
  3499. function ChaosGroundStrike()
  3500. attack = true
  3501. for i = 0, 2, 0.1 do
  3502. swait()
  3503. 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)
  3504. 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)
  3505. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3506. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3507. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3508. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3509. end
  3510. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3511. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3512. CameraEnshaking(4,12)
  3513. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3514. if v:FindFirstChild('Head') then
  3515. dmg(v)
  3516. end
  3517. end
  3518. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3519. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3520. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3521. for i = 0, 2, 0.1 do
  3522. swait()
  3523. 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.random(),0)
  3524. 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.random(),0)
  3525. 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)
  3526. 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)
  3527. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3528. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3529. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3530. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3531. end
  3532. attack = false
  3533. end
  3534.  
  3535. function Starfall()
  3536. attack = true
  3537. hum.WalkSpeed = 0
  3538. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3539. for i = 0, 5, 0.1 do
  3540. swait()
  3541. 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)
  3542. 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)
  3543. 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)
  3544. 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)
  3545. 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)
  3546. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3547. 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)
  3548. 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)
  3549. end
  3550. local Overed = false
  3551. CameraEnshaking(2,20)
  3552. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3553. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3554. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3555. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3556. local orb = Instance.new("Part", char)
  3557. orb.Anchored = true
  3558. orb.BrickColor = BrickColor.new("Toothpaste")
  3559. orb.CanCollide = false
  3560. orb.FormFactor = 3
  3561. orb.Name = "Remenant"
  3562. orb.Material = "Neon"
  3563. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3564. orb.Size = Vector3.new(1, 1, 1)
  3565. orb.Transparency = 1
  3566. orb.TopSurface = 0
  3567. orb.BottomSurface = 0
  3568. hum.WalkSpeed = storehumanoidWS
  3569. coroutine.resume(coroutine.create(function()
  3570. for i = 0, 9 do
  3571. swait(10)
  3572. local lb = Instance.new("Part")
  3573. lb.Color = MAINRUINCOLOR.Color
  3574. lb.CanCollide = false
  3575. lb.Material = "Neon"
  3576. lb.Anchored = true
  3577. lb.TopSurface = 0
  3578. lb.BottomSurface = 0
  3579. lb.Transparency = 0
  3580. lb.Size = vt(1,1,1)
  3581. 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)))
  3582. lb.Anchored = false
  3583. lb.Parent = char
  3584. local thingery = Instance.new("SpecialMesh",lb)
  3585. thingery.MeshType = "Sphere"
  3586. thingery.Scale = vt(20,20,20)
  3587. game:GetService("Debris"):AddItem(lb, 10)
  3588. local bv = Instance.new("BodyVelocity")
  3589. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3590. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3591. bv.Parent = lb
  3592. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3593. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3594. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3595. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3596. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3597. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3598. local hitted = false
  3599. coroutine.resume(coroutine.create(function()
  3600. while true do
  3601. swait(1)
  3602. if lb.Parent ~= nil and hitted == false then
  3603. 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)
  3604. elseif lb.Parent == nil then
  3605. break
  3606. end
  3607. end
  3608. end))
  3609.  
  3610. game:GetService("Debris"):AddItem(a, 0.1)
  3611.  
  3612. coroutine.resume(coroutine.create(function()
  3613. swait(1)
  3614. lb.Touched:connect(function(hit)
  3615. if hitted == false then
  3616. hitted = true
  3617. lb.Transparency = 1
  3618. lb.Anchored = true
  3619. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3620. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3621. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3622. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3623. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3624. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3625. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3626. CameraEnshaking(1,5)
  3627. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3628. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3629. for i = 0, 9 do
  3630. 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)
  3631. end
  3632. for i = 0, 49 do
  3633. swait()
  3634. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3635. 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)
  3636. end
  3637. end
  3638. end)
  3639. end))
  3640. end
  3641. Overed = true
  3642. orb:Destroy()
  3643. end))
  3644.  
  3645. attack = false
  3646. end
  3647.  
  3648. function StarfallEX()
  3649. attack = true
  3650. hum.WalkSpeed = 0
  3651. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3652. for i = 0, 5, 0.1 do
  3653. swait()
  3654. 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)
  3655. 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)
  3656. 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)
  3657. 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)
  3658. 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)
  3659. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3660. 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)
  3661. 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)
  3662. end
  3663. local Overed = false
  3664. CameraEnshaking(2,20)
  3665. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3666. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3667. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3668. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3669. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3670. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3671. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3672. local orb = Instance.new("Part", char)
  3673. orb.Anchored = true
  3674. orb.BrickColor = BrickColor.new("Toothpaste")
  3675. orb.CanCollide = false
  3676. orb.FormFactor = 3
  3677. orb.Name = "Remenant"
  3678. orb.Material = "Neon"
  3679. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3680. orb.Size = Vector3.new(1, 1, 1)
  3681. orb.Transparency = 1
  3682. orb.TopSurface = 0
  3683. orb.BottomSurface = 0
  3684. hum.WalkSpeed = storehumanoidWS
  3685. coroutine.resume(coroutine.create(function()
  3686. for i = 0, 9 do
  3687. swait(10)
  3688. local lb = Instance.new("Part")
  3689. lb.Color = MAINRUINCOLOR.Color
  3690. lb.CanCollide = false
  3691. lb.Material = "Neon"
  3692. lb.Anchored = true
  3693. lb.TopSurface = 0
  3694. lb.BottomSurface = 0
  3695. lb.Transparency = 0
  3696. lb.Size = vt(1,1,1)
  3697. 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)))
  3698. lb.Anchored = false
  3699. lb.Parent = char
  3700. local thingery = Instance.new("SpecialMesh",lb)
  3701. thingery.MeshType = "Sphere"
  3702. thingery.Scale = vt(20,20,20)
  3703. game:GetService("Debris"):AddItem(lb, 10)
  3704. local bv = Instance.new("BodyVelocity")
  3705. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3706. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3707. bv.Parent = lb
  3708. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3709. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3710. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3711. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3712. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3713. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3714. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3715. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3716. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3717. local hitted = false
  3718. coroutine.resume(coroutine.create(function()
  3719. while true do
  3720. swait(1)
  3721. if lb.Parent ~= nil and hitted == false then
  3722. 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)
  3723. 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)
  3724. elseif lb.Parent == nil then
  3725. break
  3726. end
  3727. end
  3728. end))
  3729.  
  3730. game:GetService("Debris"):AddItem(a, 0.1)
  3731.  
  3732. coroutine.resume(coroutine.create(function()
  3733. swait(1)
  3734. lb.Touched:connect(function(hit)
  3735. if hitted == false then
  3736. hitted = true
  3737. lb.Transparency = 1
  3738. lb.Anchored = true
  3739. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3740. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3741. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3742. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3743. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3744. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3745. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3746. CameraEnshaking(10,5)
  3747. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3748. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3749. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3750. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3751. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3752. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3753. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3754. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3755. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3756. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3757. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3758. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3759. for i = 0, 9 do
  3760. 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)
  3761. 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)
  3762. 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)
  3763. 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)
  3764. 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)
  3765. 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)
  3766. end
  3767. for i = 0, 49 do
  3768. swait()
  3769. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  3770. 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)
  3771. 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)
  3772. 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)
  3773. end
  3774. end
  3775. end)
  3776. end))
  3777. end
  3778. Overed = true
  3779. orb:Destroy()
  3780. end))
  3781.  
  3782. attack = false
  3783. end
  3784.  
  3785. function StarDivision()
  3786. attack = true
  3787. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3788. for i = 0, 2, 0.1 do
  3789. swait()
  3790. 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)
  3791. 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)
  3792. 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)
  3793. 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)
  3794. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3795. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3796. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  3797. end
  3798. local orb = Instance.new("Part", char)
  3799. orb.BrickColor = MAINRUINCOLOR
  3800. orb.CanCollide = false
  3801. orb.FormFactor = 3
  3802. orb.Name = "Ring"
  3803. orb.Material = "Neon"
  3804. orb.Size = Vector3.new(1, 1, 1)
  3805. orb.Transparency = 0
  3806. orb.TopSurface = 0
  3807. orb.BottomSurface = 0
  3808. local orbm = Instance.new("SpecialMesh", orb)
  3809. orbm.MeshType = "Sphere"
  3810. orbm.Name = "SizeMesh"
  3811. orbm.Scale = vt(2,2,2)
  3812. local a = Instance.new("Part",workspace)
  3813. a.Name = "Direction"
  3814. a.Anchored = true
  3815. a.BrickColor = bc("Bright red")
  3816. a.Material = "Neon"
  3817. a.Transparency = 1
  3818. a.CanCollide = false
  3819. local ray = Ray.new(
  3820. sorb.CFrame.p, -- origin
  3821. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3822. )
  3823. local ignore = sorb
  3824. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3825. a.BottomSurface = 10
  3826. a.TopSurface = 10
  3827. local distance = (sorb.CFrame.p - position).magnitude
  3828. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3829. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3830. orb.CFrame = a.CFrame
  3831. a:Destroy()
  3832. local bv = Instance.new("BodyVelocity")
  3833. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3834. bv.velocity = orb.CFrame.lookVector*100
  3835. bv.Parent = orb
  3836. local hitted = false
  3837. game:GetService("Debris"):AddItem(orb, 10)
  3838. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3839. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3840. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3841. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3842. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3843. coroutine.resume(coroutine.create(function()
  3844. while true do
  3845. swait(1)
  3846. if orb.Parent ~= nil and hitted == false then
  3847. 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)
  3848. elseif orb.Parent == nil then
  3849. break
  3850. end
  3851. end
  3852. end))
  3853. coroutine.resume(coroutine.create(function()
  3854. swait(1)
  3855. orb.Touched:connect(function(hit)
  3856. if hitted == false then
  3857. hitted = true
  3858. game:GetService("Debris"):AddItem(orb, 5)
  3859. orb.Transparency = 1
  3860. orb.Anchored = true
  3861. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3862. elocacenter.Anchored = true
  3863. elocacenter.CFrame = orb.CFrame
  3864. elocacenter.Orientation = vt(0,0,0)
  3865. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3866. eloca1.Anchored = true
  3867. eloca1.CFrame = elocacenter.CFrame
  3868. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3869. eloca2.Anchored = true
  3870. eloca2.CFrame = elocacenter.CFrame
  3871. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3872. eloca3.Anchored = true
  3873. eloca3.CFrame = elocacenter.CFrame
  3874. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3875. eloca4.Anchored = true
  3876. eloca4.CFrame = elocacenter.CFrame
  3877. local lookavec = 0
  3878. local speeds = 0
  3879. CameraEnshaking(1,1)
  3880. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  3881. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3882. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3883. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3884. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3885. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3886. for i = 0, 99 do
  3887. swait()
  3888. lookavec = lookavec + 1
  3889. speeds = speeds + 0.1
  3890. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3891. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3892. 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)
  3893.  
  3894. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3895. 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)
  3896.  
  3897. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3898. 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)
  3899.  
  3900. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3901. 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)
  3902. end
  3903.  
  3904. for i = 0, 149 do
  3905. swait()
  3906. speeds = speeds + 0.1
  3907. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3908. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3909. 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)
  3910.  
  3911. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3912. 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)
  3913.  
  3914. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3915. 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)
  3916.  
  3917. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3918. 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)
  3919. end
  3920. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  3921. if v:FindFirstChild('Head') then
  3922. dmg(v)
  3923. end
  3924. end
  3925. CameraEnshaking(7,30)
  3926. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  3927. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  3928. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  3929. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  3930. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  3931. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  3932. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  3933. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3934. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3935. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3936. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3937. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3938. for i = 0, 24 do
  3939. 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)
  3940. 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)
  3941. 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)
  3942. 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)
  3943. end
  3944. coroutine.resume(coroutine.create(function()
  3945. for i = 0, 499 do
  3946. swait(1)
  3947. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  3948. 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)
  3949. end
  3950. elocacenter:Destroy()
  3951. eloca1:Destroy()
  3952. eloca2:Destroy()
  3953. eloca3:Destroy()
  3954. eloca4:Destroy()
  3955. end))
  3956. end
  3957. end)
  3958. end))
  3959. attack = false
  3960. end
  3961.  
  3962.  
  3963. function UniversalCollapse()
  3964. attack = true
  3965. local speedearn = 0
  3966. hum.WalkSpeed = 0
  3967. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  3968. for i = 0, 10, 0.1 do
  3969. swait()
  3970. speedearn = speedearn + 0.1
  3971. 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)
  3972. 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)
  3973. 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)
  3974. 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)
  3975. 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)
  3976. 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)
  3977. 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)
  3978. 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)
  3979. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  3980. 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)
  3981. 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)
  3982. end
  3983. CameraEnshaking(5,45)
  3984. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  3985. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  3986. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3987. if v:FindFirstChild('Head') then
  3988. dmg(v)
  3989. end
  3990. end
  3991. hum.WalkSpeed = storehumanoidWS
  3992. attack = false
  3993. end
  3994. function ChaosBegone()
  3995. attack = true
  3996. local speedearn = 0
  3997. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  3998. for i = 0, 10, 0.1 do
  3999. swait()
  4000. speedearn = speedearn + 0.1
  4001. 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)
  4002. 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)
  4003. 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)
  4004. 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)
  4005. 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)
  4006. 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)
  4007. 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)
  4008. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4009. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4010. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4011. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4012. end
  4013. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4014. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  4015. CameraEnshaking(5,25)
  4016. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4017. if v:FindFirstChild('Head') then
  4018. dmg(v)
  4019. end
  4020. end
  4021. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4022. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4023. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4024. for i = 0, 3, 0.1 do
  4025. swait()
  4026. 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)
  4027. 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)
  4028. 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)
  4029. 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)
  4030. 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)
  4031. 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)
  4032. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4033. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4034. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4035. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4036. end
  4037. attack = false
  4038. end
  4039.  
  4040. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4041. local orb = Instance.new("Part", char)
  4042. orb.Anchored = true
  4043. orb.BrickColor = color
  4044. orb.CanCollide = false
  4045. orb.FormFactor = 3
  4046. orb.Name = "Ring"
  4047. orb.Material = "Neon"
  4048. orb.Size = Vector3.new(1, 1, 1)
  4049. orb.Transparency = 0
  4050. orb.TopSurface = 0
  4051. orb.BottomSurface = 0
  4052. local orbm = Instance.new("SpecialMesh", orb)
  4053. orbm.MeshType = "Sphere"
  4054. orb.CFrame = positted
  4055. orbm.Name = "SizeMesh"
  4056. orbm.Scale = vt(1,1,1)
  4057. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4058. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4059. --[[for i = 0, 2 do
  4060. 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)
  4061. end]]--
  4062. coroutine.resume(coroutine.create(function()
  4063. wait(timer)
  4064. CameraEnshaking(3,ShakePower)
  4065. orb.Transparency = 1
  4066. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4067. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4068. --[[for i = 0, 4 do
  4069. 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)
  4070. end]]--
  4071. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4072. wait(3)
  4073. orb:Destroy()
  4074. end))
  4075. end
  4076.  
  4077. function orb_spawn(positted,timer)
  4078. local randomcol = math.random(1,2)
  4079. local orb = Instance.new("Part", char)
  4080. orb.Anchored = true
  4081. if randomcol == 1 then
  4082. orb.BrickColor = BrickColor.new("White")
  4083. elseif randomcol == 2 then
  4084. orb.BrickColor = BrickColor.new("Really black")
  4085. end
  4086. orb.CanCollide = false
  4087. orb.FormFactor = 3
  4088. orb.Name = "Ring"
  4089. orb.Material = "Neon"
  4090. orb.Size = Vector3.new(1, 1, 1)
  4091. orb.Transparency = 0
  4092. orb.TopSurface = 0
  4093. orb.BottomSurface = 0
  4094. local orbm = Instance.new("SpecialMesh", orb)
  4095. orbm.MeshType = "Sphere"
  4096. orb.CFrame = positted
  4097. orbm.Name = "SizeMesh"
  4098. orbm.Scale = vt(1,1,1)
  4099. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4100. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4101. for i = 0, 2 do
  4102. 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)
  4103. end
  4104. coroutine.resume(coroutine.create(function()
  4105. wait(timer)
  4106. CameraEnshaking(3,2)
  4107. orb.Transparency = 1
  4108. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4109. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4110. for i = 0, 4 do
  4111. 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)
  4112. end
  4113. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4114. wait(3)
  4115. orb:Destroy()
  4116. end))
  4117. end
  4118.  
  4119. function scattercorrupt()
  4120. attack = true
  4121. local rot = 0
  4122. local randomrotations = math.random(1,2)
  4123. local lookv = 2.5
  4124. local power = 5
  4125. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4126. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4127. for i = 0, 9 do
  4128. 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("Royal purple"),0)
  4129. end
  4130. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4131. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4132. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4133. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4134. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4135. local hite = Instance.new("Part", char)
  4136. hite.Anchored = true
  4137. hite.CanCollide = false
  4138. hite.FormFactor = 3
  4139. hite.Name = "Ring"
  4140. hite.Material = "Neon"
  4141. hite.Size = Vector3.new(1, 1, 1)
  4142. hite.Transparency = 1
  4143. hite.TopSurface = 0
  4144. hite.BottomSurface = 0
  4145. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4146. local rem = Instance.new("Part", char)
  4147. rem.Anchored = true
  4148. rem.CanCollide = false
  4149. rem.FormFactor = 3
  4150. rem.Name = "Ring"
  4151. rem.Material = "Neon"
  4152. rem.Size = Vector3.new(1, 1, 1)
  4153. rem.Transparency = 1
  4154. rem.TopSurface = 0
  4155. rem.BottomSurface = 0
  4156. rem.CFrame = hite.CFrame
  4157. local rem2 = rem:Clone()
  4158. rem2.Parent = char
  4159. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4160. local rem3 = rem:Clone()
  4161. rem3.Parent = char
  4162. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4163. local rem4 = rem:Clone()
  4164. rem4.Parent = char
  4165. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4166. hite:Destroy()
  4167. coroutine.resume(coroutine.create(function()
  4168. for i = 0, 24 do
  4169. swait(1)
  4170. if randomrotations == 1 then
  4171. rot = rot + 1
  4172. elseif randomrotations == 2 then
  4173. rot = rot - 1
  4174. end
  4175. power = power + 0.5
  4176. lookv = lookv + 7.5
  4177. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4178. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4179. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4180. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4181. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4182. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4183. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4184. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4185. end
  4186. end))
  4187. attack = false
  4188. end
  4189. function yinyangi()
  4190. attack = true
  4191. for i = 0, 2, 0.1 do
  4192. swait()
  4193. 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)
  4194. 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)
  4195. 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)
  4196. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4197. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4198. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4199. end
  4200. local bv = Instance.new("BodyVelocity")
  4201. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4202. bv.velocity = root.CFrame.lookVector*175
  4203. bv.Parent = root
  4204. for Rotations = 0, 9 do
  4205. for i = 0, 1, 0.5 do
  4206. swait()
  4207. bv.velocity = root.CFrame.lookVector*175
  4208. 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)
  4209. 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)
  4210. 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)
  4211. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4212. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4213. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4214. end
  4215. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4216. for i = 0, 1, 0.5 do
  4217. swait()
  4218. bv.velocity = root.CFrame.lookVector*175
  4219. 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)
  4220. 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)
  4221. 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)
  4222. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4223. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4224. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4225. end
  4226. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4227. for i = 0, 1, 0.5 do
  4228. swait()
  4229. bv.velocity = root.CFrame.lookVector*175
  4230. 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)
  4231. 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)
  4232. 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)
  4233. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4234. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4235. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4236. end
  4237. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4238. for i = 0, 1, 0.5 do
  4239. swait()
  4240. bv.velocity = root.CFrame.lookVector*175
  4241. 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)
  4242. 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)
  4243. 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)
  4244. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4245. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4246. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4247. end
  4248. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4249. end
  4250. bv:Destroy()
  4251. attack = false
  4252. end
  4253.  
  4254. function Wip()
  4255. attack = true
  4256.  
  4257. local rngb = Instance.new("Part", char)
  4258. rngb.Anchored = true
  4259. rngb.BrickColor = origcolor
  4260. rngb.CanCollide = false
  4261. rngb.FormFactor = 3
  4262. rngb.Name = "Ring"
  4263. rngb.Material = "Neon"
  4264. rngb.Size = Vector3.new(1, 0.05, 1)
  4265. rngb.Transparency = 1
  4266. rngb.TopSurface = 0
  4267. rngb.BottomSurface = 0
  4268. local rngmb = Instance.new("SpecialMesh", rngb)
  4269. rngmb.MeshType = "Brick"
  4270. rngmb.Name = "SizeMesh"
  4271. rngmb.Scale = vt(0,1,0)
  4272.  
  4273. local orb = rngb:Clone()
  4274. orb.Parent = char
  4275. orb.Transparency = 0
  4276. orb.BrickColor = BrickColor.new("White")
  4277. orb.Size = vt(1,1,1)
  4278. local orbmish = orb.SizeMesh
  4279. orbmish.Scale = vt(0,0,0)
  4280. orbmish.MeshType = "Sphere"
  4281.  
  4282. local orbe = rngb:Clone()
  4283. orbe.Parent = char
  4284. orbe.Transparency = 0.5
  4285. orbe.BrickColor = BrickColor.new("New Yeller")
  4286. orbe.Size = vt(1,1,1)
  4287. local orbmish2 = orbe.SizeMesh
  4288. orbmish2.Scale = vt(0,0,0)
  4289. orbmish2.MeshType = "Sphere"
  4290. orbe.Color = Color3.new(r/255,g/255,b/255)
  4291.  
  4292. rngb:Destroy()
  4293. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4294. local scaled = 1
  4295. for i = 0,5,0.1 do
  4296. swait()
  4297. scaled = scaled - 0.02
  4298. if rainbowmode == true then
  4299. orbe.Color = Color3.new(r/255,g/255,b/255)
  4300. end
  4301. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4302. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4303. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4304. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4305. 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)
  4306. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4307. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4308. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4309. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4310. 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)
  4311. 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)
  4312. RootPart.CFrame = FaceMouse()[1]
  4313. end]]--
  4314. for i = 0,5,0.1 do
  4315. swait()
  4316. if rainbowmode == true then
  4317. orbe.Color = Color3.new(r/255,g/255,b/255)
  4318. end
  4319. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4320. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4321. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4322. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4323. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4324. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4325. 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)
  4326. 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)
  4327. RootPart.CFrame = FaceMouse()[1]
  4328. end
  4329. orbe.Transparency = 1
  4330. orb.Transparency = 1
  4331. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4332. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4333. local a = Instance.new("Part",Character)
  4334. a.Name = "Direction"
  4335. a.Anchored = true
  4336. a.BrickColor = bc("White")
  4337. a.Material = "Neon"
  4338. a.Transparency = 0
  4339. a.Shape = "Cylinder"
  4340. a.CanCollide = false
  4341. local a2 = Instance.new("Part",Character)
  4342. a2.Name = "Direction"
  4343. a2.Anchored = true
  4344. a2.BrickColor = bc("New Yeller")
  4345. a2.Color = Color3.new(r/255,g/255,b/255)
  4346. a2.Material = "Neon"
  4347. a2.Transparency = 0.5
  4348. a2.Shape = "Cylinder"
  4349. a2.CanCollide = false
  4350. local ba = Instance.new("Part",Character)
  4351. ba.Name = "HitDirect"
  4352. ba.Anchored = true
  4353. ba.BrickColor = bc("Cool yellow")
  4354. ba.Material = "Neon"
  4355. ba.Transparency = 1
  4356. ba.CanCollide = false
  4357. local ray = Ray.new(
  4358. orb.CFrame.p, -- origin
  4359. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4360. )
  4361. local ignore = Character
  4362. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4363. a.BottomSurface = 10
  4364. a.TopSurface = 10
  4365. a2.BottomSurface = 10
  4366. a2.TopSurface = 10
  4367. local distance = (orb.CFrame.p - position).magnitude
  4368. a.Size = Vector3.new(distance, 1, 1)
  4369. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4370. a2.Size = Vector3.new(distance, 1, 1)
  4371. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4372. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4373. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4374. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4375. game:GetService("Debris"):AddItem(a, 20)
  4376. game:GetService("Debris"):AddItem(a2, 20)
  4377. game:GetService("Debris"):AddItem(ba, 20)
  4378. local msh = Instance.new("SpecialMesh",a)
  4379. msh.MeshType = "Cylinder"
  4380. msh.Scale = vt(1,5*5,5*5)
  4381. local msh2 = Instance.new("SpecialMesh",a2)
  4382. msh2.MeshType = "Cylinder"
  4383. msh2.Scale = vt(1,6*5,6*5)
  4384.  
  4385. for i = 0,10,0.1 do
  4386. swait()
  4387. CameraEnshaking(1,5)
  4388. a2.Color = Color3.new(r/255,g/255,b/255)
  4389. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4390. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4391. ray = Ray.new(
  4392. orb.CFrame.p, -- origin
  4393. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4394. )
  4395. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4396. distance = (orb.CFrame.p - position).magnitude
  4397. if typrot == 1 then
  4398. rotation = rotation + 2.5
  4399. elseif typrot == 2 then
  4400. rotation = rotation - 2.5
  4401. end
  4402. RootPart.CFrame = FaceMouse()[1]
  4403. a.Size = Vector3.new(distance, 1, 1)
  4404. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4405. a2.Size = Vector3.new(distance, 1, 1)
  4406. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4407. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4408. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4409. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4410. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4411. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  4412. 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)
  4413. 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)
  4414. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4415. end
  4416. a:Destroy()
  4417. a2:Destroy()
  4418. ba:Destroy()
  4419. orb:Destroy()
  4420. orbe:Destroy()
  4421. attack = false
  4422. end
  4423. function HolyBarrier()
  4424. attack = true
  4425. for i = 0, 2, 0.1 do
  4426. swait()
  4427. 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)
  4428. 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)
  4429. 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)
  4430. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  4431. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  4432. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  4433. end
  4434. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  4435. stash = Instance.new("Model",workspace)
  4436. local barrier = Instance.new("Part",stash)
  4437. barrier.Anchored = true
  4438. barrier.CanCollide = false
  4439. barrier.Size = Vector3.new(20,20,20)
  4440. barrier.CFrame = root.CFrame
  4441. barrier.Transparency = 0.6
  4442. barrier.BrickColor = MAINRUINCOLOR
  4443. barrier.Material = Enum.Material.Neon
  4444. barrier.Shape = Enum.PartType.Ball
  4445. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4446. Torso.Anchored = true
  4447. shielding = true
  4448. for i=1,50 do
  4449. local p = Instance.new("Part",stash)
  4450. p.Anchored = true
  4451. p.Transparency = 1
  4452. p.Size = Vector3.new(11,11,11)
  4453. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  4454. end
  4455. end
  4456. function Judgement()
  4457. attack = true
  4458. hum.WalkSpeed = 0
  4459. local p = Instance.new("Part",root)
  4460. p.Anchored = true
  4461. p.CanCollide = false
  4462. p.BrickColor = MAINRUINCOLOR
  4463. p.Material = Enum.Material.Neon
  4464. p.Size = Vector3.new(1,1,1)
  4465. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4466. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4467. local m = Instance.new("SpecialMesh",p)
  4468. m.MeshType = "Cylinder"
  4469. m.Scale = Vector3.new(2000,2,2)
  4470. local targ = Instance.new("Part",root)
  4471. targ.Transparency = 1
  4472. targ.CanCollide = false
  4473. targ.Size = Vector3.new(1,1,1)
  4474. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4475. CFuncs.Sound.Create("rbxassetid://164178927", targ, 5, 1)
  4476. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4477. for i = 1,15 do
  4478. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4479. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4480. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4481. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4482. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4483. 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)
  4484. 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)
  4485. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4486. 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)
  4487. m.Scale = m.Scale+Vector3.new(0,1,1)
  4488. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4489. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4490. swait()
  4491. end
  4492. 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)
  4493. for i = 1,200 do
  4494. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4495. 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)
  4496. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4497. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4498. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4499. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4500. swait()
  4501. end
  4502. for i =1,15 do
  4503. m.Scale = m.Scale-Vector3.new(1,1,1)
  4504. p.Transparency = i / 15
  4505. swait()
  4506. end
  4507. p:Destroy()
  4508. hum.WalkSpeed = storehumanoidWS
  4509. attack = false
  4510. end
  4511.  
  4512. function UniversalSpark()
  4513. attack = true
  4514.  
  4515. local rngb = Instance.new("Part", char)
  4516. rngb.Anchored = true
  4517. rngb.BrickColor = origcolor
  4518. rngb.CanCollide = false
  4519. rngb.FormFactor = 3
  4520. rngb.Name = "Ring"
  4521. rngb.Material = "Neon"
  4522. rngb.Size = Vector3.new(1, 0.05, 1)
  4523. rngb.Transparency = 1
  4524. rngb.TopSurface = 0
  4525. rngb.BottomSurface = 0
  4526. local rngmb = Instance.new("SpecialMesh", rngb)
  4527. rngmb.MeshType = "Brick"
  4528. rngmb.Name = "SizeMesh"
  4529. rngmb.Scale = vt(0,1,0)
  4530.  
  4531. local orb = rngb:Clone()
  4532. orb.Parent = char
  4533. orb.Transparency = 0
  4534. orb.BrickColor = BrickColor.new("White")
  4535. orb.Size = vt(1,1,1)
  4536. local orbmish = orb.SizeMesh
  4537. orbmish.Scale = vt(0,0,0)
  4538. orbmish.MeshType = "Sphere"
  4539.  
  4540. local orbe = rngb:Clone()
  4541. orbe.Parent = char
  4542. orbe.Transparency = 0.5
  4543. orbe.BrickColor = BrickColor.new("New Yeller")
  4544. orbe.Size = vt(1,1,1)
  4545. local orbmish2 = orbe.SizeMesh
  4546. orbmish2.Scale = vt(0,0,0)
  4547. orbmish2.MeshType = "Sphere"
  4548. orbe.Color = Color3.new(r/255,g/255,b/255)
  4549.  
  4550. rngb:Destroy()
  4551. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4552. local scaled = 1
  4553. for i = 0,5,0.1 do
  4554. swait()
  4555. scaled = scaled - 0.02
  4556. if rainbowmode == true then
  4557. orbe.Color = Color3.new(r/255,g/255,b/255)
  4558. end
  4559. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4560. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4561. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4562. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4563. 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)
  4564. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4565. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4566. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4567. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4568. 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)
  4569. 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)
  4570. RootPart.CFrame = FaceMouse()[1]
  4571. end]]--
  4572. for i = 0,5,0.1 do
  4573. swait()
  4574. if rainbowmode == true then
  4575. orbe.Color = Color3.new(r/255,g/255,b/255)
  4576. end
  4577. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4578. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4579. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4580. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4581. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4582. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4583. 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)
  4584. 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)
  4585. RootPart.CFrame = FaceMouse()[1]
  4586. end
  4587. orbe.Transparency = 1
  4588. orb.Transparency = 1
  4589. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4590. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  4591. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  4592. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4593.  
  4594. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4595. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  4596. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4597. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  4598. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  4599. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  4600. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  4601. local xd= Instance.new("Sound",char)
  4602. xd.SoundId = "rbxassetid://445796828"
  4603. xd.Pitch = 0.75
  4604. xd.Looped = true
  4605. xd.Volume = 1.25
  4606. xd:Play()
  4607. local a = Instance.new("Part",Character)
  4608. a.Name = "Direction"
  4609. a.Anchored = true
  4610. a.BrickColor = bc("Alder")
  4611. a.Color = MAINRUINCOLOR.Color
  4612. a.Material = "Neon"
  4613. a.Transparency = 0.5
  4614. a.Shape = "Cylinder"
  4615. a.CanCollide = false
  4616. local a2 = Instance.new("Part",Character)
  4617. a2.Name = "Direction"
  4618. a2.Anchored = true
  4619. a2.BrickColor = bc("New Yeller")
  4620. a2.Color = MAINRUINCOLOR.Color
  4621. a2.Material = "Neon"
  4622. a2.Transparency = 0.5
  4623. a2.Shape = "Cylinder"
  4624. a2.CanCollide = false
  4625. local ba = Instance.new("Part",Character)
  4626. ba.Name = "HitDirect"
  4627. ba.Anchored = true
  4628. ba.BrickColor = bc("Cool yellow")
  4629. ba.Material = "Neon"
  4630. ba.Transparency = 1
  4631. ba.CanCollide = false
  4632. local ray = Ray.new(
  4633. orb.CFrame.p, -- origin
  4634. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4635. )
  4636. local ignore = Character
  4637. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4638. a.BottomSurface = 10
  4639. a.TopSurface = 10
  4640. a2.BottomSurface = 10
  4641. a2.TopSurface = 10
  4642. local distance = (orb.CFrame.p - position).magnitude
  4643. a.Size = Vector3.new(distance, 1, 1)
  4644. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4645. a2.Size = Vector3.new(distance, 1, 1)
  4646. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4647. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4648. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4649. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4650. game:GetService("Debris"):AddItem(a, 60)
  4651. game:GetService("Debris"):AddItem(a2, 60)
  4652. game:GetService("Debris"):AddItem(ba, 60)
  4653. local outerscale = 0
  4654. local msh = Instance.new("SpecialMesh",a)
  4655. msh.MeshType = "Cylinder"
  4656. msh.Scale = vt(1,0,0)
  4657. local msh2 = Instance.new("SpecialMesh",a2)
  4658. msh2.MeshType = "Cylinder"
  4659. msh2.Scale = vt(1,0,0)
  4660. for i = 0,2,0.1 do
  4661. swait()
  4662. CameraEnshaking(1,1)
  4663. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  4664. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  4665. outerscale = outerscale - 0.015
  4666. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4667. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4668. ray = Ray.new(
  4669. orb.CFrame.p, -- origin
  4670. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4671. )
  4672. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4673. distance = (orb.CFrame.p - position).magnitude
  4674. if typrot == 1 then
  4675. rotation = rotation + 2.5
  4676. elseif typrot == 2 then
  4677. rotation = rotation - 2.5
  4678. end
  4679. RootPart.CFrame = FaceMouse()[1]
  4680. a.Size = Vector3.new(distance, 1, 1)
  4681. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4682. a2.Size = Vector3.new(distance, 1, 1)
  4683. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4684. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4685. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4686. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4687. 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)
  4688. 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)
  4689. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4690. end
  4691. for z = 0, 2 do
  4692. for i = 0,4,0.1 do
  4693. swait()
  4694. CameraEnshaking(1,1)
  4695. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4696. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4697. outerscale = outerscale + 0.015
  4698. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4699. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4700. ray = Ray.new(
  4701. orb.CFrame.p, -- origin
  4702. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4703. )
  4704. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4705. distance = (orb.CFrame.p - position).magnitude
  4706. if typrot == 1 then
  4707. rotation = rotation + 2.5
  4708. elseif typrot == 2 then
  4709. rotation = rotation - 2.5
  4710. end
  4711. RootPart.CFrame = FaceMouse()[1]
  4712. a.Size = Vector3.new(distance, 1, 1)
  4713. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4714. a2.Size = Vector3.new(distance, 1, 1)
  4715. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4716. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4717. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4718. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4719. 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)
  4720. 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)
  4721. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4722. end
  4723. for i = 0,4,0.1 do
  4724. swait()
  4725. CameraEnshaking(1,1)
  4726. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4727. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4728. outerscale = outerscale - 0.015
  4729. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4730. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4731. ray = Ray.new(
  4732. orb.CFrame.p, -- origin
  4733. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4734. )
  4735. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4736. distance = (orb.CFrame.p - position).magnitude
  4737. if typrot == 1 then
  4738. rotation = rotation + 2.5
  4739. elseif typrot == 2 then
  4740. rotation = rotation - 2.5
  4741. end
  4742. RootPart.CFrame = FaceMouse()[1]
  4743. a.Size = Vector3.new(distance, 1, 1)
  4744. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4745. a2.Size = Vector3.new(distance, 1, 1)
  4746. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4747. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4748. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4749. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4750. 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)
  4751. 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)
  4752. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4753. end
  4754. end
  4755. for i = 0,4,0.1 do
  4756. swait()
  4757. CameraEnshaking(1,1)
  4758. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4759. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4760. xd.Volume = xd.Volume - 0.025
  4761. a.Transparency = a.Transparency + 0.025
  4762. a2.Transparency = a2.Transparency + 0.025
  4763. outerscale = outerscale - 0.015
  4764. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4765. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4766. ray = Ray.new(
  4767. orb.CFrame.p, -- origin
  4768. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4769. )
  4770. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4771. distance = (orb.CFrame.p - position).magnitude
  4772. if typrot == 1 then
  4773. rotation = rotation + 2.5
  4774. elseif typrot == 2 then
  4775. rotation = rotation - 2.5
  4776. end
  4777. RootPart.CFrame = FaceMouse()[1]
  4778. a.Size = Vector3.new(distance, 1, 1)
  4779. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4780. a2.Size = Vector3.new(distance, 1, 1)
  4781. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4782. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4783. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4784. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4785. 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)
  4786. 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)
  4787. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4788. end
  4789. xd:Destroy()
  4790. a:Destroy()
  4791. a2:Destroy()
  4792. ba:Destroy()
  4793. orb:Destroy()
  4794. orbe:Destroy()
  4795. attack = false
  4796. end
  4797.  
  4798.  
  4799. function resetmode()
  4800. rainbowmode = false
  4801. chaosmode = false
  4802. tl1.Enabled = false
  4803. tl2.Enabled = false
  4804. tl3.Enabled = false
  4805. ModeOfGlitch = 1
  4806. storehumanoidWS = 16
  4807. coroutine.resume(coroutine.create(function()
  4808. attack = true
  4809. hum.WalkSpeed = 0
  4810. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  4811. for i = 0,4,0.1 do
  4812. swait()
  4813. 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)
  4814. 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)
  4815. 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)
  4816. 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)
  4817. 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)
  4818. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  4819. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  4820. end
  4821. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  4822. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  4823. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  4824. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  4825. RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0))
  4826. CameraEnshaking(5,2.5)
  4827. MAINRUINCOLOR = BrickColor.new("Really red")
  4828. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4829. for i = 0, 49 do
  4830. 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)
  4831. end
  4832. for i = 0,3,0.1 do
  4833. 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)
  4834. end
  4835. for i, v in pairs(mw2:GetChildren()) do
  4836. if v:IsA("Part") then
  4837. v.BrickColor = BrickColor.new("Really red")
  4838. v.Material = "Neon"
  4839. end
  4840. end
  4841. for i, v in pairs(mw1:GetChildren()) do
  4842. if v:IsA("Part") then
  4843. v.Transparency = 1
  4844. v.BrickColor = BrickColor.new("Really red")
  4845. v.Material = "Neon"
  4846. end
  4847. end
  4848. for i, v in pairs(m:GetChildren()) do
  4849. if v:IsA("Part") then
  4850. v.BrickColor = BrickColor.new("Really black")
  4851. v.Material = "Glass"
  4852. end
  4853. end
  4854. for i, v in pairs(m2:GetChildren()) do
  4855. if v:IsA("Part") then
  4856. v.BrickColor = BrickColor.new("Crimson")
  4857. v.Material = "Granite"
  4858. end
  4859. end
  4860. for i, v in pairs(m3:GetChildren()) do
  4861. if v:IsA("Part") then
  4862. v.BrickColor = BrickColor.new("Really red")
  4863. v.Material = "Neon"
  4864. end
  4865. end
  4866. for i, v in pairs(extrawingmod1:GetChildren()) do
  4867. if v:IsA("Part") then
  4868. v.Transparency = 1
  4869. v.BrickColor = BrickColor.new("White")
  4870. v.Material = "Neon"
  4871. end
  4872. end
  4873. for i, v in pairs(extrawingmod2:GetChildren()) do
  4874. if v:IsA("Part") then
  4875. v.Transparency = 1
  4876. v.BrickColor = BrickColor.new("White")
  4877. v.Material = "Neon"
  4878. end
  4879. end
  4880. for i = 0,2,0.1 do
  4881. swait()
  4882. 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)
  4883. 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)
  4884. 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)
  4885. 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)
  4886. 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)
  4887. 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)
  4888. end
  4889. hum.WalkSpeed = storehumanoidWS
  4890. attack = false
  4891. end))
  4892. newTheme("rbxassetid://672003363",48.6,1,0.3)
  4893. end
  4894.  
  4895. function attackone()
  4896. attack = true
  4897. for i = 0,1,0.1 do
  4898. swait()
  4899. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  4900. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  4901. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4902. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4903. 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)
  4904. 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)
  4905. end
  4906. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  4907.  
  4908. local hitb = Instance.new("Part", char)
  4909. hitb.Anchored = true
  4910. hitb.CanCollide = false
  4911. hitb.FormFactor = 3
  4912. hitb.Name = "Ring"
  4913. hitb.Material = "Neon"
  4914. hitb.Size = Vector3.new(1, 1, 1)
  4915. hitb.Transparency = 1
  4916. hitb.TopSurface = 0
  4917. hitb.BottomSurface = 0
  4918. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  4919. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  4920. hitb:Destroy()
  4921. for i = 0,1,0.1 do
  4922. swait()
  4923. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  4924. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  4925. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  4926. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  4927. 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)
  4928. 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)
  4929. end
  4930.  
  4931. attack = false
  4932. end
  4933.  
  4934. function attacktwo()
  4935. attack = true
  4936. for i = 0,1,0.1 do
  4937. swait()
  4938. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  4939. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  4940. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4941. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4942. 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)
  4943. 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)
  4944. end
  4945. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  4946. local hitb = Instance.new("Part", char)
  4947. hitb.Anchored = true
  4948. hitb.CanCollide = false
  4949. hitb.FormFactor = 3
  4950. hitb.Name = "Ring"
  4951. hitb.Material = "Neon"
  4952. hitb.Size = Vector3.new(1, 1, 1)
  4953. hitb.Transparency = 1
  4954. hitb.TopSurface = 0
  4955. hitb.BottomSurface = 0
  4956. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  4957. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  4958. hitb:Destroy()
  4959. for i = 0,1,0.1 do
  4960. swait()
  4961. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  4962. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  4963. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  4964. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  4965. 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)
  4966. 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)
  4967. end
  4968. attack = false
  4969. end
  4970.  
  4971. function attackthree()
  4972. attack = true
  4973. for i = 0,1,0.1 do
  4974. swait()
  4975. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  4976. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  4977. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  4978. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4979. 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)
  4980. 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)
  4981. end
  4982. local distlook = 5
  4983. for i = 0, 4 do
  4984. swait(2)
  4985. CameraEnshaking(2,3)
  4986. local hite = Instance.new("Part", char)
  4987. hite.Anchored = true
  4988. hite.CanCollide = false
  4989. hite.FormFactor = 3
  4990. hite.Name = "Ring"
  4991. hite.Material = "Neon"
  4992. hite.Size = Vector3.new(1, 1, 1)
  4993. hite.Transparency = 1
  4994. hite.TopSurface = 0
  4995. hite.BottomSurface = 0
  4996. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  4997. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  4998. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  4999. MagniDamage(hite, 10, 15,35, 0, "Normal")
  5000. for i = 0, 2 do
  5001. 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)
  5002. 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)
  5003. 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)
  5004. end
  5005. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  5006. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5007. game:GetService("Debris"):AddItem(hite, 5)
  5008. distlook = distlook + 10
  5009. end
  5010. attack = false
  5011. end
  5012.  
  5013. local ActiveGia = false
  5014. function THEHELLITSTHATBIG()
  5015. ActiveGia = true
  5016. attack = true
  5017. hum.WalkSpeed = 0
  5018. for i = 0,2,0.1 do
  5019. swait()
  5020. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5021. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5022. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5023. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5024. 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)
  5025. 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)
  5026. end
  5027. for i = 0,1,0.1 do
  5028. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5029. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5030. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5031. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5032. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5033. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5034. end
  5035. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  5036. secrleg.Transparency = 0.5
  5037. seclleg.Transparency = 0.5
  5038. secrarm.Transparency = 0.5
  5039. seclarm.Transparency = 0.5
  5040. seched.Transparency = 0.5
  5041. sectors.Transparency = 0.5
  5042. for i = 0,25,0.1 do
  5043. swait()
  5044. 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)
  5045. 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)
  5046. 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)
  5047. 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)
  5048. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5049. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5050. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5051. end
  5052. --[[secrleg.Transparency = 1
  5053. seclleg.Transparency = 1
  5054. secrarm.Transparency = 1
  5055. seclarm.Transparency = 1
  5056. seched.Transparency = 1
  5057. sectors.Transparency = 1]]--
  5058. torsweld.Part0 = root
  5059. hum.WalkSpeed = storehumanoidWS
  5060. attack = false
  5061. end
  5062.  
  5063. function removelol()
  5064. ActiveGia = false
  5065. attack = true
  5066. hum.WalkSpeed = 0
  5067. for i = 0,2,0.1 do
  5068. swait()
  5069. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5070. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5071. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5072. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5073. 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)
  5074. 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)
  5075. end
  5076. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5077. for i = 0,25,0.1 do
  5078. swait()
  5079. secrleg.Transparency = secrleg.Transparency + 0.00225
  5080. seclleg.Transparency = secrleg.Transparency
  5081. secrarm.Transparency = secrleg.Transparency
  5082. seclarm.Transparency = secrleg.Transparency
  5083. seched.Transparency = secrleg.Transparency
  5084. sectors.Transparency = secrleg.Transparency
  5085. 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)
  5086. 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)
  5087. 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)
  5088. 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)
  5089. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5090. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5091. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5092. end
  5093. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5094. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5095. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5096. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5097. secrleg.Transparency = 1
  5098. seclleg.Transparency = 1
  5099. secrarm.Transparency = 1
  5100. seclarm.Transparency = 1
  5101. seched.Transparency = 1
  5102. sectors.Transparency = 1
  5103. torsweld.Part0 = root
  5104. hum.WalkSpeed = storehumanoidWS
  5105. attack = false
  5106. end
  5107.  
  5108. function FinalCalamity()
  5109. end
  5110.  
  5111. local attacktype = 1
  5112. mouse.Button1Down:connect(function()
  5113. if attack == false and attacktype == 1 then
  5114. attacktype = 2
  5115. attackone()
  5116. elseif attack == false and attacktype == 2 then
  5117. attacktype = 3
  5118. attacktwo()
  5119. elseif attack == false and attacktype == 3 then
  5120. attacktype = 1
  5121. attackthree()
  5122. elseif attack == false and attacktype == 4 then
  5123. attacktype = 1
  5124. --attackfour()
  5125. end
  5126. end)
  5127. mouse.KeyDown:connect(function(k)
  5128. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5129. ModeOfGlitch = 2
  5130. storehumanoidWS = 16
  5131. hum.WalkSpeed = 16
  5132. rainbowmode = false
  5133. chaosmode = false
  5134. tl1.Enabled = false
  5135. tl2.Enabled = false
  5136. tl3.Enabled = false
  5137. RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  5138. newTheme("rbxassetid://1523462000",0,1,0.3)
  5139. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5140. for i, v in pairs(mw2:GetChildren()) do
  5141. if v:IsA("Part") then
  5142. v.BrickColor = MAINRUINCOLOR
  5143. v.Material = "Neon"
  5144. end
  5145. end
  5146. for i, v in pairs(mw1:GetChildren()) do
  5147. if v:IsA("Part") then
  5148. v.Transparency = 1
  5149. v.BrickColor = MAINRUINCOLOR
  5150. v.Material = "Neon"
  5151. end
  5152. end
  5153. for i, v in pairs(m:GetChildren()) do
  5154. if v:IsA("Part") then
  5155. v.BrickColor = BrickColor.new("White")
  5156. v.Material = "Ice"
  5157. end
  5158. end
  5159. for i, v in pairs(m2:GetChildren()) do
  5160. if v:IsA("Part") then
  5161. v.BrickColor = BrickColor.new("Pastel light blue")
  5162. v.Material = "Glass"
  5163. end
  5164. end
  5165. for i, v in pairs(m3:GetChildren()) do
  5166. if v:IsA("Part") then
  5167. v.BrickColor = BrickColor.new("Toothpaste")
  5168. v.Material = "Neon"
  5169. end
  5170. end
  5171. for i, v in pairs(extrawingmod1:GetChildren()) do
  5172. if v:IsA("Part") then
  5173. v.Transparency = 1
  5174. v.BrickColor = BrickColor.new("White")
  5175. v.Material = "Neon"
  5176. end
  5177. end
  5178. for i, v in pairs(extrawingmod2:GetChildren()) do
  5179. if v:IsA("Part") then
  5180. v.Transparency = 1
  5181. v.BrickColor = BrickColor.new("White")
  5182. v.Material = "Neon"
  5183. end
  5184. end
  5185. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5186. resetmode()
  5187. end
  5188. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5189. ModeOfGlitch = 3
  5190. storehumanoidWS = 16
  5191. hum.WalkSpeed = 16
  5192. rainbowmode = false
  5193. chaosmode = false
  5194. tl1.Enabled = false
  5195. tl2.Enabled = false
  5196. tl3.Enabled = false
  5197. RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
  5198. newTheme("rbxassetid://261807692",58.15,0.98,1.25)
  5199. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5200. for i, v in pairs(mw2:GetChildren()) do
  5201. if v:IsA("Part") then
  5202. v.BrickColor = MAINRUINCOLOR
  5203. v.Material = "Neon"
  5204. end
  5205. end
  5206. for i, v in pairs(mw1:GetChildren()) do
  5207. if v:IsA("Part") then
  5208. v.Transparency = 1
  5209. v.BrickColor = MAINRUINCOLOR
  5210. v.Material = "Neon"
  5211. end
  5212. end
  5213. for i, v in pairs(m:GetChildren()) do
  5214. if v:IsA("Part") then
  5215. v.BrickColor = BrickColor.new("Black")
  5216. v.Material = "Ice"
  5217. end
  5218. end
  5219. for i, v in pairs(m2:GetChildren()) do
  5220. if v:IsA("Part") then
  5221. v.BrickColor = BrickColor.new("Dark indigo")
  5222. v.Material = "Glass"
  5223. end
  5224. end
  5225. for i, v in pairs(m3:GetChildren()) do
  5226. if v:IsA("Part") then
  5227. v.BrickColor = BrickColor.new("Royal purple")
  5228. v.Material = "Neon"
  5229. end
  5230. end
  5231. for i, v in pairs(extrawingmod1:GetChildren()) do
  5232. if v:IsA("Part") then
  5233. v.Transparency = 1
  5234. v.BrickColor = BrickColor.new("White")
  5235. v.Material = "Neon"
  5236. end
  5237. end
  5238. for i, v in pairs(extrawingmod2:GetChildren()) do
  5239. if v:IsA("Part") then
  5240. v.Transparency = 1
  5241. v.BrickColor = BrickColor.new("White")
  5242. v.Material = "Neon"
  5243. end
  5244. end
  5245. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5246. resetmode()
  5247. end
  5248. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5249. ModeOfGlitch = 4
  5250. storehumanoidWS = 16
  5251. hum.WalkSpeed = 16
  5252. rainbowmode = false
  5253. chaosmode = true
  5254. tl1.Enabled = true
  5255. tl2.Enabled = true
  5256. tl3.Enabled = true
  5257. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5258. newTheme("rbxassetid://1117727239",0,1,1)
  5259. MAINRUINCOLOR = BrickColor.new("Black")
  5260. for i, v in pairs(mw2:GetChildren()) do
  5261. if v:IsA("Part") then
  5262. v.BrickColor = MAINRUINCOLOR
  5263. v.Material = "Neon"
  5264. end
  5265. end
  5266. for i, v in pairs(mw1:GetChildren()) do
  5267. if v:IsA("Part") then
  5268. v.Transparency = 0.75
  5269. v.BrickColor = BrickColor.random()
  5270. v.Material = "Neon"
  5271. end
  5272. end
  5273. for i, v in pairs(m:GetChildren()) do
  5274. if v:IsA("Part") then
  5275. v.BrickColor = BrickColor.new("Black")
  5276. v.Material = "Neon"
  5277. end
  5278. end
  5279. for i, v in pairs(m2:GetChildren()) do
  5280. if v:IsA("Part") then
  5281. v.BrickColor = BrickColor.random()
  5282. v.Material = "Neon"
  5283. end
  5284. end
  5285. for i, v in pairs(m3:GetChildren()) do
  5286. if v:IsA("Part") then
  5287. v.BrickColor = BrickColor.new("Black")
  5288. v.Material = "Neon"
  5289. end
  5290. end
  5291. for i, v in pairs(extrawingmod1:GetChildren()) do
  5292. if v:IsA("Part") then
  5293. v.Transparency = 1
  5294. v.BrickColor = BrickColor.new("White")
  5295. v.Material = "Neon"
  5296. end
  5297. end
  5298. for i, v in pairs(extrawingmod2:GetChildren()) do
  5299. if v:IsA("Part") then
  5300. v.Transparency = 1
  5301. v.BrickColor = BrickColor.new("White")
  5302. v.Material = "Neon"
  5303. end
  5304. end
  5305. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  5306. resetmode()
  5307. end
  5308. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  5309. ModeOfGlitch = 5
  5310. storehumanoidWS = 16
  5311. hum.WalkSpeed = 16
  5312. rainbowmode = false
  5313. chaosmode = false
  5314. tl1.Enabled = true
  5315. tl2.Enabled = true
  5316. tl3.Enabled = true
  5317. RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5))
  5318. newTheme("rbxassetid://196678198",0,1.02,1)
  5319. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  5320. for i, v in pairs(mw2:GetChildren()) do
  5321. if v:IsA("Part") then
  5322. v.BrickColor = MAINRUINCOLOR
  5323. v.Material = "Neon"
  5324. end
  5325. end
  5326. for i, v in pairs(mw1:GetChildren()) do
  5327. if v:IsA("Part") then
  5328. v.Transparency = 0
  5329. v.BrickColor = MAINRUINCOLOR
  5330. v.Material = "Neon"
  5331. end
  5332. end
  5333. for i, v in pairs(m:GetChildren()) do
  5334. if v:IsA("Part") then
  5335. v.BrickColor = BrickColor.new("Cool yellow")
  5336. v.Material = "Ice"
  5337. end
  5338. end
  5339. for i, v in pairs(m2:GetChildren()) do
  5340. if v:IsA("Part") then
  5341. v.BrickColor = BrickColor.new("Bright yellow")
  5342. v.Material = "Ice"
  5343. end
  5344. end
  5345. for i, v in pairs(m3:GetChildren()) do
  5346. if v:IsA("Part") then
  5347. v.BrickColor = BrickColor.new("Bright yellow")
  5348. v.Material = "Neon"
  5349. end
  5350. end
  5351. for i, v in pairs(extrawingmod1:GetChildren()) do
  5352. if v:IsA("Part") then
  5353. v.Transparency = 1
  5354. v.BrickColor = BrickColor.new("White")
  5355. v.Material = "Neon"
  5356. end
  5357. end
  5358. for i, v in pairs(extrawingmod2:GetChildren()) do
  5359. if v:IsA("Part") then
  5360. v.Transparency = 1
  5361. v.BrickColor = BrickColor.new("White")
  5362. v.Material = "Neon"
  5363. end
  5364. end
  5365. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  5366. resetmode()
  5367. end
  5368. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  5369. ModeOfGlitch = 6
  5370. storehumanoidWS = 75
  5371. hum.WalkSpeed = 75
  5372. rainbowmode = false
  5373. chaosmode = false
  5374. tl1.Enabled = true
  5375. tl2.Enabled = true
  5376. tl3.Enabled = true
  5377. RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1))
  5378. newTheme("rbxassetid://239618330",0,1,1)
  5379. MAINRUINCOLOR = BrickColor.new("White")
  5380. for i, v in pairs(mw2:GetChildren()) do
  5381. if v:IsA("Part") then
  5382. v.BrickColor = MAINRUINCOLOR
  5383. v.Material = "Neon"
  5384. end
  5385. end
  5386. for i, v in pairs(mw1:GetChildren()) do
  5387. if v:IsA("Part") then
  5388. v.Transparency = 0
  5389. v.BrickColor = MAINRUINCOLOR
  5390. v.Material = "Neon"
  5391. end
  5392. end
  5393. for i, v in pairs(m:GetChildren()) do
  5394. if v:IsA("Part") then
  5395. v.BrickColor = BrickColor.new("White")
  5396. v.Material = "Ice"
  5397. end
  5398. end
  5399. for i, v in pairs(m2:GetChildren()) do
  5400. if v:IsA("Part") then
  5401. v.BrickColor = BrickColor.new("Really black")
  5402. v.Material = "Ice"
  5403. end
  5404. end
  5405. for i, v in pairs(m3:GetChildren()) do
  5406. if v:IsA("Part") then
  5407. v.BrickColor = BrickColor.new("White")
  5408. v.Material = "Neon"
  5409. end
  5410. end
  5411. for i, v in pairs(extrawingmod1:GetChildren()) do
  5412. if v:IsA("Part") then
  5413. v.Transparency = 1
  5414. v.BrickColor = BrickColor.new("White")
  5415. v.Material = "Neon"
  5416. end
  5417. end
  5418. for i, v in pairs(extrawingmod2:GetChildren()) do
  5419. if v:IsA("Part") then
  5420. v.Transparency = 1
  5421. v.BrickColor = BrickColor.new("White")
  5422. v.Material = "Neon"
  5423. end
  5424. end
  5425. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  5426. resetmode()
  5427. end
  5428. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  5429. ModeOfGlitch = 6127843
  5430. storehumanoidWS = 50
  5431. hum.WalkSpeed = 50
  5432. rainbowmode = true
  5433. chaosmode = false
  5434. tl1.Enabled = true
  5435. tl2.Enabled = true
  5436. tl3.Enabled = true
  5437. RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1))
  5438. newTheme("rbxassetid://1563725999",0,1,1)
  5439. MAINRUINCOLOR = BrickColor.new("White")
  5440. for i, v in pairs(mw2:GetChildren()) do
  5441. if v:IsA("Part") then
  5442. v.BrickColor = MAINRUINCOLOR
  5443. v.Material = "Neon"
  5444. end
  5445. end
  5446. for i, v in pairs(mw1:GetChildren()) do
  5447. if v:IsA("Part") then
  5448. v.Transparency = 0
  5449. v.BrickColor = MAINRUINCOLOR
  5450. v.Material = "Neon"
  5451. end
  5452. end
  5453. for i, v in pairs(m:GetChildren()) do
  5454. if v:IsA("Part") then
  5455. v.BrickColor = BrickColor.new("White")
  5456. v.Material = "Neon"
  5457. end
  5458. end
  5459. for i, v in pairs(m2:GetChildren()) do
  5460. if v:IsA("Part") then
  5461. v.BrickColor = BrickColor.new("White")
  5462. v.Material = "Neon"
  5463. end
  5464. end
  5465. for i, v in pairs(m3:GetChildren()) do
  5466. if v:IsA("Part") then
  5467. v.BrickColor = BrickColor.new("White")
  5468. v.Material = "Neon"
  5469. end
  5470. end
  5471. for i, v in pairs(extrawingmod1:GetChildren()) do
  5472. if v:IsA("Part") then
  5473. v.Transparency = 1
  5474. v.BrickColor = BrickColor.new("White")
  5475. v.Material = "Neon"
  5476. end
  5477. end
  5478. for i, v in pairs(extrawingmod2:GetChildren()) do
  5479. if v:IsA("Part") then
  5480. v.Transparency = 1
  5481. v.BrickColor = BrickColor.new("White")
  5482. v.Material = "Neon"
  5483. end
  5484. end
  5485. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  5486. resetmode()
  5487. end
  5488. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  5489. ModeOfGlitch = 1000000
  5490. storehumanoidWS = 100
  5491. hum.WalkSpeed = 100
  5492. rainbowmode = false
  5493. chaosmode = false
  5494. tl1.Enabled = true
  5495. tl2.Enabled = true
  5496. tl3.Enabled = true
  5497. RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  5498. newTheme("rbxassetid://1568123157",0,1,1)
  5499. MAINRUINCOLOR = BrickColor.new("Bright violet")
  5500. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5501. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5502. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5503. for i, v in pairs(mw2:GetChildren()) do
  5504. if v:IsA("Part") then
  5505. v.BrickColor = MAINRUINCOLOR
  5506. v.Material = "Neon"
  5507. end
  5508. end
  5509. for i, v in pairs(mw1:GetChildren()) do
  5510. if v:IsA("Part") then
  5511. v.Transparency = 0
  5512. v.BrickColor = MAINRUINCOLOR
  5513. v.Material = "Neon"
  5514. end
  5515. end
  5516. for i, v in pairs(m:GetChildren()) do
  5517. if v:IsA("Part") then
  5518. v.Color = Color3.new(0.5,0,1)
  5519. v.Material = "Neon"
  5520. end
  5521. end
  5522. for i, v in pairs(m2:GetChildren()) do
  5523. if v:IsA("Part") then
  5524. v.Color = Color3.new(0.25,0,1)
  5525. v.Material = "Neon"
  5526. end
  5527. end
  5528. for i, v in pairs(m3:GetChildren()) do
  5529. if v:IsA("Part") then
  5530. v.Color = Color3.new(0.45,0,1)
  5531. v.Material = "Neon"
  5532. end
  5533. end
  5534. for i, v in pairs(extrawingmod1:GetChildren()) do
  5535. if v:IsA("Part") then
  5536. v.Transparency = 0.75
  5537. v.Color = Color3.new(0.25,0,1)
  5538. v.Material = "Neon"
  5539. end
  5540. end
  5541. for i, v in pairs(extrawingmod2:GetChildren()) do
  5542. if v:IsA("Part") then
  5543. v.Transparency = 0.75
  5544. v.Color = Color3.new(0.5,0,1)
  5545. v.Material = "Neon"
  5546. end
  5547. end
  5548. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  5549. resetmode()
  5550. end
  5551. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  5552. newThemeCust("rbxassetid://1614838208",0,1,1)
  5553. attack = true
  5554. hum.WalkSpeed = 0
  5555. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5556. for i = 0, 24, 0.1 do
  5557. swait()
  5558. 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)
  5559. 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)
  5560. 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)
  5561. 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)
  5562. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5563. 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)
  5564. 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)
  5565. end
  5566. CameraEnshaking(1,1)
  5567. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5568. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5569. wait(0.55)
  5570. CameraEnshaking(1,2)
  5571. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5572. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5573. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5574. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5575. wait(0.55)
  5576. CameraEnshaking(1,3)
  5577. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5578. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5579. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5580. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5581. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5582. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5583. wait(0.55)
  5584. CameraEnshaking(10,5)
  5585. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5586. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5587. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5588. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5589. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5590. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5591. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5592. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5593. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5594. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5595. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5596. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5597. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5598. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5599. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5600. for i = 0, 49 do
  5601. 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)
  5602. 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)
  5603. 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)
  5604. 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)
  5605. end
  5606. ModeOfGlitch = 12345678987654321
  5607. storehumanoidWS = 200
  5608. hum.WalkSpeed = 200
  5609. rainbowmode = false
  5610. chaosmode = false
  5611. tl1.Enabled = true
  5612. tl2.Enabled = true
  5613. tl3.Enabled = true
  5614. RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  5615. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5616. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5617. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5618. for i, v in pairs(mw2:GetChildren()) do
  5619. if v:IsA("Part") then
  5620. v.BrickColor = MAINRUINCOLOR
  5621. v.Material = "Neon"
  5622. end
  5623. end
  5624. for i, v in pairs(mw1:GetChildren()) do
  5625. if v:IsA("Part") then
  5626. v.Transparency = 0
  5627. v.BrickColor = MAINRUINCOLOR
  5628. v.Material = "Neon"
  5629. end
  5630. end
  5631. for i, v in pairs(m:GetChildren()) do
  5632. if v:IsA("Part") then
  5633. v.Color = Color3.new(0.5,0,1)
  5634. v.Material = "Neon"
  5635. end
  5636. end
  5637. for i, v in pairs(m2:GetChildren()) do
  5638. if v:IsA("Part") then
  5639. v.Color = Color3.new(0.5,0,1)
  5640. v.Material = "Neon"
  5641. end
  5642. end
  5643. for i, v in pairs(m3:GetChildren()) do
  5644. if v:IsA("Part") then
  5645. v.Color = Color3.new(0.5,0,1)
  5646. v.Material = "Neon"
  5647. end
  5648. end
  5649. for i, v in pairs(extrawingmod1:GetChildren()) do
  5650. if v:IsA("Part") then
  5651. v.Transparency = 0
  5652. v.Color = Color3.new(0.5,0,1)
  5653. v.Material = "Neon"
  5654. end
  5655. end
  5656. for i, v in pairs(extrawingmod2:GetChildren()) do
  5657. if v:IsA("Part") then
  5658. v.Transparency = 0
  5659. v.Color = Color3.new(0.5,0,1)
  5660. v.Material = "Neon"
  5661. end
  5662. attack = false
  5663. end
  5664. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  5665. resetmode()
  5666. end
  5667. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  5668. newThemeCust("rbxassetid://1524659003",0,1,1)
  5669. attack = true
  5670. hum.WalkSpeed = 0
  5671. MAINRUINCOLOR = BrickColor.new("Crimson")
  5672. for i = 0, 24, 0.1 do
  5673. swait()
  5674. 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)
  5675. 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)
  5676. 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)
  5677. 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)
  5678. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5679. 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)
  5680. 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)
  5681. end
  5682. CameraEnshaking(1,1)
  5683. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5684. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5685. wait(0.55)
  5686. CameraEnshaking(1,2)
  5687. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5688. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5689. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5690. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5691. wait(0.55)
  5692. CameraEnshaking(1,3)
  5693. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5694. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5695. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5696. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5697. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5698. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5699. wait(0.55)
  5700. CameraEnshaking(10,5)
  5701. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5702. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5703. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5704. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5705. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5706. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5707. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5708. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5709. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5710. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5711. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5712. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5713. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5714. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5715. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5716. for i = 0, 49 do
  5717. 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)
  5718. 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)
  5719. 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)
  5720. 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)
  5721. end
  5722. ModeOfGlitch = 666
  5723. storehumanoidWS = 16
  5724. hum.WalkSpeed = 16
  5725. rainbowmode = false
  5726. chaosmode = false
  5727. tl1.Enabled = true
  5728. tl2.Enabled = true
  5729. tl3.Enabled = true
  5730. RecolorTextAndRename("DeStRuCtIoN",Color3.new(1,0,0),Color3.new(0.75,0,0))
  5731. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5732. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5733. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5734. for i, v in pairs(mw2:GetChildren()) do
  5735. if v:IsA("Part") then
  5736. v.BrickColor = MAINRUINCOLOR
  5737. v.Material = "Neon"
  5738. end
  5739. end
  5740. for i, v in pairs(mw1:GetChildren()) do
  5741. if v:IsA("Part") then
  5742. v.Transparency = 0
  5743. v.BrickColor = MAINRUINCOLOR
  5744. v.Material = "Neon"
  5745. end
  5746. end
  5747. for i, v in pairs(m:GetChildren()) do
  5748. if v:IsA("Part") then
  5749. v.Color = Color3.new(1,0,0)
  5750. v.Material = "Neon"
  5751. end
  5752. end
  5753. for i, v in pairs(m2:GetChildren()) do
  5754. if v:IsA("Part") then
  5755. v.Color = Color3.new(1,0,0)
  5756. v.Material = "Neon"
  5757. end
  5758. end
  5759. for i, v in pairs(m3:GetChildren()) do
  5760. if v:IsA("Part") then
  5761. v.Color = Color3.new(1,0,0)
  5762. v.Material = "Neon"
  5763. end
  5764. end
  5765. for i, v in pairs(extrawingmod1:GetChildren()) do
  5766. if v:IsA("Part") then
  5767. v.Transparency = 0
  5768. v.Color = Color3.new(1,0,0)
  5769. v.Material = "Neon"
  5770. end
  5771. end
  5772. for i, v in pairs(extrawingmod2:GetChildren()) do
  5773. if v:IsA("Part") then
  5774. v.Transparency = 0
  5775. v.Color = Color3.new(1,0,0)
  5776. v.Material = "Neon"
  5777. end
  5778. attack = false
  5779. end
  5780. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  5781. resetmode()
  5782. end
  5783. if k == "l" and toggleTag == false then
  5784. toggleTag = true
  5785. text.TextTransparency = 0
  5786. text.TextStrokeTransparency = 0
  5787. elseif k == "l" and toggleTag == true then
  5788. toggleTag = false
  5789. text.TextTransparency = 1
  5790. text.TextStrokeTransparency = 1
  5791. end
  5792. if k == "z" and attack == false and ModeOfGlitch == 1 then
  5793. ExtinctiveHeartbreak()
  5794. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  5795. PureBomb()
  5796. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  5797. scattercorrupt()
  5798. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  5799. ChaosGroundStrike()
  5800. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  5801. Judgement()
  5802. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  5803. HolyBarrier()
  5804. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  5805. Starfall()
  5806. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  5807. yinyangi()
  5808. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  5809. test()
  5810. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  5811. Wip()
  5812. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  5813. StarfallEX()
  5814. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  5815. FinalCalam()
  5816. end
  5817. if k == "n" and attack == false then
  5818. Blink()
  5819. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  5820. StarDivision()
  5821. end
  5822. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  5823. UniversalCollapse()
  5824. end
  5825. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  5826. hum.WalkSpeed = 16 + 184
  5827. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  5828. hum.WalkSpeed = 200 - 184
  5829. end
  5830. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  5831. UniversalSpark()
  5832. end
  5833. if k == "z" and attack == false and ModeOfGlitch == 666 then
  5834. StarDivision()
  5835. end
  5836. if k == "x" and attack == false and ModeOfGlitch == 666 then
  5837. Starfall()
  5838. end
  5839. if k == "m" and attack == false and ModeOfGlitch == 4 then
  5840. ChaosBegone()
  5841. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  5842. THEHELLITSTHATBIG()
  5843. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  5844. removelol()
  5845. end
  5846. end)
  5847. mouse.KeyUp:connect(function(k)
  5848. if k == "f" and ModeOfGlitch == 5 then
  5849. stash:Remove()
  5850. attack = false
  5851. Torso.Anchored = false
  5852. shielding = false
  5853. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  5854. end
  5855. end)
  5856. coroutine.resume(coroutine.create(function()
  5857. while true do
  5858. swait(2)
  5859. if rainbowmode == true or ModeOfGlitch == 6 then
  5860. if eff == true then
  5861. 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)
  5862. end
  5863. end
  5864. end
  5865. end))
  5866. coroutine.resume(coroutine.create(function()
  5867. while true do
  5868. swait(2)
  5869. if shielding == true then
  5870. 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)
  5871. end
  5872. end
  5873. end))
  5874.  
  5875.  
  5876. coroutine.resume(coroutine.create(function()
  5877. while true do
  5878. if ModeOfGlitch == 1000000 then
  5879. swait(0.5)
  5880. end
  5881. swait()
  5882. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5883. 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)
  5884. end
  5885. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5886. 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)
  5887. end
  5888. end
  5889. end))
  5890.  
  5891.  
  5892. coroutine.resume(coroutine.create(function()
  5893. while true do
  5894. swait(2)
  5895. if chaosmode == true then
  5896. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  5897. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  5898. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  5899. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5900. for i, v in pairs(mw1:GetChildren()) do
  5901. if v:IsA("Part") then
  5902. v.Transparency = 0.75
  5903. v.BrickColor = BrickColor.random()
  5904. v.Material = "Neon"
  5905. end
  5906. end
  5907. for i, v in pairs(m2:GetChildren()) do
  5908. if v:IsA("Part") then
  5909. v.BrickColor = BrickColor.random()
  5910. v.Material = "Neon"
  5911. end
  5912. end
  5913. for i, v in pairs(secondchar:GetChildren()) do
  5914. if v:IsA("Part") then
  5915. v.BrickColor = BrickColor.random()
  5916. v.Material = "Neon"
  5917. end
  5918. end
  5919. end
  5920. end
  5921. end))
  5922. Humanoid.Name = "STARGLITCHER"
  5923. Humanoid.MaxHealth = math.huge
  5924. Humanoid.Health = math.huge
  5925. Instance.new("ForceField",char).Visible = false
  5926. Humanoid.Animator.Parent = nil
  5927. idleanim=.4
  5928. while true do
  5929. if rainbowmode == false then
  5930. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5931. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5932. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5933. for i, v in pairs(secondchar:GetChildren()) do
  5934. if v:IsA("Part") then
  5935. v.BrickColor = MAINRUINCOLOR
  5936. v.Material = "Neon"
  5937. end
  5938. end
  5939. if chaosmode == false then
  5940. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5941. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5942. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5943. for i, v in pairs(secondchar:GetChildren()) do
  5944. if v:IsA("Part") then
  5945. v.BrickColor = MAINRUINCOLOR
  5946. v.Material = "Neon"
  5947. end
  5948. end
  5949. end
  5950. end
  5951. if rainbowmode == true then
  5952. RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  5953. MAINRUINCOLOR = BrickColor.new("White")
  5954. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5955. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5956. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5957. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5958. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5959. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5960. for i, v in pairs(m:GetChildren()) do
  5961. if v:IsA("Part") then
  5962. v.Color = Color3.new(r/255,g/255,b/255)
  5963. end
  5964. end
  5965. for i, v in pairs(m2:GetChildren()) do
  5966. if v:IsA("Part") then
  5967. v.Color = Color3.new(r/255,g/255,b/255)
  5968. end
  5969. end
  5970. for i, v in pairs(secondchar:GetChildren()) do
  5971. if v:IsA("Part") then
  5972. v.Color = Color3.new(r/255,g/255,b/255)
  5973. v.Material = "Neon"
  5974. end
  5975. end
  5976. for i, v in pairs(m3:GetChildren()) do
  5977. if v:IsA("Part") then
  5978. v.Color = Color3.new(r/255,g/255,b/255)
  5979. end
  5980. end
  5981. for i, v in pairs(mw1:GetChildren()) do
  5982. if v:IsA("Part") then
  5983. v.Color = Color3.new(r/255,g/255,b/255)
  5984. v.Material = "Neon"
  5985. end
  5986. end
  5987. for i, v in pairs(mw2:GetChildren()) do
  5988. if v:IsA("Part") then
  5989. v.Color = Color3.new(r/255,g/255,b/255)
  5990. v.Material = "Neon"
  5991. end
  5992. end
  5993. end
  5994. CameraManager()
  5995. swait()
  5996. 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)
  5997. 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)
  5998. 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)
  5999. 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)
  6000. 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)
  6001. 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)
  6002.  
  6003. if attack == false and ActiveGia == false then
  6004. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6005. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  6006. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  6007. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6008. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6009. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  6010. elseif attack == false and ActiveGia == true then
  6011. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6012. 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)
  6013. 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)
  6014. 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)
  6015. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6016. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6017. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6018. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6019. 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)
  6020. 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)
  6021. 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)
  6022. 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)
  6023. 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)
  6024. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  6025. end
  6026. end
  6027.  
  6028. 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)
  6029. 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)
  6030. 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)
  6031. 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)
  6032. 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)
  6033. 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)
  6034. sine = sine + change
  6035. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6036. local velderp=RootPart.Velocity.y
  6037. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6038. if equipped==true or equipped==false then
  6039. if attack==false then
  6040. idle=idle+1
  6041. else
  6042. idle=0
  6043. end
  6044. if idle>=500 then
  6045. if attack==false then
  6046. --Sheath()
  6047. end
  6048. end
  6049. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6050. Anim="Jump"
  6051. if attack==false then
  6052. 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)
  6053. 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)
  6054. 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)
  6055. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6056. 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)
  6057. 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)
  6058. end
  6059. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6060. Anim="Fall"
  6061. if attack==false then
  6062. 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)
  6063. 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)
  6064. 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)
  6065. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6066. 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)
  6067. 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)
  6068. end
  6069. elseif torvel<1 and hitfloor~=nil then
  6070. Anim="Idle"
  6071. if attack==false then
  6072. if ModeOfGlitch == 1 then
  6073. 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)
  6074. 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)
  6075. 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)
  6076. 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)
  6077. 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)
  6078. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6079.  
  6080. elseif ModeOfGlitch == 666 then
  6081. 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)
  6082. 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)
  6083. 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)
  6084. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6085. 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)
  6086. 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)
  6087.  
  6088. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  6089. 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)
  6090. 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)
  6091. 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)
  6092. 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)
  6093. 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)
  6094. 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)
  6095.  
  6096. elseif ModeOfGlitch == 3 then
  6097. 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)
  6098. 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)
  6099. 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)
  6100. 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)
  6101. 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)
  6102. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  6103.  
  6104. elseif ModeOfGlitch == 4 then
  6105. 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)
  6106. 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)
  6107. 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)
  6108. 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)
  6109. 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)
  6110. 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)
  6111.  
  6112. elseif ModeOfGlitch == 5 then
  6113. 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)
  6114. 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)
  6115. 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)
  6116. 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)
  6117. 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)
  6118. 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)
  6119.  
  6120. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6121. 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)
  6122. 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)
  6123. 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)
  6124. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6125. 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)
  6126. 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)
  6127.  
  6128. elseif ModeOfGlitch == 12345678987654321 then
  6129. 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)
  6130. 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)
  6131. 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)
  6132. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  6133. 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)
  6134. 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)
  6135. end
  6136. end
  6137. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  6138. Anim="Walk"
  6139. if attack==false then
  6140. if ModeOfGlitch == 1 then
  6141. 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)
  6142. 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)
  6143. 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)
  6144. 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)
  6145. 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)
  6146. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6147.  
  6148. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  6149. 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)
  6150. 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)
  6151. 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)
  6152. 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)
  6153. 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)
  6154. 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)
  6155.  
  6156. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  6157. 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)
  6158. 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)
  6159. 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)
  6160. 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)
  6161. 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)
  6162. 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)
  6163. end
  6164. end
  6165. elseif torvel>=22 and hitfloor~=nil then
  6166. Anim="Run"
  6167. if attack==false then
  6168. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6169. 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)
  6170. 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)
  6171. 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)
  6172. 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)
  6173. 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)
  6174. 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)
  6175. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6176. 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)
  6177. 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)
  6178. 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)
  6179. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6180. 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)
  6181. 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)
  6182. end
  6183. end
  6184. end
  6185. end
  6186. end
Add Comment
Please, Sign In to add comment