Advertisement
Guest User

????

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