Advertisement
Goo345

Untitled

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