Advertisement
Vintage-Furry

test. stop.

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