Advertisement
Vintage-Furry

stuff

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