Advertisement
Vintage-Furry

testv7

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