Ghosite

GG fe

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