Advertisement
Oscar55555

Untitled

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