Advertisement
Michael91

TEST STAR GLITCH

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