Advertisement
Oscar55555

Untitled

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