Advertisement
artucox7

My Star Glicher,That Calls LIGHT GLICHER

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