IVMemeVI

Edit star glitch

Apr 11th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 396.40 KB | None | 0 0
  1. warn("Star Glitcher Loaded.")
  2. warn("All purpose switcher...")
  3. plr = game.Players.LocalPlayer
  4. char = plr.Character
  5. hum = char.Humanoid
  6. local cam = game.Workspace.CurrentCamera
  7. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  8. Camera = cam
  9. local CamInterrupt = false
  10. local TwoD = false
  11. local TargetInfo = {nil, nil}
  12. cam.CameraType = "Custom"
  13. t = char.Torso
  14. h = char.Head
  15. ra = char["Right Arm"]
  16. la = char["Left Arm"]
  17. rl = char["Right Leg"]
  18. ll = char["Left Leg"]
  19. tors = char.Torso
  20. lleg = char["Left Leg"]
  21. root = char.HumanoidRootPart
  22. hed = char.Head
  23. rleg = char["Right Leg"]
  24. rarm = char["Right Arm"]
  25. larm = char["Left Arm"]
  26. radian = math.rad
  27. random = math.random
  28. Vec3 = Vector3.new
  29. Inst = Instance.new
  30. cFrame = CFrame.new
  31. Euler = CFrame.fromEulerAnglesXYZ
  32. vt = Vector3.new
  33. bc = BrickColor.new
  34. br = BrickColor.random
  35. it = Instance.new
  36. cf = CFrame.new
  37. local Booleans = {CamFollow = true, GyroUse = true}
  38. function lerp(object, newCFrame, alpha)
  39. return object:lerp(newCFrame, alpha)
  40. end
  41. local Directer = Inst("BodyGyro", root)
  42. Directer.MaxTorque = Vec3(0, 0, 0)
  43. Directer.P = 600000
  44. local CPart = Inst("Part")
  45. CPart.Anchored = true
  46. CPart.CanCollide = false
  47. CPart.Locked = true
  48. CPart.Transparency = 1
  49. local rainbowmode = false
  50. local chaosmode = false
  51. kan = Instance.new("Sound", char)
  52. kan.Volume = 1.25
  53. kan.TimePosition = 0
  54. kan.PlaybackSpeed = 1
  55. kan.Pitch = 1
  56. kan.SoundId = "rbxassetid://614032233"
  57. kan.Name = "wrecked"
  58. kan.Looped = true
  59. kan:Play()
  60. function newTheme(ID, timepos, pitch, vol)
  61. local kanz = kan
  62. kanz.PlaybackSpeed = pitch
  63. kanz.Pitch = pitch
  64. kanz.SoundId = ID
  65. kanz.Name = "wrecked"
  66. kanz.Looped = true
  67. end
  68. function CameraShake(Times, Power, PlayerTarget)
  69. coroutine.resume(coroutine.create(function()
  70. FV = Instance.new("BoolValue", PlayerTarget)
  71. FV.Name = "CameraShake"
  72. for ShakeNum = 1, Times do
  73. swait()
  74. local ef = Power
  75. if ef >= 1 then
  76. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  77. else
  78. ef = Power * 10
  79. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  80. end
  81. end
  82. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  83. FV:Destroy()
  84. end))
  85. end
  86. function CameraEnshaking(Length, Intensity)
  87. coroutine.resume(coroutine.create(function()
  88. local intensity = 1 * Intensity
  89. local rotM = 0.01 * Intensity
  90. for i = 0, Length, 0.1 do
  91. swait()
  92. intensity = intensity - 0.05 * Intensity / Length
  93. rotM = rotM - 5.0E-4 * Intensity / Length
  94. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  95. 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)
  96. end
  97. Humanoid.CameraOffset = Vec3(0, 0, 0)
  98. end))
  99. end
  100. function CamShake(Part, Distan, Power, Times)
  101. local de = Part.Position
  102. for i, v in pairs(workspace:children()) do
  103. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  104. for _, c in pairs(v:children()) do
  105. if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then
  106. do
  107. local Noob = v.Humanoid
  108. if Noob ~= nil then
  109. coroutine.resume(coroutine.create(function()
  110. FV = Instance.new("BoolValue", Noob)
  111. FV.Name = "CameraShake"
  112. for ShakeNum = 1, Times do
  113. swait()
  114. local ef = Power
  115. if ef >= 1 then
  116. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  117. else
  118. ef = Power * 10
  119. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  120. end
  121. end
  122. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  123. FV:Destroy()
  124. end))
  125. CameraShake(Times, Power, Noob)
  126. end
  127. end
  128. end
  129. end
  130. end
  131. end
  132. end
  133. function chatfunc(text, color)
  134. local chat = coroutine.wrap(function()
  135. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  136. Character:FindFirstChild("TalkingBillBoard"):destroy()
  137. end
  138. local naeeym2 = Instance.new("BillboardGui", Character)
  139. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  140. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  141. naeeym2.Adornee = Character.Head
  142. naeeym2.Name = "TalkingBillBoard"
  143. local tecks2 = Instance.new("TextLabel", naeeym2)
  144. tecks2.BackgroundTransparency = 1
  145. tecks2.BorderSizePixel = 0
  146. tecks2.Text = ""
  147. tecks2.Font = "SciFi"
  148. tecks2.TextSize = 30
  149. tecks2.TextStrokeTransparency = 0
  150. tecks2.TextColor3 = color
  151. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  152. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  153. local tecks3 = Instance.new("TextLabel", naeeym2)
  154. tecks3.BackgroundTransparency = 1
  155. tecks3.BorderSizePixel = 0
  156. tecks3.Text = ""
  157. tecks3.Font = "SciFi"
  158. tecks3.TextSize = 30
  159. tecks3.TextStrokeTransparency = 0
  160. tecks3.TextColor3 = Color3.new(0, 0, 0)
  161. tecks3.TextStrokeColor3 = color
  162. tecks3.Size = UDim2.new(1, 0, 0.5, 0)
  163. coroutine.resume(coroutine.create(function()
  164. while true do
  165. swait(1)
  166. if chaosmode == true then
  167. tecks2.TextColor3 = BrickColor.random().Color
  168. tecks3.TextStrokeColor3 = BrickColor.random().Color
  169. end
  170. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  171. tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  172. tecks2.Rotation = math.random(-5, 5)
  173. tecks3.Rotation = math.random(-5, 5)
  174. end
  175. end))
  176. for i = 1, string.len(text) do
  177. CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
  178. tecks2.Text = string.sub(text, 1, i)
  179. tecks3.Text = string.sub(text, 1, i)
  180. swait(1)
  181. end
  182. wait(1)
  183. local randomrot = math.random(1, 2)
  184. if randomrot == 1 then
  185. for i = 1, 50 do
  186. swait()
  187. tecks2.Rotation = tecks2.Rotation - 0.75
  188. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  189. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  190. tecks3.Rotation = tecks2.Rotation + 0.75
  191. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  192. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  193. end
  194. elseif randomrot == 2 then
  195. for i = 1, 50 do
  196. swait()
  197. tecks2.Rotation = tecks2.Rotation + 0.75
  198. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  199. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  200. tecks3.Rotation = tecks2.Rotation - 0.75
  201. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  202. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  203. end
  204. end
  205. naeeym2:Destroy()
  206. end)
  207. chat()
  208. end
  209. local Create = LoadLibrary("RbxUtility").Create
  210. CFuncs = {
  211. Part = {
  212. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  213. local Part = Create("Part")({
  214. Parent = Parent,
  215. Reflectance = Reflectance,
  216. Transparency = Transparency,
  217. CanCollide = false,
  218. Locked = true,
  219. BrickColor = BrickColor.new(tostring(BColor)),
  220. Name = Name,
  221. Size = Size,
  222. Material = Material
  223. })
  224. RemoveOutlines(Part)
  225. return Part
  226. end
  227. },
  228. Mesh = {
  229. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  230. local Msh = Create(Mesh)({
  231. Parent = Part,
  232. Offset = OffSet,
  233. Scale = Scale
  234. })
  235. if Mesh == "SpecialMesh" then
  236. Msh.MeshType = MeshType
  237. Msh.MeshId = MeshId
  238. end
  239. return Msh
  240. end
  241. },
  242. Mesh = {
  243. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  244. local Msh = Create(Mesh)({
  245. Parent = Part,
  246. Offset = OffSet,
  247. Scale = Scale
  248. })
  249. if Mesh == "SpecialMesh" then
  250. Msh.MeshType = MeshType
  251. Msh.MeshId = MeshId
  252. end
  253. return Msh
  254. end
  255. },
  256. Weld = {
  257. Create = function(Parent, Part0, Part1, C0, C1)
  258. local Weld = Create("Weld")({
  259. Parent = Parent,
  260. Part0 = Part0,
  261. Part1 = Part1,
  262. C0 = C0,
  263. C1 = C1
  264. })
  265. return Weld
  266. end
  267. },
  268. Sound = {
  269. Create = function(id, par, vol, pit)
  270. coroutine.resume(coroutine.create(function()
  271. local S = Create("Sound")({
  272. Volume = vol,
  273. Pitch = pit or 1,
  274. SoundId = id,
  275. Parent = par or workspace
  276. })
  277. wait()
  278. S:play()
  279. game:GetService("Debris"):AddItem(S, 10)
  280. end))
  281. end
  282. },
  283. LongSound = {
  284. Create = function(id, par, vol, pit)
  285. coroutine.resume(coroutine.create(function()
  286. local S = Create("Sound")({
  287. Volume = vol,
  288. Pitch = pit or 1,
  289. SoundId = id,
  290. Parent = par or workspace
  291. })
  292. wait()
  293. S:play()
  294. game:GetService("Debris"):AddItem(S, 30)
  295. end))
  296. end
  297. },
  298. ParticleEmitter = {
  299. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  300. local fp = Create("ParticleEmitter")({
  301. Parent = Parent,
  302. Color = ColorSequence.new(Color1, Color2),
  303. LightEmission = LightEmission,
  304. Size = Size,
  305. Texture = Texture,
  306. Transparency = Transparency,
  307. ZOffset = ZOffset,
  308. Acceleration = Accel,
  309. Drag = Drag,
  310. LockedToPart = LockedToPart,
  311. VelocityInheritance = VelocityInheritance,
  312. EmissionDirection = EmissionDirection,
  313. Enabled = Enabled,
  314. Lifetime = LifeTime,
  315. Rate = Rate,
  316. Rotation = Rotation,
  317. RotSpeed = RotSpeed,
  318. Speed = Speed,
  319. VelocitySpread = VelocitySpread
  320. })
  321. return fp
  322. end
  323. },
  324. CreateTemplate = {}
  325. }
  326. function New(Object, Parent, Name, Data)
  327. local Object = Instance.new(Object)
  328. for Index, Value in pairs(Data or {}) do
  329. Object[Index] = Value
  330. end
  331. Object.Parent = Parent
  332. Object.Name = Name
  333. return Object
  334. end
  335. local halocolor = BrickColor.new("White")
  336. local halocolor2 = BrickColor.new("White")
  337. local starcolor = BrickColor.new("White")
  338. local lunacolor = BrickColor.new("White")
  339. local lunacolor2 = BrickColor.new("White")
  340. local wepcolor = BrickColor.new("Really black")
  341. local maincolor = BrickColor.new("Really black")
  342. local m = Instance.new("Model", char)
  343. local m2 = Instance.new("Model", char)
  344. local m3 = Instance.new("Model", char)
  345. local mw1 = Instance.new("Model", char)
  346. local mw2 = Instance.new("Model", char)
  347. local extrawingmod1 = Instance.new("Model", char)
  348. local extrawingmod2 = Instance.new("Model", char)
  349. function CreateParta(parent, transparency, reflectance, material, brickcolor)
  350. local p = Instance.new("Part")
  351. p.TopSurface = 0
  352. p.BottomSurface = 0
  353. p.Parent = parent
  354. p.Size = Vector3.new(0.1, 0.1, 0.1)
  355. p.Transparency = transparency
  356. p.Reflectance = reflectance
  357. p.CanCollide = false
  358. p.Locked = true
  359. p.BrickColor = brickcolor
  360. p.Material = material
  361. return p
  362. end
  363. function CreateMesh(parent, meshtype, x1, y1, z1)
  364. local mesh = Instance.new("SpecialMesh", parent)
  365. mesh.MeshType = meshtype
  366. mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10)
  367. return mesh
  368. end
  369. function CreateSpecialMesh(parent, meshid, x1, y1, z1)
  370. local mesh = Instance.new("SpecialMesh", parent)
  371. mesh.MeshType = "FileMesh"
  372. mesh.MeshId = meshid
  373. mesh.Scale = Vector3.new(x1, y1, z1)
  374. return mesh
  375. end
  376. function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1)
  377. local mesh = Instance.new("SpecialMesh", parent)
  378. mesh.MeshType = "FileMesh"
  379. mesh.MeshId = meshid
  380. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  381. mesh.Scale = Vector3.new(x1, y1, z1)
  382. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  383. return mesh
  384. end
  385. function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za)
  386. local weld = Instance.new("Weld")
  387. weld.Parent = parent
  388. weld.Part0 = part0
  389. weld.Part1 = part1
  390. weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za)
  391. weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za)
  392. return weld
  393. end
  394. local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor)
  395. CreateMesh(handle, "Brick", 0, 0, 0)
  396. 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))
  397. local valuaring = 10
  398. for i = 0, 49 do
  399. valuaring = valuaring + 10
  400. rn = CreateParta(mw2, 0, 0, "Neon", halocolor)
  401. CreateMesh(rn, "Brick", 0.25, 0.1, 0.1)
  402. 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))
  403. end
  404. local handle = CreateParta(m, 1, 1, "Neon", maincolor)
  405. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  406. 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))
  407. local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  408. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  409. 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))
  410. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  411. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  412. 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))
  413. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  414. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  415. 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))
  416. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  417. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  418. 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))
  419. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  420. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  421. 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))
  422. local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  423. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  424. 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))
  425. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  426. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  427. 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))
  428. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  429. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  430. 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))
  431. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  432. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  433. 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))
  434. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  435. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  436. 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))
  437. local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  438. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  439. 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))
  440. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  441. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  442. 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))
  443. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  444. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  445. 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))
  446. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  447. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  448. 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))
  449. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  450. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  451. 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))
  452. local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  453. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  454. 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))
  455. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  456. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  457. 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))
  458. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  459. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  460. 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))
  461. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  462. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  463. 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))
  464. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  465. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  466. 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))
  467. local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  468. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  469. 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))
  470. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  471. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  472. 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))
  473. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  474. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  475. 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))
  476. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  477. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  478. 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))
  479. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  480. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  481. 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))
  482. local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  483. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  484. 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))
  485. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  486. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  487. 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))
  488. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  489. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  490. 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))
  491. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  492. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  493. 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))
  494. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  495. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  496. 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))
  497. local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  498. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  499. 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))
  500. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  501. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  502. 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))
  503. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  504. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  505. 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))
  506. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  507. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  508. 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))
  509. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  510. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  511. 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))
  512. local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  513. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  514. 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))
  515. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  516. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  517. 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))
  518. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  519. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  520. 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))
  521. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  522. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  523. 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))
  524. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  525. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  526. 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))
  527. local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  528. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  529. 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))
  530. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  531. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  532. 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))
  533. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  534. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  535. 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))
  536. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  537. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  538. 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))
  539. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  540. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  541. 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))
  542. local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  543. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  544. 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))
  545. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  546. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  547. 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))
  548. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  549. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  550. 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))
  551. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  552. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  553. 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))
  554. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  555. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  556. 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))
  557. local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  558. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  559. 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))
  560. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  561. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  562. 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))
  563. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  564. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  565. 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))
  566. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  567. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  568. 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))
  569. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  570. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  571. 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))
  572. local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  573. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  574. 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))
  575. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  576. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  577. 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))
  578. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  579. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  580. 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))
  581. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  582. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  583. 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))
  584. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  585. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  586. 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))
  587. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  588. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  589. 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))
  590. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  591. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  592. 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))
  593. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  594. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  595. 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))
  596. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  597. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  598. 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))
  599. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  600. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  601. 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))
  602. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  603. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  604. 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))
  605. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  606. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  607. 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))
  608. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  609. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  610. 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))
  611. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  612. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  613. 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))
  614. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  615. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  616. 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))
  617. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  618. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  619. CreateWeld(dotsec, larm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  620. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  621. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  622. CreateWeld(dotseca, larm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  623. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  624. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  625. CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  626. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  627. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  628. CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  629. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  630. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  631. CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  632. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  633. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  634. CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  635. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  636. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  637. CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  638. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  639. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  640. CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  641. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  642. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  643. CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  644. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  645. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  646. CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  647. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  648. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  649. CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  650. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  651. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  652. CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  653. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  654. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  655. CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  656. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  657. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  658. CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  659. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  660. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  661. CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  662. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  663. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  664. CreateWeld(dotsec, larm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  665. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  666. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  667. CreateWeld(dotseca, larm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  668. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  669. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  670. CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  671. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  672. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  673. CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  674. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  675. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  676. CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  677. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  678. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  679. CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  680. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  681. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  682. CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  683. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  684. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  685. CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  686. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  687. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  688. CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  689. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  690. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  691. CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  692. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  693. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  694. CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  695. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  696. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  697. CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  698. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  699. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  700. CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  701. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  702. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  703. CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  704. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  705. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  706. CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  707. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  708. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  709. 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))
  710. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  711. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  712. 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))
  713. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  714. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  715. 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))
  716. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  717. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  718. 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))
  719. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  720. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  721. 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))
  722. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  723. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  724. 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))
  725. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  726. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  727. 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))
  728. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  729. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  730. 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))
  731. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  732. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  733. 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))
  734. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  735. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  736. 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))
  737. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  738. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  739. CreateWeld(dotsec, rarm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  740. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  741. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  742. CreateWeld(dotseca, rarm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  743. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  744. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  745. CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  746. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  747. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  748. CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  749. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  750. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  751. CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  752. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  753. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  754. CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  755. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  756. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  757. CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  758. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  759. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  760. CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  761. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  762. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  763. CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  764. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  765. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  766. CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  767. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  768. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  769. CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  770. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  771. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  772. CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  773. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  774. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  775. CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  776. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  777. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  778. CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  779. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  780. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  781. CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  782. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  783. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  784. CreateWeld(dotsec, rarm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  785. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  786. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  787. CreateWeld(dotseca, rarm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  788. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  789. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  790. CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  791. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  792. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  793. CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  794. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  795. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  796. CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  797. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  798. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  799. CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  800. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  801. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  802. CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  803. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  804. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  805. CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  806. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  807. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  808. CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  809. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  810. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  811. CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  812. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  813. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  814. CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  815. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  816. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  817. CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  818. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  819. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  820. CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  821. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  822. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  823. CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  824. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  825. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  826. CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  827. for i, v in pairs(m:GetChildren()) do
  828. if v:IsA("Part") then
  829. v.BrickColor = BrickColor.new("Really black")
  830. v.Material = "Glass"
  831. end
  832. end
  833. for i, v in pairs(m2:GetChildren()) do
  834. if v:IsA("Part") then
  835. v.BrickColor = BrickColor.new("Crimson")
  836. v.Material = "Granite"
  837. end
  838. end
  839. for i, v in pairs(m3:GetChildren()) do
  840. if v:IsA("Part") then
  841. v.BrickColor = BrickColor.new("Really red")
  842. v.Material = "Neon"
  843. end
  844. end
  845. for i, v in pairs(mw2:GetChildren()) do
  846. if v:IsA("Part") then
  847. v.BrickColor = BrickColor.new("Really red")
  848. v.Material = "Neon"
  849. end
  850. end
  851. for i, v in pairs(mw1:GetChildren()) do
  852. if v:IsA("Part") then
  853. v.Transparency = 1
  854. v.BrickColor = BrickColor.new("Really red")
  855. v.Material = "Neon"
  856. end
  857. end
  858. for i, v in pairs(extrawingmod1:GetChildren()) do
  859. if v:IsA("Part") then
  860. v.Transparency = 1
  861. v.BrickColor = BrickColor.new("White")
  862. v.Material = "Neon"
  863. end
  864. end
  865. for i, v in pairs(extrawingmod2:GetChildren()) do
  866. if v:IsA("Part") then
  867. v.Transparency = 1
  868. v.BrickColor = BrickColor.new("White")
  869. v.Material = "Neon"
  870. end
  871. end
  872. local MAINRUINCOLOR = BrickColor.new("Really red")
  873. function RemoveOutlines(part)
  874. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  875. end
  876. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  877. local Part = Create("Part")({
  878. Parent = Parent,
  879. Reflectance = Reflectance,
  880. Transparency = Transparency,
  881. CanCollide = false,
  882. Locked = true,
  883. BrickColor = BrickColor.new(tostring(BColor)),
  884. Name = Name,
  885. Size = Size,
  886. Material = Material
  887. })
  888. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  889. RemoveOutlines(Part)
  890. return Part
  891. end
  892. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  893. local Msh = Create(Mesh)({
  894. Parent = Part,
  895. Offset = OffSet,
  896. Scale = Scale
  897. })
  898. if Mesh == "SpecialMesh" then
  899. Msh.MeshType = MeshType
  900. Msh.MeshId = MeshId
  901. end
  902. return Msh
  903. end
  904. function CreateWeld(Parent, Part0, Part1, C0, C1)
  905. local Weld = Create("Weld")({
  906. Parent = Parent,
  907. Part0 = Part0,
  908. Part1 = Part1,
  909. C0 = C0,
  910. C1 = C1
  911. })
  912. return Weld
  913. end
  914. Player = game:GetService("Players").LocalPlayer
  915. Character = Player.Character
  916. PlayerGui = Player.PlayerGui
  917. Backpack = Player.Backpack
  918. Torso = Character.Torso
  919. Head = Character.Head
  920. Humanoid = Character.Humanoid
  921. m = Instance.new("Model", Character)
  922. LeftArm = Character["Left Arm"]
  923. LeftLeg = Character["Left Leg"]
  924. RightArm = Character["Right Arm"]
  925. RightLeg = Character["Right Leg"]
  926. LS = Torso["Left Shoulder"]
  927. LH = Torso["Left Hip"]
  928. RS = Torso["Right Shoulder"]
  929. RH = Torso["Right Hip"]
  930. Face = Head.face
  931. Neck = Torso.Neck
  932. it = Instance.new
  933. attacktype = 1
  934. vt = Vector3.new
  935. cf = CFrame.new
  936. euler = CFrame.fromEulerAnglesXYZ
  937. angles = CFrame.Angles
  938. cloaked = false
  939. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  940. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  941. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  942. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  943. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  944. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  945. RootPart = Character.HumanoidRootPart
  946. RootJoint = RootPart.RootJoint
  947. RootCF = euler(-1.57, 0, 3.14)
  948. attack = false
  949. attackdebounce = false
  950. deb = false
  951. equipped = true
  952. hand = false
  953. MMouse = nil
  954. combo = 0
  955. mana = 0
  956. trispeed = 0.2
  957. attackmode = "none"
  958. local idle = 0
  959. local Anim = "Idle"
  960. local Effects = {}
  961. local gun = false
  962. local shoot = false
  963. local sine = 0
  964. local change = 1
  965. player = nil
  966. local toggleTag = true
  967. local txt = Instance.new("BillboardGui", Head)
  968. txt.Adornee = nil
  969. txt.Name = "NameDetect"
  970. txt.Size = UDim2.new(4, 0, 1.2, 0)
  971. txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
  972. local text = Instance.new("TextLabel", txt)
  973. text.Size = UDim2.new(5, 0, 3.5, 0)
  974. text.FontSize = "Size8"
  975. text.TextScaled = true
  976. text.TextTransparency = 0
  977. text.BackgroundTransparency = 1
  978. text.TextTransparency = 0
  979. text.TextStrokeTransparency = 0
  980. text.Font = "Fantasy"
  981. text.TextStrokeColor3 = Color3.new(1, 0, 0)
  982. text.TextColor3 = Color3.new(0, 0, 0)
  983. text.Text = "Blood maker"
  984. function RecolorTextAndRename(name, col1, col2)
  985. text.TextStrokeColor3 = col2
  986. text.TextColor3 = col1
  987. text.Text = name
  988. end
  989. mouse = Player:GetMouse()
  990. RSH, LSH = nil, nil
  991. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  992. RW.Name = "Right Shoulder"
  993. LW.Name = "Left Shoulder"
  994. LH = Torso["Left Hip"]
  995. RH = Torso["Right Hip"]
  996. TorsoColor = Torso.BrickColor
  997. function NoOutline(Part)
  998. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  999. end
  1000. player = Player
  1001. ch = Character
  1002. RSH = ch.Torso["Right Shoulder"]
  1003. LSH = ch.Torso["Left Shoulder"]
  1004. RSH.Parent = nil
  1005. LSH.Parent = nil
  1006. RW.Name = "Right Shoulder"
  1007. RW.Part0 = ch.Torso
  1008. RW.C0 = cf(1.5, 0.5, 0)
  1009. RW.C1 = cf(0, 0.5, 0)
  1010. RW.Part1 = ch["Right Arm"]
  1011. RW.Parent = ch.Torso
  1012. LW.Name = "Left Shoulder"
  1013. LW.Part0 = ch.Torso
  1014. LW.C0 = cf(-1.5, 0.5, 0)
  1015. LW.C1 = cf(0, 0.5, 0)
  1016. LW.Part1 = ch["Left Arm"]
  1017. LW.Parent = ch.Torso
  1018. local Stats = Instance.new("BoolValue")
  1019. Stats.Name = "Stats"
  1020. Stats.Parent = Character
  1021. local Atk = Instance.new("NumberValue")
  1022. Atk.Name = "Damage"
  1023. Atk.Parent = Stats
  1024. Atk.Value = 1
  1025. local Def = Instance.new("NumberValue")
  1026. Def.Name = "Defense"
  1027. Def.Parent = Stats
  1028. Def.Value = 1
  1029. local Speed = Instance.new("NumberValue")
  1030. Speed.Name = "Speed"
  1031. Speed.Parent = Stats
  1032. Speed.Value = 1
  1033. local Mvmt = Instance.new("NumberValue")
  1034. Mvmt.Name = "Movement"
  1035. Mvmt.Parent = Stats
  1036. Mvmt.Value = 1
  1037. local donum = 0
  1038. function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  1039. local fp = it("Part")
  1040. fp.formFactor = formfactor
  1041. fp.Parent = parent
  1042. fp.Reflectance = reflectance
  1043. fp.Transparency = transparency
  1044. fp.CanCollide = false
  1045. fp.Locked = true
  1046. fp.BrickColor = brickcolor
  1047. fp.Name = name
  1048. fp.Size = size
  1049. fp.Position = Torso.Position
  1050. NoOutline(fp)
  1051. fp.Material = "SmoothPlastic"
  1052. fp:BreakJoints()
  1053. return fp
  1054. end
  1055. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  1056. local mesh = it(Mesh)
  1057. mesh.Parent = part
  1058. if Mesh == "SpecialMesh" then
  1059. mesh.MeshType = meshtype
  1060. if meshid ~= "nil" then
  1061. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  1062. end
  1063. end
  1064. mesh.Offset = offset
  1065. mesh.Scale = scale
  1066. return mesh
  1067. end
  1068. function weld(parent, part0, part1, c0)
  1069. local weld = it("Weld")
  1070. weld.Parent = parent
  1071. weld.Part0 = part0
  1072. weld.Part1 = part1
  1073. weld.C0 = c0
  1074. return weld
  1075. end
  1076. local Color1 = Torso.BrickColor
  1077. local bodvel = Instance.new("BodyVelocity")
  1078. local bg = Instance.new("BodyGyro")
  1079. function swait(num)
  1080. if num == 0 or num == nil then
  1081. game:service("RunService").Stepped:wait(0)
  1082. else
  1083. for i = 0, num do
  1084. game:service("RunService").Stepped:wait(0)
  1085. end
  1086. end
  1087. end
  1088. local r = 255
  1089. local g = 0
  1090. local b = 0
  1091. coroutine.resume(coroutine.create(function()
  1092. while wait() do
  1093. for i = 0, 50.8 do
  1094. swait()
  1095. g = g + 5
  1096. end
  1097. for i = 0, 50.8 do
  1098. swait()
  1099. r = r - 5
  1100. end
  1101. for i = 0, 50.8 do
  1102. swait()
  1103. b = b + 5
  1104. end
  1105. for i = 0, 50.8 do
  1106. swait()
  1107. g = g - 5
  1108. end
  1109. for i = 0, 50.8 do
  1110. swait()
  1111. r = r + 5
  1112. end
  1113. for i = 0, 50.8 do
  1114. swait()
  1115. b = b - 5
  1116. end
  1117. end
  1118. end))
  1119. function so(id, par, vol, pit)
  1120. coroutine.resume(coroutine.create(function()
  1121. local sou = Instance.new("Sound", par or workspace)
  1122. sou.Volume = vol
  1123. sou.Pitch = pit or 1
  1124. sou.SoundId = id
  1125. swait()
  1126. sou:play()
  1127. game:GetService("Debris"):AddItem(sou, 6)
  1128. end))
  1129. end
  1130. function clerp(a, b, t)
  1131. local qa = {
  1132. QuaternionFromCFrame(a)
  1133. }
  1134. local qb = {
  1135. QuaternionFromCFrame(b)
  1136. }
  1137. local ax, ay, az = a.x, a.y, a.z
  1138. local bx, by, bz = b.x, b.y, b.z
  1139. local _t = 1 - t
  1140. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1141. end
  1142. function QuaternionFromCFrame(cf)
  1143. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1144. local trace = m00 + m11 + m22
  1145. if trace > 0 then
  1146. local s = math.sqrt(1 + trace)
  1147. local recip = 0.5 / s
  1148. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1149. else
  1150. local i = 0
  1151. if m00 < m11 then
  1152. i = 1
  1153. end
  1154. if m22 > (i == 0 and m00 or m11) then
  1155. i = 2
  1156. end
  1157. if i == 0 then
  1158. local s = math.sqrt(m00 - m11 - m22 + 1)
  1159. local recip = 0.5 / s
  1160. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1161. elseif i == 1 then
  1162. local s = math.sqrt(m11 - m22 - m00 + 1)
  1163. local recip = 0.5 / s
  1164. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1165. elseif i == 2 then
  1166. local s = math.sqrt(m22 - m00 - m11 + 1)
  1167. local recip = 0.5 / s
  1168. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1169. end
  1170. end
  1171. end
  1172. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1173. local xs, ys, zs = x + x, y + y, z + z
  1174. local wx, wy, wz = w * xs, w * ys, w * zs
  1175. local xx = x * xs
  1176. local xy = x * ys
  1177. local xz = x * zs
  1178. local yy = y * ys
  1179. local yz = y * zs
  1180. local zz = z * zs
  1181. 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))
  1182. end
  1183. function QuaternionSlerp(a, b, t)
  1184. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1185. local startInterp, finishInterp
  1186. if cosTheta >= 1.0E-4 then
  1187. if 1 - cosTheta > 1.0E-4 then
  1188. local theta = math.acos(cosTheta)
  1189. local invSinTheta = 1 / math.sin(theta)
  1190. startInterp = math.sin((1 - t) * theta) * invSinTheta
  1191. finishInterp = math.sin(t * theta) * invSinTheta
  1192. else
  1193. startInterp = 1 - t
  1194. finishInterp = t
  1195. end
  1196. elseif 1 + cosTheta > 1.0E-4 then
  1197. local theta = math.acos(-cosTheta)
  1198. local invSinTheta = 1 / math.sin(theta)
  1199. startInterp = math.sin((t - 1) * theta) * invSinTheta
  1200. finishInterp = math.sin(t * theta) * invSinTheta
  1201. else
  1202. startInterp = t - 1
  1203. finishInterp = t
  1204. end
  1205. 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
  1206. end
  1207. local CFrameFromTopBack = function(at, top, back)
  1208. local right = top:Cross(back)
  1209. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1210. end
  1211. function Triangle(a, b, c)
  1212. local edg1 = (c - a):Dot((b - a).unit)
  1213. local edg2 = (a - b):Dot((c - b).unit)
  1214. local edg3 = (b - c):Dot((a - c).unit)
  1215. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  1216. a, b = a, b
  1217. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  1218. a, b, c = b, c, a
  1219. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  1220. a, b, c = c, a, b
  1221. else
  1222. assert(false, "unreachable")
  1223. end
  1224. local len1 = (c - a):Dot((b - a).unit)
  1225. local len2 = (b - a).magnitude - len1
  1226. local width = (a + (b - a).unit * len1 - c).magnitude
  1227. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  1228. local list = {}
  1229. if len1 > 0.01 then
  1230. local w1 = Instance.new("WedgePart", m)
  1231. game:GetService("Debris"):AddItem(w1, 5)
  1232. w1.Material = "SmoothPlastic"
  1233. w1.FormFactor = "Custom"
  1234. w1.BrickColor = BrickColor.new("Really red")
  1235. w1.Transparency = 0
  1236. w1.Reflectance = 0
  1237. w1.Material = "SmoothPlastic"
  1238. w1.CanCollide = false
  1239. local l1 = Instance.new("PointLight", w1)
  1240. l1.Color = Color3.new(170, 0, 0)
  1241. NoOutline(w1)
  1242. local sz = Vector3.new(0.2, width, len1)
  1243. w1.Size = sz
  1244. local sp = Instance.new("SpecialMesh", w1)
  1245. sp.MeshType = "Wedge"
  1246. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  1247. w1:BreakJoints()
  1248. w1.Anchored = true
  1249. w1.Parent = workspace
  1250. w1.Transparency = 0.7
  1251. table.insert(Effects, {
  1252. w1,
  1253. "Disappear",
  1254. 0.01
  1255. })
  1256. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  1257. table.insert(list, w1)
  1258. end
  1259. if len2 > 0.01 then
  1260. local w2 = Instance.new("WedgePart", m)
  1261. game:GetService("Debris"):AddItem(w2, 5)
  1262. w2.Material = "SmoothPlastic"
  1263. w2.FormFactor = "Custom"
  1264. w2.BrickColor = BrickColor.new("Really red")
  1265. w2.Transparency = 0
  1266. w2.Reflectance = 0
  1267. w2.Material = "SmoothPlastic"
  1268. w2.CanCollide = false
  1269. local l2 = Instance.new("PointLight", w2)
  1270. l2.Color = Color3.new(170, 0, 0)
  1271. NoOutline(w2)
  1272. local sz = Vector3.new(0.2, width, len2)
  1273. w2.Size = sz
  1274. local sp = Instance.new("SpecialMesh", w2)
  1275. sp.MeshType = "Wedge"
  1276. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  1277. w2:BreakJoints()
  1278. w2.Anchored = true
  1279. w2.Parent = workspace
  1280. w2.Transparency = 0.7
  1281. table.insert(Effects, {
  1282. w2,
  1283. "Disappear",
  1284. 0.01
  1285. })
  1286. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  1287. table.insert(list, w2)
  1288. end
  1289. return unpack(list)
  1290. end
  1291. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1292. if hit.Parent == nil then
  1293. return
  1294. end
  1295. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1296. for _, v in pairs(hit.Parent:children()) do
  1297. if v:IsA("Humanoid") then
  1298. h = v
  1299. end
  1300. end
  1301. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1302. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1303. return
  1304. end
  1305. local c = Create("ObjectValue")({
  1306. Name = "creator",
  1307. Value = game:service("Players").LocalPlayer,
  1308. Parent = h
  1309. })
  1310. game:GetService("Debris"):AddItem(c, 0.5)
  1311. if HitSound ~= nil and HitPitch ~= nil then
  1312. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1313. end
  1314. local Damage = math.random(minim, maxim)
  1315. local blocked = false
  1316. local block = hit.Parent:findFirstChild("Block")
  1317. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1318. blocked = true
  1319. block.Value = block.Value - 1
  1320. print(block.Value)
  1321. end
  1322. if blocked == false then
  1323. HitHealth = h.Health
  1324. h.Health = h.Health - Damage
  1325. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1326. print("gained kill")
  1327. end
  1328. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1329. else
  1330. h.Health = h.Health - Damage / 2
  1331. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1332. end
  1333. if Type == "Knockdown" then
  1334. local hum = hit.Parent.Humanoid
  1335. hum.PlatformStand = true
  1336. coroutine.resume(coroutine.create(function(HHumanoid)
  1337. swait(1)
  1338. HHumanoid.PlatformStand = false
  1339. end), hum)
  1340. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1341. local bodvol = Create("BodyVelocity")({
  1342. velocity = angle * knockback,
  1343. P = 5000,
  1344. maxForce = Vector3.new(8000, 8000, 8000),
  1345. Parent = hit
  1346. })
  1347. local rl = Create("BodyAngularVelocity")({
  1348. P = 3000,
  1349. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1350. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1351. Parent = hit
  1352. })
  1353. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1354. game:GetService("Debris"):AddItem(rl, 0.5)
  1355. elseif Type == "Normal" then
  1356. local vp = Create("BodyVelocity")({
  1357. P = 500,
  1358. maxForce = Vector3.new(math.huge, 0, math.huge),
  1359. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1360. })
  1361. if knockback > 0 then
  1362. vp.Parent = hit.Parent.Head
  1363. end
  1364. game:GetService("Debris"):AddItem(vp, 0.5)
  1365. elseif Type == "Up" then
  1366. local bodyVelocity = Create("BodyVelocity")({
  1367. velocity = Vector3.new(0, 20, 0),
  1368. P = 5000,
  1369. maxForce = Vector3.new(8000, 8000, 8000),
  1370. Parent = hit
  1371. })
  1372. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1373. local bodyVelocity = Create("BodyVelocity")({
  1374. velocity = Vector3.new(0, 20, 0),
  1375. P = 5000,
  1376. maxForce = Vector3.new(8000, 8000, 8000),
  1377. Parent = hit
  1378. })
  1379. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1380. elseif Type == "Leech" then
  1381. local hum = hit.Parent.Humanoid
  1382. if hum ~= nil then
  1383. for i = 0, 2 do
  1384. 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)
  1385. end
  1386. Humanoid.Health = Humanoid.Health + 10
  1387. end
  1388. elseif Type == "UpKnock" then
  1389. local hum = hit.Parent.Humanoid
  1390. hum.PlatformStand = true
  1391. if hum ~= nil then
  1392. hitr = true
  1393. end
  1394. coroutine.resume(coroutine.create(function(HHumanoid)
  1395. swait(5)
  1396. HHumanoid.PlatformStand = false
  1397. hitr = false
  1398. end), hum)
  1399. local bodyVelocity = Create("BodyVelocity")({
  1400. velocity = Vector3.new(0, 20, 0),
  1401. P = 5000,
  1402. maxForce = Vector3.new(8000, 8000, 8000),
  1403. Parent = hit
  1404. })
  1405. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1406. local bodyVelocity = Create("BodyVelocity")({
  1407. velocity = Vector3.new(0, 20, 0),
  1408. P = 5000,
  1409. maxForce = Vector3.new(8000, 8000, 8000),
  1410. Parent = hit
  1411. })
  1412. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1413. elseif Type == "Snare" then
  1414. local bp = Create("BodyPosition")({
  1415. P = 2000,
  1416. D = 100,
  1417. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1418. position = hit.Parent.Torso.Position,
  1419. Parent = hit.Parent.Torso
  1420. })
  1421. game:GetService("Debris"):AddItem(bp, 1)
  1422. elseif Type == "Slashnare" then
  1423. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07)
  1424. for i = 1, math.random(4, 5) do
  1425. 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)
  1426. end
  1427. local bp = Create("BodyPosition")({
  1428. P = 2000,
  1429. D = 100,
  1430. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1431. position = hit.Parent.Torso.Position,
  1432. Parent = hit.Parent.Torso
  1433. })
  1434. game:GetService("Debris"):AddItem(bp, 1)
  1435. elseif Type == "Spike" then
  1436. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1437. local bp = Create("BodyPosition")({
  1438. P = 2000,
  1439. D = 100,
  1440. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1441. position = hit.Parent.Torso.Position,
  1442. Parent = hit.Parent.Torso
  1443. })
  1444. game:GetService("Debris"):AddItem(bp, 1)
  1445. elseif Type == "Freeze" then
  1446. local BodPos = Create("BodyPosition")({
  1447. P = 50000,
  1448. D = 1000,
  1449. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1450. position = hit.Parent.Torso.Position,
  1451. Parent = hit.Parent.Torso
  1452. })
  1453. local BodGy = Create("BodyGyro")({
  1454. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1455. P = 20000,
  1456. Parent = hit.Parent.Torso,
  1457. cframe = hit.Parent.Torso.CFrame
  1458. })
  1459. hit.Parent.Torso.Anchored = true
  1460. coroutine.resume(coroutine.create(function(Part)
  1461. swait(1.5)
  1462. Part.Anchored = false
  1463. end), hit.Parent.Torso)
  1464. game:GetService("Debris"):AddItem(BodPos, 3)
  1465. game:GetService("Debris"):AddItem(BodGy, 3)
  1466. end
  1467. local debounce = Create("BoolValue")({
  1468. Name = "DebounceHit",
  1469. Parent = hit.Parent,
  1470. Value = true
  1471. })
  1472. game:GetService("Debris"):AddItem(debounce, Delay)
  1473. c = Instance.new("ObjectValue")
  1474. c.Name = "creator"
  1475. c.Value = Player
  1476. c.Parent = h
  1477. game:GetService("Debris"):AddItem(c, 0.5)
  1478. end
  1479. end
  1480. function ShowDamage(Pos, Text, Time, Color)
  1481. local Rate = 0.03333333333333333
  1482. local Pos = Pos or Vector3.new(0, 0, 0)
  1483. local Text = Text or ""
  1484. local Time = Time or 2
  1485. local Color = Color or Color3.new(1, 0, 1)
  1486. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1487. EffectPart.Anchored = true
  1488. local BillboardGui = Create("BillboardGui")({
  1489. Size = UDim2.new(3, 0, 3, 0),
  1490. Adornee = EffectPart,
  1491. Parent = EffectPart
  1492. })
  1493. local TextLabel = Create("TextLabel")({
  1494. BackgroundTransparency = 1,
  1495. Size = UDim2.new(1, 0, 1, 0),
  1496. Text = Text,
  1497. TextColor3 = Color,
  1498. TextScaled = true,
  1499. Font = Enum.Font.ArialBold,
  1500. Parent = BillboardGui
  1501. })
  1502. game.Debris:AddItem(EffectPart, Time + 0.1)
  1503. EffectPart.Parent = game:GetService("Workspace")
  1504. delay(0, function()
  1505. local Frames = Time / Rate
  1506. for Frame = 1, Frames do
  1507. wait(Rate)
  1508. local Percent = Frame / Frames
  1509. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1510. TextLabel.TextTransparency = Percent
  1511. end
  1512. if EffectPart and EffectPart.Parent then
  1513. EffectPart:Destroy()
  1514. end
  1515. end)
  1516. end
  1517. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1518. for _, c in pairs(workspace:children()) do
  1519. local hum = c:findFirstChildOfClass("Humanoid")
  1520. if hum ~= nil then
  1521. local head = c:findFirstChild("Head")
  1522. if head ~= nil then
  1523. local targ = head.Position - Part.Position
  1524. local mag = targ.magnitude
  1525. if magni >= mag and c.Name ~= Player.Name then
  1526. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1527. end
  1528. end
  1529. end
  1530. end
  1531. end
  1532. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1533. for _, c in pairs(workspace:children()) do
  1534. local hum = c:findFirstChild("Humanoid")
  1535. if hum ~= nil then
  1536. local head = c:findFirstChild("Torso")
  1537. if head ~= nil then
  1538. local targ = head.Position - Part.Position
  1539. local mag = targ.magnitude
  1540. if magni >= mag and c.Name ~= Player.Name then
  1541. MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
  1542. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1543. end
  1544. end
  1545. end
  1546. end
  1547. end
  1548. function rayCast(Pos, Dir, Max, Ignore)
  1549. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1550. end
  1551. function SkullEffect(brickcolor, cframe, x1, y1, z1, delay)
  1552. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1553. prt.Anchored = true
  1554. prt.CFrame = cframe
  1555. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  1556. game:GetService("Debris"):AddItem(prt, 2)
  1557. CF = prt.CFrame
  1558. coroutine.resume(coroutine.create(function(Part, Mesh, TehCF)
  1559. for i = 0, 1, 0.2 do
  1560. wait()
  1561. Part.CFrame = CF * cf(0, 0, -0.4)
  1562. end
  1563. for i = 0, 1, delay do
  1564. wait()
  1565. Mesh.Scale = Mesh.Scale
  1566. end
  1567. for i = 0, 1, 0.1 do
  1568. wait()
  1569. Part.Transparency = i
  1570. end
  1571. Part.Parent = nil
  1572. end), prt, msh, CF)
  1573. end
  1574. function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1575. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1576. prt.Anchored = true
  1577. prt.Material = "Neon"
  1578. prt.CFrame = cframe
  1579. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1580. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1581. game:GetService("Debris"):AddItem(prt, 5)
  1582. coroutine.resume(coroutine.create(function(Part, Mesh)
  1583. for i = 0, 1, delay do
  1584. swait()
  1585. Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1586. Part.Transparency = i
  1587. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1588. end
  1589. Part.Parent = nil
  1590. end), prt, msh)
  1591. end
  1592. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1593. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1594. prt.Anchored = true
  1595. prt.Material = "Neon"
  1596. prt.CFrame = cframe
  1597. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1598. game:GetService("Debris"):AddItem(prt, 5)
  1599. coroutine.resume(coroutine.create(function(Part, Mesh)
  1600. local rtype = rottype
  1601. for i = 0, 1, delay do
  1602. swait()
  1603. if rtype == 1 then
  1604. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1605. elseif rtype == 2 then
  1606. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1607. end
  1608. Part.Transparency = i
  1609. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1610. end
  1611. Part.Parent = nil
  1612. end), prt, msh)
  1613. end
  1614. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1615. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1616. prt.Anchored = true
  1617. prt.CFrame = cframe
  1618. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1619. msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1620. game:GetService("Debris"):AddItem(prt, 5)
  1621. coroutine.resume(coroutine.create(function(Part, Mesh)
  1622. for i = 0, 1, delay do
  1623. wait()
  1624. Part.Transparency = i
  1625. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1626. end
  1627. Part.Parent = nil
  1628. end), prt, msh)
  1629. end
  1630. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1631. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1632. prt.Anchored = true
  1633. prt.Material = "Neon"
  1634. prt.CFrame = cframe
  1635. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1636. game:GetService("Debris"):AddItem(prt, 5)
  1637. coroutine.resume(coroutine.create(function(Part, Mesh)
  1638. local rtype = rottype
  1639. for i = 0, 1, delay do
  1640. swait()
  1641. if rtype == 1 then
  1642. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1643. elseif rtype == 2 then
  1644. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1645. end
  1646. Part.Transparency = i
  1647. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1648. end
  1649. Part.Parent = nil
  1650. end), prt, msh)
  1651. end
  1652. function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  1653. local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1654. prt.Anchored = true
  1655. prt.Material = "Neon"
  1656. prt.CFrame = cframe
  1657. local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  1658. local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  1659. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  1660. game:GetService("Debris"):AddItem(prt, 5)
  1661. coroutine.resume(coroutine.create(function(Part, Mesh)
  1662. local rtype = rottype
  1663. for i = 0, 1, delay do
  1664. swait()
  1665. if rtype == 1 then
  1666. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1667. elseif rtype == 2 then
  1668. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1669. end
  1670. dec.Transparency = i
  1671. dec2.Transparency = i
  1672. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  1673. end
  1674. Part.Parent = nil
  1675. end), prt, msh)
  1676. end
  1677. function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  1678. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1679. prt.Anchored = true
  1680. prt.Material = "Neon"
  1681. prt.CFrame = cframe
  1682. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  1683. game:GetService("Debris"):AddItem(prt, 5)
  1684. coroutine.resume(coroutine.create(function(Part, Mesh)
  1685. local rtype = rottype
  1686. for i = 0, 1, delay do
  1687. swait()
  1688. if rtype == 1 then
  1689. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1690. elseif rtype == 2 then
  1691. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1692. end
  1693. prt.Transparency = i
  1694. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  1695. end
  1696. Part.Parent = nil
  1697. end), prt, msh)
  1698. end
  1699. function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype)
  1700. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1701. prt.Anchored = true
  1702. prt.Material = "Neon"
  1703. prt.CFrame = cframe
  1704. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
  1705. game:GetService("Debris"):AddItem(prt, 5)
  1706. coroutine.resume(coroutine.create(function(Part, Mesh)
  1707. local rtype = rottype
  1708. for i = 0, 1, delay do
  1709. swait()
  1710. if rtype == 1 then
  1711. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0)
  1712. elseif rtype == 2 then
  1713. prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0)
  1714. end
  1715. prt.Transparency = i
  1716. Mesh.Scale = Mesh.Scale + vt(x3, 0, z3)
  1717. end
  1718. Part.Parent = nil
  1719. end), prt, msh)
  1720. end
  1721. function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype)
  1722. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1723. prt.Anchored = true
  1724. prt.Material = "Neon"
  1725. prt.CFrame = cframe
  1726. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1727. game:GetService("Debris"):AddItem(prt, 5)
  1728. coroutine.resume(coroutine.create(function(Part, Mesh)
  1729. local rtype = rottype
  1730. for i = 0, 1, delay do
  1731. swait()
  1732. if rtype == 1 then
  1733. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1734. elseif rtype == 2 then
  1735. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1736. end
  1737. prt.Transparency = i
  1738. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  1739. end
  1740. Part.Parent = nil
  1741. end), prt, msh)
  1742. end
  1743. function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1744. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1745. prt.Anchored = true
  1746. prt.Material = "Neon"
  1747. prt.CFrame = cframe
  1748. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1749. game:GetService("Debris"):AddItem(prt, 5)
  1750. coroutine.resume(coroutine.create(function(Part, Mesh)
  1751. local rtype = rottype
  1752. for i = 0, 1, delay do
  1753. swait()
  1754. if rtype == 1 then
  1755. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1756. elseif rtype == 2 then
  1757. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1758. end
  1759. prt.Transparency = i
  1760. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1761. end
  1762. Part.Parent = nil
  1763. end), prt, msh)
  1764. end
  1765. function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  1766. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1767. prt.Anchored = false
  1768. prt.CFrame = cframe
  1769. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1770. local wld = weld(prt, prt, Parent, cframe)
  1771. game:GetService("Debris"):AddItem(prt, 5)
  1772. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  1773. for i = 0, 1, delay do
  1774. wait()
  1775. Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe
  1776. Part.Transparency = i
  1777. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1778. end
  1779. Part.Parent = nil
  1780. end), prt, msh, wld)
  1781. end
  1782. function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  1783. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1784. prt.Anchored = false
  1785. prt.CFrame = cframe
  1786. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1787. local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0))
  1788. game:GetService("Debris"):AddItem(prt, 5)
  1789. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  1790. for i = 0, 1, delay do
  1791. wait()
  1792. Weld.C0 = euler(i * 20, 0, 0)
  1793. Part.Transparency = i
  1794. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1795. end
  1796. Part.Parent = nil
  1797. end), prt, msh, wld)
  1798. end
  1799. function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1800. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1801. prt.Anchored = true
  1802. prt.CFrame = cframe
  1803. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1804. game:GetService("Debris"):AddItem(prt, 2)
  1805. coroutine.resume(coroutine.create(function(Part, Mesh)
  1806. for i = 0, 1, delay do
  1807. wait()
  1808. Part.CFrame = Part.CFrame
  1809. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1810. local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1811. prt2.Anchored = true
  1812. prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1813. local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  1814. game:GetService("Debris"):AddItem(prt2, 2)
  1815. coroutine.resume(coroutine.create(function(Part, Mesh)
  1816. for i = 0, 1, 0.1 do
  1817. wait()
  1818. Part.CFrame = Part.CFrame * cf(0, 0.5, 0)
  1819. end
  1820. Part.Parent = nil
  1821. end), prt2, msh2)
  1822. end
  1823. for i = 0, 1, delay * 2 do
  1824. wait()
  1825. Part.CFrame = Part.CFrame
  1826. Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i)
  1827. end
  1828. Part.Parent = nil
  1829. end), prt, msh)
  1830. end
  1831. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1832. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1833. prt.Anchored = true
  1834. prt.CFrame = cframe
  1835. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1836. game:GetService("Debris"):AddItem(prt, 2)
  1837. coroutine.resume(coroutine.create(function(Part, Mesh)
  1838. for i = 0, 1, delay do
  1839. wait()
  1840. Part.CFrame = Part.CFrame
  1841. Part.Transparency = i
  1842. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1843. end
  1844. Part.Parent = nil
  1845. end), prt, msh)
  1846. end
  1847. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  1848. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1849. prt.Anchored = true
  1850. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1851. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1852. game:GetService("Debris"):AddItem(prt, 2)
  1853. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  1854. CF = Part.CFrame
  1855. Numbb = 0
  1856. randnumb = math.random() / 10
  1857. rand1 = math.random() / 10
  1858. for i = 0, 1, rand1 do
  1859. wait()
  1860. CF = CF * cf(0, math.random() / 2, 0)
  1861. Part.CFrame = CF * euler(Numbb, 0, 0)
  1862. Part.Transparency = i
  1863. Numbb = Numbb + randnumb
  1864. end
  1865. Part.Parent = nil
  1866. end), prt, CF, Numbb, randnumb)
  1867. end
  1868. function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1869. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1870. prt.Anchored = true
  1871. prt.CFrame = cframe
  1872. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
  1873. game:GetService("Debris"):AddItem(prt, 5)
  1874. coroutine.resume(coroutine.create(function(Part, Mesh)
  1875. for i = 0, 1, delay do
  1876. wait()
  1877. Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
  1878. Part.Transparency = i
  1879. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1880. end
  1881. Part.Parent = nil
  1882. end), prt, msh)
  1883. end
  1884. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1885. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1886. prt.Anchored = true
  1887. prt.CFrame = cframe
  1888. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1889. game:GetService("Debris"):AddItem(prt, 2)
  1890. coroutine.resume(coroutine.create(function(Part, Mesh)
  1891. for i = 0, 1, delay do
  1892. wait()
  1893. Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
  1894. Part.Transparency = i
  1895. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1896. end
  1897. Part.Parent = nil
  1898. end), prt, msh)
  1899. end
  1900. function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
  1901. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1902. prt.Anchored = true
  1903. prt.CFrame = cframe * cf(x, y, z)
  1904. msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
  1905. game:GetService("Debris"):AddItem(prt, 5)
  1906. coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
  1907. local num = math.random()
  1908. local num2 = math.random(-3, 2) + math.random()
  1909. local numm = 0
  1910. for i = 0, 1, delay * 2 do
  1911. swait()
  1912. Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
  1913. Part.Transparency = i
  1914. numm = numm + 0.01
  1915. end
  1916. Part.Parent = nil
  1917. Mesh.Parent = nil
  1918. end), prt, msh, x, y, z)
  1919. end
  1920. function dmgstart(dmg, what)
  1921. hitcon = what.Touched:connect(function(hit)
  1922. local hum = hit.Parent:FindFirstChild("Humanoid")
  1923. if hum and not hum:IsDescendantOf(Character) then
  1924. hum:TakeDamage(dmg)
  1925. end
  1926. end)
  1927. end
  1928. function dmgstop()
  1929. hitcon:disconnect()
  1930. end
  1931. function Cloak()
  1932. Face.Parent = nil
  1933. cloaked = true
  1934. for _, v in pairs(Torso.Parent:children()) do
  1935. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  1936. coroutine.resume(coroutine.create(function()
  1937. for i = 0, 1, 0.2 do
  1938. wait()
  1939. v.Transparency = i
  1940. end
  1941. v.Transparency = 1
  1942. end))
  1943. end
  1944. if v.className == "Hat" then
  1945. hatp = v.Handle
  1946. coroutine.resume(coroutine.create(function(derp)
  1947. for i = 0, 1, 0.2 do
  1948. wait()
  1949. derp.Transparency = i
  1950. end
  1951. derp.Transparency = 1
  1952. end), hatp)
  1953. end
  1954. end
  1955. for _, v in pairs(m:children()) do
  1956. if v.className == "Part" then
  1957. coroutine.resume(coroutine.create(function()
  1958. for i = 0, 1, 0.2 do
  1959. wait()
  1960. v.Transparency = i
  1961. end
  1962. v.Transparency = 1
  1963. end))
  1964. end
  1965. end
  1966. end
  1967. function UnCloak()
  1968. so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
  1969. Face.Parent = Head
  1970. cloaked = false
  1971. for _, v in pairs(Torso.Parent:children()) do
  1972. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  1973. coroutine.resume(coroutine.create(function()
  1974. for i = 0, 1, 0.1 do
  1975. wait()
  1976. v.Transparency = v.Transparency - 0.1
  1977. end
  1978. v.Transparency = 0
  1979. end))
  1980. end
  1981. if v.className == "Hat" then
  1982. hatp = v.Handle
  1983. coroutine.resume(coroutine.create(function(derp)
  1984. for i = 0, 1, 0.1 do
  1985. wait()
  1986. derp.Transparency = derp.Transparency - 0.1
  1987. end
  1988. derp.Transparency = 0
  1989. end), hatp)
  1990. end
  1991. end
  1992. for _, v in pairs(m:children()) do
  1993. if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
  1994. coroutine.resume(coroutine.create(function()
  1995. for i = 0, 1, 0.1 do
  1996. wait()
  1997. v.Transparency = v.Transparency - 0.1
  1998. end
  1999. v.Transparency = 0
  2000. end))
  2001. v.Transparency = 0
  2002. end
  2003. end
  2004. end
  2005. local origcolor = BrickColor.new("Pastel light blue")
  2006. function Explode(rad, par, pitch, vol, mindam, maxdam)
  2007. local expart = Instance.new("Part", char)
  2008. local expart2 = Instance.new("Part", char)
  2009. local rin = Instance.new("Part", char)
  2010. local rin2 = Instance.new("Part", char)
  2011. local partMesh = Instance.new("SpecialMesh", expart)
  2012. partMesh.MeshType = "Sphere"
  2013. local partMesh2 = Instance.new("SpecialMesh", expart2)
  2014. partMesh2.MeshType = "Sphere"
  2015. local partMesh3 = Instance.new("SpecialMesh", rin)
  2016. partMesh3.MeshType = "Brick"
  2017. local partMesh4 = Instance.new("SpecialMesh", rin2)
  2018. partMesh4.MeshType = "Brick"
  2019. CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
  2020. partMesh.Scale = vt(rad, rad, rad)
  2021. expart.Size = vt(1, 1, 1)
  2022. expart.Transparency = 0
  2023. expart.Anchored = true
  2024. expart.Material = "Neon"
  2025. expart.BrickColor = bc("White")
  2026. expart.CFrame = par.CFrame
  2027. partMesh2.Scale = vt(rad, rad, rad)
  2028. expart2.Size = vt(1.15, 1.15, 1.15)
  2029. expart2.Transparency = 0.5
  2030. expart2.Anchored = true
  2031. expart2.Material = "Neon"
  2032. expart2.BrickColor = par.BrickColor
  2033. expart2.CFrame = par.CFrame
  2034. rin.Size = vt(1.15, 1.15, 1.15)
  2035. rin.Transparency = 1
  2036. rin.Anchored = true
  2037. rin.Material = "Neon"
  2038. rin.BrickColor = par.BrickColor
  2039. rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  2040. rin2.Size = vt(1.15, 1.15, 1.15)
  2041. rin2.Transparency = 1
  2042. rin2.Anchored = true
  2043. rin2.Material = "Neon"
  2044. rin2.BrickColor = par.BrickColor
  2045. rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  2046. partMesh3.Scale = vt(0, 1, 0)
  2047. partMesh4.Scale = vt(0, 1, 0)
  2048. local dec2 = Instance.new("Decal", rin)
  2049. dec2.Face = "Top"
  2050. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2051. dec2.Parent = rin
  2052. local dec2b = dec2:Clone()
  2053. dec2b.Face = "Bottom"
  2054. dec2b.Parent = rin
  2055. local dec2a = Instance.new("Decal", rin2)
  2056. dec2a.Face = "Top"
  2057. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2058. dec2a.Parent = rin2
  2059. local dec2ab = dec2a:Clone()
  2060. dec2ab.Face = "Bottom"
  2061. dec2ab.Parent = rin2
  2062. expart.CanCollide = false
  2063. expart2.CanCollide = false
  2064. rin.CanCollide = false
  2065. rin2.CanCollide = false
  2066. MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
  2067. local value = 1 * rad / 6.5
  2068. for i = 0, 199 do
  2069. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2070. expart.CFrame = expart.CFrame
  2071. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  2072. expart2.CFrame = expart.CFrame
  2073. value = value - 0.035 * rad / 30
  2074. if value < 7.5 then
  2075. partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
  2076. rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
  2077. partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
  2078. rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
  2079. end
  2080. if value < 0 then
  2081. dec2.Transparency = dec2.Transparency + 0.025
  2082. dec2a.Transparency = dec2a.Transparency + 0.025
  2083. dec2b.Transparency = dec2b.Transparency + 0.025
  2084. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2085. expart.Transparency = expart.Transparency + 0.025
  2086. expart2.Transparency = expart2.Transparency + 0.025
  2087. rin.Transparency = rin.Transparency + 0.025
  2088. rin2.Transparency = rin2.Transparency + 0.025
  2089. end
  2090. swait()
  2091. end
  2092. game:GetService("Debris"):AddItem(expart, 1)
  2093. game:GetService("Debris"):AddItem(expart2, 1)
  2094. game:GetService("Debris"):AddItem(rin, 1)
  2095. game:GetService("Debris"):AddItem(rin2, 1)
  2096. end
  2097. function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
  2098. local expart = Instance.new("Part", char)
  2099. local expart2 = Instance.new("Part", char)
  2100. local partMesh = Instance.new("SpecialMesh", expart)
  2101. partMesh.MeshType = "Sphere"
  2102. local partMesh2 = Instance.new("SpecialMesh", expart2)
  2103. partMesh2.MeshType = "Sphere"
  2104. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
  2105. partMesh.Scale = vt(rad, rad, rad)
  2106. expart.Size = vt(1, 1, 1)
  2107. expart.Transparency = 0
  2108. expart.Anchored = true
  2109. expart.Material = "Neon"
  2110. expart.BrickColor = bc("White")
  2111. expart.CFrame = par.CFrame
  2112. partMesh2.Scale = vt(rad, rad, rad)
  2113. expart2.Size = vt(1.15, 1.15, 1.15)
  2114. expart2.Transparency = 0.5
  2115. expart2.Anchored = true
  2116. expart2.Material = "Neon"
  2117. expart2.BrickColor = par.BrickColor
  2118. expart2.CFrame = par.CFrame
  2119. expart.CanCollide = false
  2120. expart2.CanCollide = false
  2121. MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
  2122. local value = 1 * rad / 6.5
  2123. for i = 0, 75 do
  2124. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2125. expart.CFrame = expart.CFrame
  2126. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  2127. expart2.CFrame = expart.CFrame
  2128. value = value - 0.035 * rad / 5
  2129. if value < 0 then
  2130. value = 0
  2131. expart.Transparency = expart.Transparency + 0.05
  2132. expart2.Transparency = expart2.Transparency + 0.05
  2133. end
  2134. swait()
  2135. end
  2136. game:GetService("Debris"):AddItem(expart, 1)
  2137. game:GetService("Debris"):AddItem(expart2, 1)
  2138. end
  2139. function AreaDanger(rad, par, mindam, maxdam)
  2140. local expart = Instance.new("Part", char)
  2141. local partMesh = Instance.new("SpecialMesh", expart)
  2142. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  2143. partMesh.MeshType = "Sphere"
  2144. partMesh.Scale = vt(rad, rad, rad)
  2145. expart.Size = vt(1, 1, 1)
  2146. expart.Transparency = 0.5
  2147. expart.Anchored = true
  2148. expart.Material = "Neon"
  2149. expart.CanCollide = false
  2150. expart.BrickColor = par.BrickColor
  2151. expart.CFrame = par.CFrame
  2152. local value = 1 * rad / 5
  2153. MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
  2154. for i = 0, 14 do
  2155. wait()
  2156. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2157. expart.CFrame = expart.CFrame
  2158. value = value - 0.035 * rad
  2159. if value < 0 then
  2160. value = 0
  2161. end
  2162. end
  2163. wait(0.25)
  2164. CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
  2165. wait(0.5)
  2166. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
  2167. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
  2168. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2169. MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
  2170. for i = 0, 14 do
  2171. wait()
  2172. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2173. expart.CFrame = expart.CFrame
  2174. value = value - 0.035 * rad / 2
  2175. end
  2176. expart.Transparency = 1
  2177. game:GetService("Debris"):AddItem(expart, 5)
  2178. end
  2179. function Swarmsplosions(negrad, rad, par, mindam, maxdam)
  2180. CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
  2181. CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
  2182. CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
  2183. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  2184. MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
  2185. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
  2186. for i = 0, 24 do
  2187. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 25, 0.005, math.random(1, 2))
  2188. end
  2189. for i = 0, 24 do
  2190. local expart = Instance.new("Part", char)
  2191. expart.Transparency = 1
  2192. expart.Anchored = true
  2193. expart.CanCollide = false
  2194. expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
  2195. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
  2196. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  2197. MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
  2198. MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
  2199. for i = 0, 9 do
  2200. MagicShockTrailAlt2(origcolor, expart.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 5, 0.05, math.random(1, 2))
  2201. end
  2202. game:GetService("Debris"):AddItem(expart, 2)
  2203. wait(0.1)
  2204. end
  2205. end
  2206. function EXterPlosion(par)
  2207. CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
  2208. CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
  2209. CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
  2210. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  2211. MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
  2212. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
  2213. MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
  2214. for i = 0, 24 do
  2215. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.5, -0.5, 500, 0.1, math.random(1, 2))
  2216. end
  2217. for i = 0, 24 do
  2218. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.25, -0.25, 50, 0.005, math.random(1, 2))
  2219. end
  2220. end
  2221. function ring(type, pos, scale, value)
  2222. local type = type
  2223. local rng = Instance.new("Part", char)
  2224. rng.Anchored = true
  2225. rng.BrickColor = origcolor
  2226. rng.CanCollide = false
  2227. rng.FormFactor = 3
  2228. rng.Name = "Ring"
  2229. rng.Size = Vector3.new(1, 1, 1)
  2230. rng.Transparency = 0
  2231. rng.TopSurface = 0
  2232. rng.BottomSurface = 0
  2233. rng.CFrame = pos
  2234. local rngm = Instance.new("SpecialMesh", rng)
  2235. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2236. rngm.Scale = scale
  2237. local scaler2 = 1
  2238. if type == "Add" then
  2239. scaler2 = 1 * value
  2240. elseif type == "Divide" then
  2241. scaler2 = 1 / value
  2242. end
  2243. coroutine.resume(coroutine.create(function()
  2244. for i = 0, 10, 0.1 do
  2245. swait()
  2246. if type == "Add" then
  2247. scaler2 = scaler2 - 0.01 * value
  2248. elseif type == "Divide" then
  2249. scaler2 = scaler2 - 0.01 / value
  2250. end
  2251. rng.Transparency = rng.Transparency + 0.01
  2252. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2253. end
  2254. rng:Destroy()
  2255. end))
  2256. end
  2257. function wave(type, pos, scale, value)
  2258. local type = type
  2259. local rng = Instance.new("Part", char)
  2260. rng.Anchored = true
  2261. rng.BrickColor = origcolor
  2262. rng.CanCollide = false
  2263. rng.FormFactor = 3
  2264. rng.Name = "Ring"
  2265. rng.Size = Vector3.new(1, 1, 1)
  2266. rng.Transparency = 0
  2267. rng.TopSurface = 0
  2268. rng.BottomSurface = 0
  2269. rng.CFrame = pos
  2270. local rngm = Instance.new("SpecialMesh", rng)
  2271. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2272. rngm.Scale = scale
  2273. local scaler2 = 1
  2274. if type == "Add" then
  2275. scaler2 = 1 * value
  2276. elseif type == "Divide" then
  2277. scaler2 = 1 / value
  2278. end
  2279. coroutine.resume(coroutine.create(function()
  2280. for i = 0, 10, 0.1 do
  2281. swait()
  2282. if type == "Add" then
  2283. scaler2 = scaler2 - 0.01 * value
  2284. elseif type == "Divide" then
  2285. scaler2 = scaler2 - 0.01 / value
  2286. end
  2287. rng.Transparency = rng.Transparency + 0.01
  2288. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2289. end
  2290. rng:Destroy()
  2291. end))
  2292. end
  2293. function wind(type, pos, scale, value, speed)
  2294. local type = type
  2295. local rng = Instance.new("Part", char)
  2296. rng.Anchored = true
  2297. rng.BrickColor = origcolor
  2298. rng.CanCollide = false
  2299. rng.FormFactor = 3
  2300. rng.Name = "Ring"
  2301. rng.Size = Vector3.new(1, 1, 1)
  2302. rng.Transparency = 0
  2303. rng.TopSurface = 0
  2304. rng.BottomSurface = 0
  2305. rng.CFrame = pos
  2306. local rngm = Instance.new("SpecialMesh", rng)
  2307. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2308. rngm.Scale = scale
  2309. local scaler2 = 1
  2310. if type == "Add" then
  2311. scaler2 = 1 * value
  2312. elseif type == "Divide" then
  2313. scaler2 = 1 / value
  2314. end
  2315. coroutine.resume(coroutine.create(function()
  2316. for i = 0, 10, 0.1 do
  2317. swait()
  2318. if type == "Add" then
  2319. scaler2 = scaler2 - 0.01 * value
  2320. elseif type == "Divide" then
  2321. scaler2 = scaler2 - 0.01 / value
  2322. end
  2323. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  2324. rng.Transparency = rng.Transparency + 0.01
  2325. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2326. end
  2327. rng:Destroy()
  2328. end))
  2329. end
  2330. function groundwind(type, pos, scale, value, speed)
  2331. local type = type
  2332. local rng = Instance.new("Part", char)
  2333. rng.Anchored = true
  2334. rng.BrickColor = origcolor
  2335. rng.CanCollide = false
  2336. rng.FormFactor = 3
  2337. rng.Name = "Ring"
  2338. rng.Size = Vector3.new(1, 1, 1)
  2339. rng.Transparency = 0
  2340. rng.TopSurface = 0
  2341. rng.BottomSurface = 0
  2342. rng.CFrame = pos
  2343. local rngm = Instance.new("SpecialMesh", rng)
  2344. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2345. rngm.Scale = scale
  2346. local scaler2 = 1
  2347. if type == "Add" then
  2348. scaler2 = 1 * value
  2349. elseif type == "Divide" then
  2350. scaler2 = 1 / value
  2351. end
  2352. coroutine.resume(coroutine.create(function()
  2353. for i = 0, 10, 0.1 do
  2354. swait()
  2355. if type == "Add" then
  2356. scaler2 = scaler2 - 0.01 * value
  2357. elseif type == "Divide" then
  2358. scaler2 = scaler2 - 0.01 / value
  2359. end
  2360. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  2361. rng.Transparency = rng.Transparency + 0.01
  2362. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
  2363. end
  2364. rng:Destroy()
  2365. end))
  2366. end
  2367. function CameraManager()
  2368. if TwoD and not CamInterrupt then
  2369. if Humanoid.Health > 0 then
  2370. Camera.CameraSubject = Humanoid
  2371. Camera.CameraType = "Scriptable"
  2372. Humanoid.AutoRotate = false
  2373. if Booleans.GyroUse then
  2374. Directer.MaxTorque = Vec3(0, huge, 0)
  2375. else
  2376. Directer.MaxTorque = Vec3(0, 0, 0)
  2377. end
  2378. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2379. if Booleans.CamFollow then
  2380. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2381. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2382. else
  2383. CPart.Position = RootPart.Position
  2384. end
  2385. else
  2386. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2387. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2388. end
  2389. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2390. else
  2391. Camera.CameraSubject = Humanoid
  2392. Camera.CameraType = "Custom"
  2393. Controller.Disabled = false
  2394. end
  2395. end
  2396. end
  2397. function sphere(bonuspeed, type, pos, scale, value, color)
  2398. local type = type
  2399. local rng = Instance.new("Part", char)
  2400. rng.Anchored = true
  2401. rng.BrickColor = color
  2402. rng.CanCollide = false
  2403. rng.FormFactor = 3
  2404. rng.Name = "Ring"
  2405. rng.Material = "Neon"
  2406. rng.Size = Vector3.new(1, 1, 1)
  2407. rng.Transparency = 0
  2408. rng.TopSurface = 0
  2409. rng.BottomSurface = 0
  2410. rng.CFrame = pos
  2411. local rngm = Instance.new("SpecialMesh", rng)
  2412. rngm.MeshType = "Sphere"
  2413. rngm.Scale = scale
  2414. if rainbowmode == true then
  2415. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2416. end
  2417. local scaler2 = 1
  2418. if type == "Add" then
  2419. scaler2 = 1 * value
  2420. elseif type == "Divide" then
  2421. scaler2 = 1 / value
  2422. end
  2423. coroutine.resume(coroutine.create(function()
  2424. for i = 0, 10 / bonuspeed, 0.1 do
  2425. swait()
  2426. if rainbowmode == true then
  2427. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2428. end
  2429. if type == "Add" then
  2430. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2431. elseif type == "Divide" then
  2432. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2433. end
  2434. if chaosmode == true then
  2435. rng.BrickColor = BrickColor.random()
  2436. end
  2437. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2438. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  2439. end
  2440. rng:Destroy()
  2441. end))
  2442. end
  2443. function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  2444. local type = type
  2445. local rng = Instance.new("Part", char)
  2446. rng.Anchored = true
  2447. rng.BrickColor = color
  2448. rng.CanCollide = false
  2449. rng.FormFactor = 3
  2450. rng.Name = "Ring"
  2451. rng.Material = "Neon"
  2452. rng.Size = Vector3.new(1, 1, 1)
  2453. rng.Transparency = 0
  2454. rng.TopSurface = 0
  2455. rng.BottomSurface = 0
  2456. rng.CFrame = pos
  2457. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2458. local rngm = Instance.new("SpecialMesh", rng)
  2459. rngm.MeshType = "Sphere"
  2460. rngm.Scale = vt(x1, y1, z1)
  2461. if rainbowmode == true then
  2462. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2463. end
  2464. local scaler2 = 1
  2465. local speeder = FastSpeed
  2466. if type == "Add" then
  2467. scaler2 = 1 * value
  2468. elseif type == "Divide" then
  2469. scaler2 = 1 / value
  2470. end
  2471. coroutine.resume(coroutine.create(function()
  2472. for i = 0, 10 / bonuspeed, 0.1 do
  2473. swait()
  2474. if rainbowmode == true then
  2475. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2476. end
  2477. if type == "Add" then
  2478. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2479. elseif type == "Divide" then
  2480. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2481. end
  2482. if chaosmode == true then
  2483. rng.BrickColor = BrickColor.random()
  2484. end
  2485. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2486. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2487. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2488. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2489. end
  2490. rng:Destroy()
  2491. end))
  2492. end
  2493. function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  2494. local type = type
  2495. local rng = Instance.new("Part", char)
  2496. rng.Anchored = true
  2497. rng.BrickColor = color
  2498. rng.CanCollide = false
  2499. rng.FormFactor = 3
  2500. rng.Name = "Ring"
  2501. rng.Material = "Neon"
  2502. rng.Size = Vector3.new(1, 1, 1)
  2503. rng.Transparency = 1
  2504. rng.TopSurface = 0
  2505. rng.BottomSurface = 0
  2506. rng.CFrame = pos
  2507. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2508. local rngm = Instance.new("SpecialMesh", rng)
  2509. rngm.MeshType = "Sphere"
  2510. rngm.Scale = vt(x1, y1, z1)
  2511. if rainbowmode == true then
  2512. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2513. end
  2514. local scaler2 = 1
  2515. local speeder = FastSpeed
  2516. if type == "Add" then
  2517. scaler2 = 1 * value
  2518. elseif type == "Divide" then
  2519. scaler2 = 1 / value
  2520. end
  2521. coroutine.resume(coroutine.create(function()
  2522. for i = 0, 10 / bonuspeed, 0.1 do
  2523. swait()
  2524. if rainbowmode == true then
  2525. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2526. end
  2527. if type == "Add" then
  2528. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2529. elseif type == "Divide" then
  2530. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2531. end
  2532. if chaosmode == true then
  2533. rng.BrickColor = BrickColor.random()
  2534. end
  2535. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2536. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2537. rng.Transparency = rng.Transparency - 0.01 * bonuspeed
  2538. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2539. end
  2540. rng:Destroy()
  2541. end))
  2542. end
  2543. function dmg(dude)
  2544. if dude.Name ~= Character then
  2545. local bgf = Instance.new("BodyGyro", dude.Head)
  2546. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  2547. local val = Instance.new("BoolValue", dude)
  2548. val.Name = "IsHit"
  2549. local ds = coroutine.wrap(function()
  2550. dude:WaitForChild("Head"):BreakJoints()
  2551. wait(0.5)
  2552. targetted = nil
  2553. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  2554. coroutine.resume(coroutine.create(function()
  2555. for i, v in pairs(dude:GetChildren()) do
  2556. if v:IsA("Accessory") then
  2557. v:Destroy()
  2558. end
  2559. if v:IsA("Humanoid") then
  2560. v:Destroy()
  2561. end
  2562. if v:IsA("CharacterMesh") then
  2563. v:Destroy()
  2564. end
  2565. if v:IsA("Model") then
  2566. v:Destroy()
  2567. end
  2568. if v:IsA("Part") or v:IsA("MeshPart") then
  2569. for x, o in pairs(v:GetChildren()) do
  2570. if o:IsA("Decal") then
  2571. o:Destroy()
  2572. end
  2573. end
  2574. coroutine.resume(coroutine.create(function()
  2575. v.Material = "Neon"
  2576. v.CanCollide = false
  2577. local bld = Instance.new("ParticleEmitter", v)
  2578. bld.LightEmission = 1
  2579. bld.Texture = "rbxassetid://284205403"
  2580. bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
  2581. bld.Rate = 50
  2582. bld.Lifetime = NumberRange.new(1)
  2583. bld.Size = NumberSequence.new({
  2584. NumberSequenceKeypoint.new(0, 0.75, 0),
  2585. NumberSequenceKeypoint.new(1, 0, 0)
  2586. })
  2587. bld.Transparency = NumberSequence.new({
  2588. NumberSequenceKeypoint.new(0, 0, 0),
  2589. NumberSequenceKeypoint.new(1, 1, 0)
  2590. })
  2591. bld.Speed = NumberRange.new(0, 0)
  2592. bld.VelocitySpread = 50000
  2593. bld.Rotation = NumberRange.new(-500, 500)
  2594. bld.RotSpeed = NumberRange.new(-500, 500)
  2595. local sbs = Instance.new("BodyPosition", v)
  2596. sbs.P = 3000
  2597. sbs.D = 1000
  2598. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2599. sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  2600. v.Color = Color3.new(1, 1, 1)
  2601. coroutine.resume(coroutine.create(function()
  2602. for i = 0, 49 do
  2603. swait(1)
  2604. v.Transparency = v.Transparency + 0.02
  2605. end
  2606. CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
  2607. bld.Speed = NumberRange.new(1, 5)
  2608. bld.Acceleration = vt(0, 10, 0)
  2609. wait(0.5)
  2610. bld.Enabled = false
  2611. wait(3)
  2612. v:Destroy()
  2613. dude:Destroy()
  2614. end))
  2615. end))
  2616. end
  2617. end
  2618. end))
  2619. end)
  2620. ds()
  2621. end
  2622. end
  2623. function FindNearestHead(Position, Distance, SinglePlayer)
  2624. if SinglePlayer then
  2625. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  2626. end
  2627. local List = {}
  2628. for i, v in pairs(workspace:GetChildren()) do
  2629. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  2630. table.insert(List, v)
  2631. end
  2632. end
  2633. return List
  2634. end
  2635. function FaceMouse()
  2636. Cam = workspace.CurrentCamera
  2637. return {
  2638. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2639. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2640. }
  2641. end
  2642. function FaceMouse2()
  2643. Cam = workspace.CurrentCamera
  2644. return {
  2645. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2646. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2647. }
  2648. end
  2649. local ModeOfGlitch = 1
  2650. local storehumanoidWS = 16
  2651. function ExtinctiveHeartbreak()
  2652. local targetted
  2653. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2654. targetted = mouse.Target.Parent
  2655. end
  2656. if targetted ~= nil then
  2657. attack = true
  2658. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  2659. for i = 0, 9 do
  2660. 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)
  2661. end
  2662. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really red"))
  2663. local originalpos = root.CFrame
  2664. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
  2665. for i = 0, 9 do
  2666. 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)
  2667. end
  2668. hum.WalkSpeed = 0
  2669. targetted.Head.Anchored = true
  2670. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really red"))
  2671. for i = 0, 2, 0.1 do
  2672. swait()
  2673. 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)), 0.4)
  2674. 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)), 0.4)
  2675. 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)), 0.4)
  2676. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  2677. 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)), 0.4)
  2678. 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)), 0.4)
  2679. end
  2680. coroutine.resume(coroutine.create(function()
  2681. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
  2682. bld.LightEmission = 0.1
  2683. bld.Texture = "rbxassetid://284205403"
  2684. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  2685. bld.Rate = 500
  2686. bld.Lifetime = NumberRange.new(1)
  2687. bld.Size = NumberSequence.new({
  2688. NumberSequenceKeypoint.new(0, 2, 0),
  2689. NumberSequenceKeypoint.new(1, 0, 0)
  2690. })
  2691. bld.Acceleration = vt(0, -25, 0)
  2692. bld.Transparency = NumberSequence.new({
  2693. NumberSequenceKeypoint.new(0, 0, 0),
  2694. NumberSequenceKeypoint.new(1, 0, 0)
  2695. })
  2696. bld.Speed = NumberRange.new(10, 50)
  2697. bld.EmissionDirection = "Front"
  2698. bld.VelocitySpread = 25
  2699. bld.Rotation = NumberRange.new(-500, 500)
  2700. bld.RotSpeed = NumberRange.new(-500, 500)
  2701. end))
  2702. coroutine.resume(coroutine.create(function()
  2703. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
  2704. bld.LightEmission = 0.1
  2705. bld.Texture = "rbxassetid://284205403"
  2706. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  2707. bld.Rate = 500
  2708. bld.Lifetime = NumberRange.new(1)
  2709. bld.Size = NumberSequence.new({
  2710. NumberSequenceKeypoint.new(0, 2, 0),
  2711. NumberSequenceKeypoint.new(1, 0, 0)
  2712. })
  2713. bld.Acceleration = vt(0, -25, 0)
  2714. bld.Transparency = NumberSequence.new({
  2715. NumberSequenceKeypoint.new(0, 0, 0),
  2716. NumberSequenceKeypoint.new(1, 0, 0)
  2717. })
  2718. bld.Speed = NumberRange.new(10, 50)
  2719. bld.EmissionDirection = "Front"
  2720. bld.VelocitySpread = 25
  2721. bld.Rotation = NumberRange.new(-500, 500)
  2722. bld.RotSpeed = NumberRange.new(-500, 500)
  2723. end))
  2724. CameraEnshaking(5, 5)
  2725. game:GetService("Debris"):AddItem(bld, 3)
  2726. dmg(targetted)
  2727. CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
  2728. for i = 0, 1, 0.1 do
  2729. swait()
  2730. 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)), 0.8)
  2731. 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)), 0.8)
  2732. 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)), 0.8)
  2733. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
  2734. 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)), 0.8)
  2735. 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)), 0.8)
  2736. end
  2737. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  2738. for i = 0, 9 do
  2739. 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)
  2740. end
  2741. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really red"))
  2742. root.CFrame = originalpos
  2743. for i = 0, 9 do
  2744. 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)
  2745. end
  2746. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really red"))
  2747. bld.Enabled = false
  2748. attack = false
  2749. hum.WalkSpeed = storehumanoidWS
  2750. end
  2751. end
  2752. function PureBomb()
  2753. attack = true
  2754. local orb = Instance.new("Part", char)
  2755. orb.Anchored = true
  2756. orb.BrickColor = BrickColor.new("Toothpaste")
  2757. orb.CanCollide = false
  2758. orb.FormFactor = 3
  2759. orb.Name = "Ring"
  2760. orb.Material = "Neon"
  2761. orb.Size = Vector3.new(1, 1, 1)
  2762. orb.Transparency = 0
  2763. orb.TopSurface = 0
  2764. orb.BottomSurface = 0
  2765. local orbm = Instance.new("SpecialMesh", orb)
  2766. orbm.MeshType = "Sphere"
  2767. orbm.Name = "SizeMesh"
  2768. orbm.Scale = vt(0, 0, 0)
  2769. local scaled = 0.1
  2770. local posid = 0
  2771. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  2772. for i = 0, 5, 0.1 do
  2773. swait()
  2774. scaled = scaled - 0.001
  2775. posid = posid - scaled
  2776. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  2777. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  2778. 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)
  2779. 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))), 0.1)
  2780. 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)), 0.1)
  2781. 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)), 0.1)
  2782. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2783. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  2784. 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)), 0.1)
  2785. end
  2786. for i = 0, 2, 0.1 do
  2787. swait()
  2788. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  2789. 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))), 0.4)
  2790. 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)), 0.4)
  2791. 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)), 0.4)
  2792. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  2793. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  2794. 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)), 0.4)
  2795. end
  2796. coroutine.resume(coroutine.create(function()
  2797. orb.Anchored = false
  2798. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  2799. local a = Instance.new("Part", workspace)
  2800. a.Name = "Direction"
  2801. a.Anchored = true
  2802. a.BrickColor = bc("Bright red")
  2803. a.Material = "Neon"
  2804. a.Transparency = 1
  2805. a.CanCollide = false
  2806. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  2807. local ignore = orb
  2808. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2809. a.BottomSurface = 10
  2810. a.TopSurface = 10
  2811. local distance = (orb.CFrame.p - position).magnitude
  2812. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2813. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2814. orb.CFrame = a.CFrame
  2815. a:Destroy()
  2816. local bv = Instance.new("BodyVelocity")
  2817. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  2818. bv.velocity = orb.CFrame.lookVector * 125
  2819. bv.Parent = orb
  2820. local hitted = false
  2821. game:GetService("Debris"):AddItem(orb, 15)
  2822. wait()
  2823. local hit = orb.Touched:connect(function(hit)
  2824. if hitted == false then
  2825. hitted = true
  2826. CameraEnshaking(10, 2.5)
  2827. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  2828. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  2829. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  2830. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  2831. for i = 0, 9 do
  2832. 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)
  2833. 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)
  2834. end
  2835. orb.Anchored = true
  2836. orb.Transparency = 1
  2837. wait(8)
  2838. orb:Destroy()
  2839. end
  2840. end)
  2841. end))
  2842. for i = 0, 1, 0.1 do
  2843. swait()
  2844. 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))), 0.4)
  2845. 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)), 0.4)
  2846. 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)), 0.4)
  2847. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  2848. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  2849. 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)), 0.4)
  2850. end
  2851. attack = false
  2852. end
  2853. function ChaosGroundStrike()
  2854. attack = true
  2855. for i = 0, 2, 0.1 do
  2856. swait()
  2857. 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)), 0.2)
  2858. 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)), 0.2)
  2859. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  2860. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  2861. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  2862. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  2863. end
  2864. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  2865. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  2866. CameraEnshaking(4, 12)
  2867. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  2868. if v:FindFirstChild("Head") then
  2869. dmg(v)
  2870. end
  2871. end
  2872. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  2873. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  2874. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  2875. for i = 0, 2, 0.1 do
  2876. swait()
  2877. 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)
  2878. 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)
  2879. 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)), 0.4)
  2880. 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)), 0.4)
  2881. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  2882. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  2883. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  2884. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  2885. end
  2886. attack = false
  2887. end
  2888. function ChaosBegone()
  2889. attack = true
  2890. chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color)
  2891. for i = 0, 10, 0.1 do
  2892. swait()
  2893. 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)), 0.2)
  2894. 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)), 0.2)
  2895. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  2896. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  2897. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  2898. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  2899. end
  2900. chatfunc("DIE!!", BrickColor.random().Color)
  2901. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  2902. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  2903. CameraEnshaking(5, 25)
  2904. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  2905. if v:FindFirstChild("Head") then
  2906. dmg(v)
  2907. end
  2908. end
  2909. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  2910. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  2911. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  2912. for i = 0, 3, 0.1 do
  2913. swait()
  2914. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  2915. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  2916. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  2917. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  2918. 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)), 0.4)
  2919. 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)), 0.4)
  2920. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  2921. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  2922. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  2923. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  2924. end
  2925. attack = false
  2926. end
  2927. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  2928. local orb = Instance.new("Part", char)
  2929. orb.Anchored = true
  2930. orb.BrickColor = color
  2931. orb.CanCollide = false
  2932. orb.FormFactor = 3
  2933. orb.Name = "Ring"
  2934. orb.Material = "Neon"
  2935. orb.Size = Vector3.new(1, 1, 1)
  2936. orb.Transparency = 0
  2937. orb.TopSurface = 0
  2938. orb.BottomSurface = 0
  2939. local orbm = Instance.new("SpecialMesh", orb)
  2940. orbm.MeshType = "Sphere"
  2941. orb.CFrame = positted
  2942. orbm.Name = "SizeMesh"
  2943. orbm.Scale = vt(1, 1, 1)
  2944. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  2945. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  2946. coroutine.resume(coroutine.create(function()
  2947. wait(timer)
  2948. CameraEnshaking(3, ShakePower)
  2949. orb.Transparency = 1
  2950. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  2951. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  2952. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  2953. wait(3)
  2954. orb:Destroy()
  2955. end))
  2956. end
  2957. function orb_spawn(positted, timer)
  2958. local randomcol = math.random(1, 2)
  2959. local orb = Instance.new("Part", char)
  2960. orb.Anchored = true
  2961. if randomcol == 1 then
  2962. orb.BrickColor = BrickColor.new("White")
  2963. elseif randomcol == 2 then
  2964. orb.BrickColor = BrickColor.new("Really black")
  2965. end
  2966. orb.CanCollide = false
  2967. orb.FormFactor = 3
  2968. orb.Name = "Ring"
  2969. orb.Material = "Neon"
  2970. orb.Size = Vector3.new(1, 1, 1)
  2971. orb.Transparency = 0
  2972. orb.TopSurface = 0
  2973. orb.BottomSurface = 0
  2974. local orbm = Instance.new("SpecialMesh", orb)
  2975. orbm.MeshType = "Sphere"
  2976. orb.CFrame = positted
  2977. orbm.Name = "SizeMesh"
  2978. orbm.Scale = vt(1, 1, 1)
  2979. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  2980. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  2981. for i = 0, 2 do
  2982. 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)
  2983. end
  2984. coroutine.resume(coroutine.create(function()
  2985. wait(timer)
  2986. CameraEnshaking(3, 2)
  2987. orb.Transparency = 1
  2988. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  2989. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  2990. for i = 0, 4 do
  2991. 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)
  2992. end
  2993. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  2994. wait(3)
  2995. orb:Destroy()
  2996. end))
  2997. end
  2998. function scattercorrupt()
  2999. attack = true
  3000. local rot = 0
  3001. local randomrotations = math.random(1, 2)
  3002. local lookv = 2.5
  3003. local power = 5
  3004. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  3005. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  3006. for i = 0, 9 do
  3007. 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)
  3008. end
  3009. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  3010. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  3011. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  3012. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  3013. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  3014. local hite = Instance.new("Part", char)
  3015. hite.Anchored = true
  3016. hite.CanCollide = false
  3017. hite.FormFactor = 3
  3018. hite.Name = "Ring"
  3019. hite.Material = "Neon"
  3020. hite.Size = Vector3.new(1, 1, 1)
  3021. hite.Transparency = 1
  3022. hite.TopSurface = 0
  3023. hite.BottomSurface = 0
  3024. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  3025. local rem = Instance.new("Part", char)
  3026. rem.Anchored = true
  3027. rem.CanCollide = false
  3028. rem.FormFactor = 3
  3029. rem.Name = "Ring"
  3030. rem.Material = "Neon"
  3031. rem.Size = Vector3.new(1, 1, 1)
  3032. rem.Transparency = 1
  3033. rem.TopSurface = 0
  3034. rem.BottomSurface = 0
  3035. rem.CFrame = hite.CFrame
  3036. local rem2 = rem:Clone()
  3037. rem2.Parent = char
  3038. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3039. local rem3 = rem:Clone()
  3040. rem3.Parent = char
  3041. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3042. local rem4 = rem:Clone()
  3043. rem4.Parent = char
  3044. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3045. hite:Destroy()
  3046. coroutine.resume(coroutine.create(function()
  3047. for i = 0, 24 do
  3048. swait(1)
  3049. if randomrotations == 1 then
  3050. rot = rot + 1
  3051. elseif randomrotations == 2 then
  3052. rot = rot - 1
  3053. end
  3054. power = power + 0.5
  3055. lookv = lookv + 7.5
  3056. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  3057. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3058. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3059. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3060. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3061. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3062. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3063. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3064. end
  3065. end))
  3066. attack = false
  3067. end
  3068. function yinyangi()
  3069. attack = true
  3070. for i = 0, 2, 0.1 do
  3071. swait()
  3072. 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)), 0.2)
  3073. 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)), 0.2)
  3074. 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)), 0.2)
  3075. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3076. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  3077. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  3078. end
  3079. local bv = Instance.new("BodyVelocity")
  3080. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  3081. bv.velocity = root.CFrame.lookVector * 175
  3082. bv.Parent = root
  3083. for Rotations = 0, 9 do
  3084. for i = 0, 1, 0.5 do
  3085. swait()
  3086. bv.velocity = root.CFrame.lookVector * 175
  3087. 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)), 0.5)
  3088. 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)), 0.5)
  3089. 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)), 0.5)
  3090. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3091. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3092. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3093. end
  3094. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3095. for i = 0, 1, 0.5 do
  3096. swait()
  3097. bv.velocity = root.CFrame.lookVector * 175
  3098. 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)), 0.5)
  3099. 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)), 0.5)
  3100. 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)), 0.5)
  3101. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3102. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3103. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3104. end
  3105. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3106. for i = 0, 1, 0.5 do
  3107. swait()
  3108. bv.velocity = root.CFrame.lookVector * 175
  3109. 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)), 0.5)
  3110. 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)), 0.5)
  3111. 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)), 0.5)
  3112. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3113. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3114. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3115. end
  3116. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3117. for i = 0, 1, 0.5 do
  3118. swait()
  3119. bv.velocity = root.CFrame.lookVector * 175
  3120. 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)), 0.5)
  3121. 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)), 0.5)
  3122. 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)), 0.5)
  3123. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3124. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3125. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3126. end
  3127. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3128. end
  3129. bv:Destroy()
  3130. attack = false
  3131. end
  3132. function Wip()
  3133. attack = true
  3134. local rngb = Instance.new("Part", char)
  3135. rngb.Anchored = true
  3136. rngb.BrickColor = origcolor
  3137. rngb.CanCollide = false
  3138. rngb.FormFactor = 3
  3139. rngb.Name = "Ring"
  3140. rngb.Material = "Neon"
  3141. rngb.Size = Vector3.new(1, 0.05, 1)
  3142. rngb.Transparency = 1
  3143. rngb.TopSurface = 0
  3144. rngb.BottomSurface = 0
  3145. local rngmb = Instance.new("SpecialMesh", rngb)
  3146. rngmb.MeshType = "Brick"
  3147. rngmb.Name = "SizeMesh"
  3148. rngmb.Scale = vt(0, 1, 0)
  3149. local orb = rngb:Clone()
  3150. orb.Parent = char
  3151. orb.Transparency = 0
  3152. orb.BrickColor = BrickColor.new("White")
  3153. orb.Size = vt(1, 1, 1)
  3154. local orbmish = orb.SizeMesh
  3155. orbmish.Scale = vt(0, 0, 0)
  3156. orbmish.MeshType = "Sphere"
  3157. local orbe = rngb:Clone()
  3158. orbe.Parent = char
  3159. orbe.Transparency = 0.5
  3160. orbe.BrickColor = BrickColor.new("New Yeller")
  3161. orbe.Size = vt(1, 1, 1)
  3162. local orbmish2 = orbe.SizeMesh
  3163. orbmish2.Scale = vt(0, 0, 0)
  3164. orbmish2.MeshType = "Sphere"
  3165. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3166. rngb:Destroy()
  3167. for i = 0, 5, 0.1 do
  3168. swait()
  3169. if rainbowmode == true then
  3170. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3171. end
  3172. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3173. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3174. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3175. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3176. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  3177. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3178. 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)), 0.3)
  3179. 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)), 0.3)
  3180. RootPart.CFrame = FaceMouse()[1]
  3181. end
  3182. orbe.Transparency = 1
  3183. orb.Transparency = 1
  3184. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3185. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  3186. local a = Instance.new("Part", Character)
  3187. a.Name = "Direction"
  3188. a.Anchored = true
  3189. a.BrickColor = bc("White")
  3190. a.Material = "Neon"
  3191. a.Transparency = 0
  3192. a.Shape = "Cylinder"
  3193. a.CanCollide = false
  3194. local a2 = Instance.new("Part", Character)
  3195. a2.Name = "Direction"
  3196. a2.Anchored = true
  3197. a2.BrickColor = bc("New Yeller")
  3198. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  3199. a2.Material = "Neon"
  3200. a2.Transparency = 0.5
  3201. a2.Shape = "Cylinder"
  3202. a2.CanCollide = false
  3203. local ba = Instance.new("Part", Character)
  3204. ba.Name = "HitDirect"
  3205. ba.Anchored = true
  3206. ba.BrickColor = bc("Really black")
  3207. ba.Material = "Neon"
  3208. ba.Transparency = 1
  3209. ba.CanCollide = false
  3210. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3211. local ignore = Character
  3212. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3213. a.BottomSurface = 10
  3214. a.TopSurface = 10
  3215. a2.BottomSurface = 10
  3216. a2.TopSurface = 10
  3217. local distance = (orb.CFrame.p - position).magnitude
  3218. a.Size = Vector3.new(distance, 1, 1)
  3219. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3220. a2.Size = Vector3.new(distance, 1, 1)
  3221. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3222. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3223. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3224. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3225. game:GetService("Debris"):AddItem(a, 20)
  3226. game:GetService("Debris"):AddItem(a2, 20)
  3227. game:GetService("Debris"):AddItem(ba, 20)
  3228. local msh = Instance.new("SpecialMesh", a)
  3229. msh.MeshType = "Cylinder"
  3230. msh.Scale = vt(1, 25, 25)
  3231. local msh2 = Instance.new("SpecialMesh", a2)
  3232. msh2.MeshType = "Cylinder"
  3233. msh2.Scale = vt(1, 30, 30)
  3234. for i = 0, 10, 0.1 do
  3235. swait()
  3236. CameraEnshaking(1, 5)
  3237. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  3238. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3239. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3240. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3241. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3242. distance = (orb.CFrame.p - position).magnitude
  3243. if typrot == 1 then
  3244. rotation = rotation + 2.5
  3245. elseif typrot == 2 then
  3246. rotation = rotation - 2.5
  3247. end
  3248. RootPart.CFrame = FaceMouse()[1]
  3249. a.Size = Vector3.new(distance, 1, 1)
  3250. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3251. a2.Size = Vector3.new(distance, 1, 1)
  3252. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3253. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3254. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3255. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3256. msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
  3257. msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
  3258. 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)
  3259. 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)
  3260. MagniDamage(ba, 30, 500, 60000, 0, "Normal")
  3261. end
  3262. a:Destroy()
  3263. a2:Destroy()
  3264. ba:Destroy()
  3265. orb:Destroy()
  3266. orbe:Destroy()
  3267. attack = false
  3268. end
  3269. function UniversalSpark()
  3270. attack = true
  3271. local rngb = Instance.new("Part", char)
  3272. rngb.Anchored = true
  3273. rngb.BrickColor = origcolor
  3274. rngb.CanCollide = false
  3275. rngb.FormFactor = 3
  3276. rngb.Name = "Ring"
  3277. rngb.Material = "Neon"
  3278. rngb.Size = Vector3.new(1, 0.05, 1)
  3279. rngb.Transparency = 1
  3280. rngb.TopSurface = 0
  3281. rngb.BottomSurface = 0
  3282. local rngmb = Instance.new("SpecialMesh", rngb)
  3283. rngmb.MeshType = "Brick"
  3284. rngmb.Name = "SizeMesh"
  3285. rngmb.Scale = vt(0, 1, 0)
  3286. local orb = rngb:Clone()
  3287. orb.Parent = char
  3288. orb.Transparency = 0
  3289. orb.BrickColor = BrickColor.new("White")
  3290. orb.Size = vt(1, 1, 1)
  3291. local orbmish = orb.SizeMesh
  3292. orbmish.Scale = vt(0, 0, 0)
  3293. orbmish.MeshType = "Sphere"
  3294. local orbe = rngb:Clone()
  3295. orbe.Parent = char
  3296. orbe.Transparency = 0.5
  3297. orbe.BrickColor = BrickColor.new("New Yeller")
  3298. orbe.Size = vt(1, 1, 1)
  3299. local orbmish2 = orbe.SizeMesh
  3300. orbmish2.Scale = vt(0, 0, 0)
  3301. orbmish2.MeshType = "Sphere"
  3302. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3303. rngb:Destroy()
  3304. for i = 0, 5, 0.1 do
  3305. swait()
  3306. if rainbowmode == true then
  3307. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3308. end
  3309. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3310. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3311. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3312. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3313. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  3314. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3315. 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)), 0.3)
  3316. 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)), 0.3)
  3317. RootPart.CFrame = FaceMouse()[1]
  3318. end
  3319. orbe.Transparency = 1
  3320. orb.Transparency = 1
  3321. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3322. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  3323. CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
  3324. CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
  3325. CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
  3326. CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
  3327. CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
  3328. CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
  3329. local xd = Instance.new("Sound", char)
  3330. xd.SoundId = "rbxassetid://445796828"
  3331. xd.Pitch = 0.75
  3332. xd.Looped = true
  3333. xd.Volume = 1.25
  3334. xd:Play()
  3335. local a = Instance.new("Part", Character)
  3336. a.Name = "Direction"
  3337. a.Anchored = true
  3338. a.BrickColor = bc("Alder")
  3339. a.Color = MAINRUINCOLOR.Color
  3340. a.Material = "Neon"
  3341. a.Transparency = 0.5
  3342. a.Shape = "Cylinder"
  3343. a.CanCollide = false
  3344. local a2 = Instance.new("Part", Character)
  3345. a2.Name = "Direction"
  3346. a2.Anchored = true
  3347. a2.BrickColor = bc("New Yeller")
  3348. a2.Color = MAINRUINCOLOR.Color
  3349. a2.Material = "Neon"
  3350. a2.Transparency = 0.5
  3351. a2.Shape = "Cylinder"
  3352. a2.CanCollide = false
  3353. local ba = Instance.new("Part", Character)
  3354. ba.Name = "HitDirect"
  3355. ba.Anchored = true
  3356. ba.BrickColor = bc("Really black")
  3357. ba.Material = "Neon"
  3358. ba.Transparency = 1
  3359. ba.CanCollide = false
  3360. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3361. local ignore = Character
  3362. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3363. a.BottomSurface = 10
  3364. a.TopSurface = 10
  3365. a2.BottomSurface = 10
  3366. a2.TopSurface = 10
  3367. local distance = (orb.CFrame.p - position).magnitude
  3368. a.Size = Vector3.new(distance, 1, 1)
  3369. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3370. a2.Size = Vector3.new(distance, 1, 1)
  3371. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3372. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3373. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3374. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3375. game:GetService("Debris"):AddItem(a, 60)
  3376. game:GetService("Debris"):AddItem(a2, 60)
  3377. game:GetService("Debris"):AddItem(ba, 60)
  3378. local outerscale = 0
  3379. local msh = Instance.new("SpecialMesh", a)
  3380. msh.MeshType = "Cylinder"
  3381. msh.Scale = vt(1, 0, 0)
  3382. local msh2 = Instance.new("SpecialMesh", a2)
  3383. msh2.MeshType = "Cylinder"
  3384. msh2.Scale = vt(1, 0, 0)
  3385. for i = 0, 2, 0.1 do
  3386. swait()
  3387. CameraEnshaking(1, 1)
  3388. msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
  3389. msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
  3390. outerscale = outerscale - 0.015
  3391. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3392. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3393. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3394. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3395. distance = (orb.CFrame.p - position).magnitude
  3396. if typrot == 1 then
  3397. rotation = rotation + 2.5
  3398. elseif typrot == 2 then
  3399. rotation = rotation - 2.5
  3400. end
  3401. RootPart.CFrame = FaceMouse()[1]
  3402. a.Size = Vector3.new(distance, 1, 1)
  3403. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3404. a2.Size = Vector3.new(distance, 1, 1)
  3405. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3406. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3407. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3408. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3409. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  3410. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  3411. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3412. end
  3413. for z = 0, 2 do
  3414. for i = 0, 4, 0.1 do
  3415. swait()
  3416. CameraEnshaking(1, 1)
  3417. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3418. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3419. outerscale = outerscale + 0.015
  3420. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3421. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3422. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3423. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3424. distance = (orb.CFrame.p - position).magnitude
  3425. if typrot == 1 then
  3426. rotation = rotation + 2.5
  3427. elseif typrot == 2 then
  3428. rotation = rotation - 2.5
  3429. end
  3430. RootPart.CFrame = FaceMouse()[1]
  3431. a.Size = Vector3.new(distance, 1, 1)
  3432. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3433. a2.Size = Vector3.new(distance, 1, 1)
  3434. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3435. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3436. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3437. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3438. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  3439. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  3440. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3441. end
  3442. for i = 0, 4, 0.1 do
  3443. swait()
  3444. CameraEnshaking(1, 1)
  3445. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3446. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3447. outerscale = outerscale - 0.015
  3448. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3449. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3450. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3451. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3452. distance = (orb.CFrame.p - position).magnitude
  3453. if typrot == 1 then
  3454. rotation = rotation + 2.5
  3455. elseif typrot == 2 then
  3456. rotation = rotation - 2.5
  3457. end
  3458. RootPart.CFrame = FaceMouse()[1]
  3459. a.Size = Vector3.new(distance, 1, 1)
  3460. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3461. a2.Size = Vector3.new(distance, 1, 1)
  3462. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3463. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3464. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3465. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3466. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  3467. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  3468. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3469. end
  3470. end
  3471. for i = 0, 4, 0.1 do
  3472. swait()
  3473. CameraEnshaking(1, 1)
  3474. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3475. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3476. xd.Volume = xd.Volume - 0.025
  3477. a.Transparency = a.Transparency + 0.025
  3478. a2.Transparency = a2.Transparency + 0.025
  3479. outerscale = outerscale - 0.015
  3480. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3481. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3482. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3483. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3484. distance = (orb.CFrame.p - position).magnitude
  3485. if typrot == 1 then
  3486. rotation = rotation + 2.5
  3487. elseif typrot == 2 then
  3488. rotation = rotation - 2.5
  3489. end
  3490. RootPart.CFrame = FaceMouse()[1]
  3491. a.Size = Vector3.new(distance, 1, 1)
  3492. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3493. a2.Size = Vector3.new(distance, 1, 1)
  3494. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3495. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3496. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3497. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3498. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  3499. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  3500. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3501. end
  3502. xd:Destroy()
  3503. a:Destroy()
  3504. a2:Destroy()
  3505. ba:Destroy()
  3506. orb:Destroy()
  3507. orbe:Destroy()
  3508. attack = false
  3509. end
  3510. function resetmode()
  3511. rainbowmode = false
  3512. chaosmode = false
  3513. RecolorTextAndRename("Blood maker", Color3.new(0, 0, 0), Color3.new(1, 0, 0))
  3514. ModeOfGlitch = 1
  3515. storehumanoidWS = 16
  3516. for i, v in pairs(mw2:GetChildren()) do
  3517. if v:IsA("Part") then
  3518. v.BrickColor = BrickColor.new("Really red")
  3519. v.Material = "Neon"
  3520. end
  3521. end
  3522. for i, v in pairs(mw1:GetChildren()) do
  3523. if v:IsA("Part") then
  3524. v.Transparency = 1
  3525. v.BrickColor = BrickColor.new("Really red")
  3526. v.Material = "Neon"
  3527. end
  3528. end
  3529. MAINRUINCOLOR = BrickColor.new("Really red")
  3530. hum.WalkSpeed = 16
  3531. newTheme("rbxassetid://614032233", 48.6, 1, 1)
  3532. for i, v in pairs(m:GetChildren()) do
  3533. if v:IsA("Part") then
  3534. v.BrickColor = BrickColor.new("Really black")
  3535. v.Material = "Glass"
  3536. end
  3537. end
  3538. for i, v in pairs(m2:GetChildren()) do
  3539. if v:IsA("Part") then
  3540. v.BrickColor = BrickColor.new("Crimson")
  3541. v.Material = "Granite"
  3542. end
  3543. end
  3544. for i, v in pairs(m3:GetChildren()) do
  3545. if v:IsA("Part") then
  3546. v.BrickColor = BrickColor.new("Really red")
  3547. v.Material = "Neon"
  3548. end
  3549. end
  3550. for i, v in pairs(extrawingmod1:GetChildren()) do
  3551. if v:IsA("Part") then
  3552. v.Transparency = 1
  3553. v.BrickColor = BrickColor.new("White")
  3554. v.Material = "Neon"
  3555. end
  3556. end
  3557. for i, v in pairs(extrawingmod2:GetChildren()) do
  3558. if v:IsA("Part") then
  3559. v.Transparency = 1
  3560. v.BrickColor = BrickColor.new("White")
  3561. v.Material = "Neon"
  3562. end
  3563. end
  3564. end
  3565. function attackone()
  3566. attack = true
  3567. for i = 0, 1, 0.1 do
  3568. swait()
  3569. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
  3570. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
  3571. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  3572. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  3573. 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)), 0.2)
  3574. 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)), 0.2)
  3575. end
  3576. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
  3577. local hitb = Instance.new("Part", char)
  3578. hitb.Anchored = true
  3579. hitb.CanCollide = false
  3580. hitb.FormFactor = 3
  3581. hitb.Name = "Ring"
  3582. hitb.Material = "Neon"
  3583. hitb.Size = Vector3.new(1, 1, 1)
  3584. hitb.Transparency = 1
  3585. hitb.TopSurface = 0
  3586. hitb.BottomSurface = 0
  3587. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  3588. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  3589. hitb:Destroy()
  3590. for i = 0, 1, 0.1 do
  3591. swait()
  3592. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
  3593. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
  3594. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  3595. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  3596. 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)), 0.4)
  3597. 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)), 0.4)
  3598. end
  3599. attack = false
  3600. end
  3601. function attacktwo()
  3602. attack = true
  3603. for i = 0, 1, 0.1 do
  3604. swait()
  3605. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
  3606. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  3607. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  3608. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  3609. 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)), 0.2)
  3610. 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)), 0.2)
  3611. end
  3612. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
  3613. local hitb = Instance.new("Part", char)
  3614. hitb.Anchored = true
  3615. hitb.CanCollide = false
  3616. hitb.FormFactor = 3
  3617. hitb.Name = "Ring"
  3618. hitb.Material = "Neon"
  3619. hitb.Size = Vector3.new(1, 1, 1)
  3620. hitb.Transparency = 1
  3621. hitb.TopSurface = 0
  3622. hitb.BottomSurface = 0
  3623. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  3624. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  3625. hitb:Destroy()
  3626. for i = 0, 1, 0.1 do
  3627. swait()
  3628. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
  3629. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
  3630. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  3631. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  3632. 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)), 0.4)
  3633. 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)), 0.4)
  3634. end
  3635. attack = false
  3636. end
  3637. function attackthree()
  3638. attack = true
  3639. for i = 0, 1, 0.1 do
  3640. swait()
  3641. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  3642. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  3643. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  3644. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3645. 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)), 0.3)
  3646. 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)), 0.3)
  3647. end
  3648. local distlook = 5
  3649. for i = 0, 4 do
  3650. swait(2)
  3651. CameraEnshaking(2, 3)
  3652. local hite = Instance.new("Part", char)
  3653. hite.Anchored = true
  3654. hite.CanCollide = false
  3655. hite.FormFactor = 3
  3656. hite.Name = "Ring"
  3657. hite.Material = "Neon"
  3658. hite.Size = Vector3.new(1, 1, 1)
  3659. hite.Transparency = 1
  3660. hite.TopSurface = 0
  3661. hite.BottomSurface = 0
  3662. hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
  3663. sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
  3664. sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
  3665. MagniDamage(hite, 10, 15, 35, 0, "Normal")
  3666. for i = 0, 2 do
  3667. 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)
  3668. 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)
  3669. 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)
  3670. end
  3671. CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
  3672. CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
  3673. game:GetService("Debris"):AddItem(hite, 5)
  3674. distlook = distlook + 10
  3675. end
  3676. attack = false
  3677. end
  3678. local attacktype = 1
  3679. mouse.Button1Down:connect(function()
  3680. if attack == false and attacktype == 1 then
  3681. attacktype = 2
  3682. attackone()
  3683. elseif attack == false and attacktype == 2 then
  3684. attacktype = 3
  3685. attacktwo()
  3686. elseif attack == false and attacktype == 3 then
  3687. attacktype = 1
  3688. attackthree()
  3689. elseif attack == false and attacktype == 4 then
  3690. attacktype = 1
  3691. end
  3692. end)
  3693. mouse.KeyDown:connect(function(k)
  3694. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  3695. ModeOfGlitch = 2
  3696. storehumanoidWS = 16
  3697. hum.WalkSpeed = 16
  3698. rainbowmode = false
  3699. chaosmode = false
  3700. RecolorTextAndRename("Divine Purity", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
  3701. newTheme("rbxassetid://670845649", 20.25, 1, 1)
  3702. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  3703. for i, v in pairs(mw2:GetChildren()) do
  3704. if v:IsA("Part") then
  3705. v.BrickColor = MAINRUINCOLOR
  3706. v.Material = "Neon"
  3707. end
  3708. end
  3709. for i, v in pairs(mw1:GetChildren()) do
  3710. if v:IsA("Part") then
  3711. v.Transparency = 1
  3712. v.BrickColor = MAINRUINCOLOR
  3713. v.Material = "Neon"
  3714. end
  3715. end
  3716. for i, v in pairs(m:GetChildren()) do
  3717. if v:IsA("Part") then
  3718. v.BrickColor = BrickColor.new("White")
  3719. v.Material = "Ice"
  3720. end
  3721. end
  3722. for i, v in pairs(m2:GetChildren()) do
  3723. if v:IsA("Part") then
  3724. v.BrickColor = BrickColor.new("Pastel light blue")
  3725. v.Material = "Glass"
  3726. end
  3727. end
  3728. for i, v in pairs(m3:GetChildren()) do
  3729. if v:IsA("Part") then
  3730. v.BrickColor = BrickColor.new("Toothpaste")
  3731. v.Material = "Neon"
  3732. end
  3733. end
  3734. for i, v in pairs(extrawingmod1:GetChildren()) do
  3735. if v:IsA("Part") then
  3736. v.Transparency = 1
  3737. v.BrickColor = BrickColor.new("White")
  3738. v.Material = "Neon"
  3739. end
  3740. end
  3741. for i, v in pairs(extrawingmod2:GetChildren()) do
  3742. if v:IsA("Part") then
  3743. v.Transparency = 1
  3744. v.BrickColor = BrickColor.new("White")
  3745. v.Material = "Neon"
  3746. end
  3747. end
  3748. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  3749. resetmode()
  3750. end
  3751. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  3752. ModeOfGlitch = 3
  3753. storehumanoidWS = 16
  3754. hum.WalkSpeed = 16
  3755. rainbowmode = false
  3756. chaosmode = false
  3757. RecolorTextAndRename("Corruption", Color3.new(0, 0, 0), Color3.new(0.35, 0, 1))
  3758. newTheme("rbxassetid://1283869370", 58.15, 0.98, 1.25)
  3759. MAINRUINCOLOR = BrickColor.new("Royal purple")
  3760. for i, v in pairs(mw2:GetChildren()) do
  3761. if v:IsA("Part") then
  3762. v.BrickColor = MAINRUINCOLOR
  3763. v.Material = "Neon"
  3764. end
  3765. end
  3766. for i, v in pairs(mw1:GetChildren()) do
  3767. if v:IsA("Part") then
  3768. v.Transparency = 1
  3769. v.BrickColor = MAINRUINCOLOR
  3770. v.Material = "Neon"
  3771. end
  3772. end
  3773. for i, v in pairs(m:GetChildren()) do
  3774. if v:IsA("Part") then
  3775. v.BrickColor = BrickColor.new("Black")
  3776. v.Material = "Ice"
  3777. end
  3778. end
  3779. for i, v in pairs(m2:GetChildren()) do
  3780. if v:IsA("Part") then
  3781. v.BrickColor = BrickColor.new("Dark indigo")
  3782. v.Material = "Glass"
  3783. end
  3784. end
  3785. for i, v in pairs(m3:GetChildren()) do
  3786. if v:IsA("Part") then
  3787. v.BrickColor = BrickColor.new("Royal purple")
  3788. v.Material = "Neon"
  3789. end
  3790. end
  3791. for i, v in pairs(extrawingmod1:GetChildren()) do
  3792. if v:IsA("Part") then
  3793. v.Transparency = 1
  3794. v.BrickColor = BrickColor.new("White")
  3795. v.Material = "Neon"
  3796. end
  3797. end
  3798. for i, v in pairs(extrawingmod2:GetChildren()) do
  3799. if v:IsA("Part") then
  3800. v.Transparency = 1
  3801. v.BrickColor = BrickColor.new("White")
  3802. v.Material = "Neon"
  3803. end
  3804. end
  3805. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  3806. resetmode()
  3807. end
  3808. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  3809. ModeOfGlitch = 4
  3810. storehumanoidWS = 16
  3811. hum.WalkSpeed = 16
  3812. rainbowmode = false
  3813. chaosmode = true
  3814. RecolorTextAndRename("CHAOS", Color3.new(0, 0, 0), BrickColor.random().Color)
  3815. newTheme("rbxassetid://614032233", 48.6, 1, 1)
  3816. MAINRUINCOLOR = BrickColor.new("Black")
  3817. for i, v in pairs(mw2:GetChildren()) do
  3818. if v:IsA("Part") then
  3819. v.BrickColor = MAINRUINCOLOR
  3820. v.Material = "Neon"
  3821. end
  3822. end
  3823. for i, v in pairs(mw1:GetChildren()) do
  3824. if v:IsA("Part") then
  3825. v.Transparency = 0.75
  3826. v.BrickColor = BrickColor.random()
  3827. v.Material = "Neon"
  3828. end
  3829. end
  3830. for i, v in pairs(m:GetChildren()) do
  3831. if v:IsA("Part") then
  3832. v.BrickColor = BrickColor.new("Black")
  3833. v.Material = "Neon"
  3834. end
  3835. end
  3836. for i, v in pairs(m2:GetChildren()) do
  3837. if v:IsA("Part") then
  3838. v.BrickColor = BrickColor.random()
  3839. v.Material = "Neon"
  3840. end
  3841. end
  3842. for i, v in pairs(m3:GetChildren()) do
  3843. if v:IsA("Part") then
  3844. v.BrickColor = BrickColor.new("Black")
  3845. v.Material = "Neon"
  3846. end
  3847. end
  3848. for i, v in pairs(extrawingmod1:GetChildren()) do
  3849. if v:IsA("Part") then
  3850. v.Transparency = 1
  3851. v.BrickColor = BrickColor.new("White")
  3852. v.Material = "Neon"
  3853. end
  3854. end
  3855. for i, v in pairs(extrawingmod2:GetChildren()) do
  3856. if v:IsA("Part") then
  3857. v.Transparency = 1
  3858. v.BrickColor = BrickColor.new("White")
  3859. v.Material = "Neon"
  3860. end
  3861. end
  3862. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  3863. resetmode()
  3864. end
  3865. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  3866. ModeOfGlitch = 5
  3867. storehumanoidWS = 16
  3868. hum.WalkSpeed = 16
  3869. rainbowmode = false
  3870. chaosmode = false
  3871. RecolorTextAndRename("Divine Darkness", Color3.new(0, 0, 0), Color3.new(255, 255, 255))
  3872. newTheme("rbxassetid://661079869", 0, 1.02, 1)
  3873. MAINRUINCOLOR = BrickColor.new("Really black")
  3874. for i, v in pairs(mw2:GetChildren()) do
  3875. if v:IsA("Part") then
  3876. v.BrickColor = MAINRUINCOLOR
  3877. v.Material = "Neon"
  3878. end
  3879. end
  3880. for i, v in pairs(mw1:GetChildren()) do
  3881. if v:IsA("Part") then
  3882. v.Transparency = 0
  3883. v.BrickColor = MAINRUINCOLOR
  3884. v.Material = "Neon"
  3885. end
  3886. end
  3887. for i, v in pairs(m:GetChildren()) do
  3888. if v:IsA("Part") then
  3889. v.BrickColor = BrickColor.new("Really black")
  3890. v.Material = "Ice"
  3891. end
  3892. end
  3893. for i, v in pairs(m2:GetChildren()) do
  3894. if v:IsA("Part") then
  3895. v.BrickColor = BrickColor.new("Really black")
  3896. v.Material = "Ice"
  3897. end
  3898. end
  3899. for i, v in pairs(m3:GetChildren()) do
  3900. if v:IsA("Part") then
  3901. v.BrickColor = BrickColor.new("Really black")
  3902. v.Material = "Neon"
  3903. end
  3904. end
  3905. for i, v in pairs(extrawingmod1:GetChildren()) do
  3906. if v:IsA("Part") then
  3907. v.Transparency = 1
  3908. v.BrickColor = BrickColor.new("White")
  3909. v.Material = "Neon"
  3910. end
  3911. end
  3912. for i, v in pairs(extrawingmod2:GetChildren()) do
  3913. if v:IsA("Part") then
  3914. v.Transparency = 1
  3915. v.BrickColor = BrickColor.new("White")
  3916. v.Material = "Neon"
  3917. end
  3918. end
  3919. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  3920. resetmode()
  3921. end
  3922. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  3923. ModeOfGlitch = 6
  3924. storehumanoidWS = 75
  3925. hum.WalkSpeed = 75
  3926. rainbowmode = false
  3927. chaosmode = false
  3928. RecolorTextAndRename("Equality", Color3.new(0, 0, 0), Color3.new(1, 1, 1))
  3929. newTheme("rbxassetid://395351949", 0, 1, 1)
  3930. MAINRUINCOLOR = BrickColor.new("Really black")
  3931. for i, v in pairs(mw2:GetChildren()) do
  3932. if v:IsA("Part") then
  3933. v.BrickColor = BrickColor.new("White")
  3934. v.Material = "Neon"
  3935. end
  3936. end
  3937. for i, v in pairs(mw1:GetChildren()) do
  3938. if v:IsA("Part") then
  3939. v.Transparency = 0
  3940. v.BrickColor = BrickColor.new("Really black")
  3941. v.Material = "Neon"
  3942. end
  3943. end
  3944. for i, v in pairs(m:GetChildren()) do
  3945. if v:IsA("Part") then
  3946. v.BrickColor = BrickColor.new("White")
  3947. v.Material = "Ice"
  3948. end
  3949. end
  3950. for i, v in pairs(m2:GetChildren()) do
  3951. if v:IsA("Part") then
  3952. v.BrickColor = BrickColor.new("Really black")
  3953. v.Material = "Ice"
  3954. end
  3955. end
  3956. for i, v in pairs(m3:GetChildren()) do
  3957. if v:IsA("Part") then
  3958. v.BrickColor = BrickColor.new("White")
  3959. v.Material = "Neon"
  3960. end
  3961. end
  3962. for i, v in pairs(extrawingmod1:GetChildren()) do
  3963. if v:IsA("Part") then
  3964. v.Transparency = 1
  3965. v.BrickColor = BrickColor.new("White")
  3966. v.Material = "Neon"
  3967. end
  3968. end
  3969. for i, v in pairs(extrawingmod2:GetChildren()) do
  3970. if v:IsA("Part") then
  3971. v.Transparency = 1
  3972. v.BrickColor = BrickColor.new("White")
  3973. v.Material = "Neon"
  3974. end
  3975. end
  3976. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  3977. resetmode()
  3978. end
  3979. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  3980. ModeOfGlitch = 6127843
  3981. storehumanoidWS = 50
  3982. hum.WalkSpeed = 50
  3983. rainbowmode = true
  3984. chaosmode = false
  3985. RecolorTextAndRename("COLOR GOD", Color3.new(1, 1, 1), Color3.new(1, 1, 1))
  3986. newTheme("rbxassetid://147930134", 0, 1, 1)
  3987. MAINRUINCOLOR = BrickColor.new("White")
  3988. for i, v in pairs(mw2:GetChildren()) do
  3989. if v:IsA("Part") then
  3990. v.BrickColor = MAINRUINCOLOR
  3991. v.Material = "Neon"
  3992. end
  3993. end
  3994. for i, v in pairs(mw1:GetChildren()) do
  3995. if v:IsA("Part") then
  3996. v.Transparency = 0
  3997. v.BrickColor = MAINRUINCOLOR
  3998. v.Material = "Neon"
  3999. end
  4000. end
  4001. for i, v in pairs(m:GetChildren()) do
  4002. if v:IsA("Part") then
  4003. v.BrickColor = BrickColor.new("White")
  4004. v.Material = "Neon"
  4005. end
  4006. end
  4007. for i, v in pairs(m2:GetChildren()) do
  4008. if v:IsA("Part") then
  4009. v.BrickColor = BrickColor.new("White")
  4010. v.Material = "Neon"
  4011. end
  4012. end
  4013. for i, v in pairs(m3:GetChildren()) do
  4014. if v:IsA("Part") then
  4015. v.BrickColor = BrickColor.new("White")
  4016. v.Material = "Neon"
  4017. end
  4018. end
  4019. for i, v in pairs(extrawingmod1:GetChildren()) do
  4020. if v:IsA("Part") then
  4021. v.Transparency = 1
  4022. v.BrickColor = BrickColor.new("White")
  4023. v.Material = "Neon"
  4024. end
  4025. end
  4026. for i, v in pairs(extrawingmod2:GetChildren()) do
  4027. if v:IsA("Part") then
  4028. v.Transparency = 1
  4029. v.BrickColor = BrickColor.new("White")
  4030. v.Material = "Neon"
  4031. end
  4032. end
  4033. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  4034. resetmode()
  4035. end
  4036. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  4037. ModeOfGlitch = 1000000
  4038. storehumanoidWS = 100
  4039. hum.WalkSpeed = 100
  4040. rainbowmode = false
  4041. chaosmode = false
  4042. RecolorTextAndRename("Divine Universe", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
  4043. newTheme("rbxassetid://1359036559", 0, 1, 1)
  4044. MAINRUINCOLOR = BrickColor.new("Bright violet")
  4045. for i, v in pairs(mw2:GetChildren()) do
  4046. if v:IsA("Part") then
  4047. v.BrickColor = MAINRUINCOLOR
  4048. v.Material = "Neon"
  4049. end
  4050. end
  4051. for i, v in pairs(mw1:GetChildren()) do
  4052. if v:IsA("Part") then
  4053. v.Transparency = 0
  4054. v.BrickColor = MAINRUINCOLOR
  4055. v.Material = "Neon"
  4056. end
  4057. end
  4058. for i, v in pairs(m:GetChildren()) do
  4059. if v:IsA("Part") then
  4060. v.Color = Color3.new(0.5, 0, 1)
  4061. v.Material = "Neon"
  4062. end
  4063. end
  4064. for i, v in pairs(m2:GetChildren()) do
  4065. if v:IsA("Part") then
  4066. v.Color = Color3.new(0.25, 0, 1)
  4067. v.Material = "Neon"
  4068. end
  4069. end
  4070. for i, v in pairs(m3:GetChildren()) do
  4071. if v:IsA("Part") then
  4072. v.Color = Color3.new(0.45, 0, 1)
  4073. v.Material = "Neon"
  4074. end
  4075. end
  4076. for i, v in pairs(extrawingmod1:GetChildren()) do
  4077. if v:IsA("Part") then
  4078. v.Transparency = 0
  4079. v.Color = Color3.new(0.25, 0, 1)
  4080. v.Material = "Neon"
  4081. end
  4082. end
  4083. for i, v in pairs(extrawingmod2:GetChildren()) do
  4084. if v:IsA("Part") then
  4085. v.Transparency = 0
  4086. v.Color = Color3.new(0.5, 0, 1)
  4087. v.Material = "Neon"
  4088. end
  4089. end
  4090. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  4091. resetmode()
  4092. end
  4093. if k == "l" and toggleTag == false then
  4094. toggleTag = true
  4095. text.TextTransparency = 0
  4096. text.TextStrokeTransparency = 0
  4097. elseif k == "l" and toggleTag == true then
  4098. toggleTag = false
  4099. text.TextTransparency = 1
  4100. text.TextStrokeTransparency = 1
  4101. end
  4102. if k == "z" and attack == false and ModeOfGlitch == 1 then
  4103. ExtinctiveHeartbreak()
  4104. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  4105. PureBomb()
  4106. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  4107. scattercorrupt()
  4108. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  4109. ChaosGroundStrike()
  4110. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  4111. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  4112. UniversalSpark()
  4113. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  4114. yinyangi()
  4115. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  4116. Wip()
  4117. end
  4118. if k == "l" and attack == false and ModeOfGlitch == 4 and plr.Name == "NoobyGames12" then
  4119. ChaosBegone()
  4120. end
  4121. end)
  4122. coroutine.resume(coroutine.create(function()
  4123. while true do
  4124. swait(2)
  4125. if rainbowmode == true or ModeOfGlitch == 6 then
  4126. 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)
  4127. end
  4128. end
  4129. end))
  4130. coroutine.resume(coroutine.create(function()
  4131. while true do
  4132. swait(0.5)
  4133. if ModeOfGlitch == 1000000 then
  4134. 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)
  4135. end
  4136. end
  4137. end))
  4138. coroutine.resume(coroutine.create(function()
  4139. while true do
  4140. swait(2)
  4141. if chaosmode == true then
  4142. RecolorTextAndRename("CHAOS", Color3.new(0, 0, 0), BrickColor.random().Color)
  4143. for i, v in pairs(mw1:GetChildren()) do
  4144. if v:IsA("Part") then
  4145. v.Transparency = 0.75
  4146. v.BrickColor = BrickColor.random()
  4147. v.Material = "Neon"
  4148. end
  4149. end
  4150. for i, v in pairs(m2:GetChildren()) do
  4151. if v:IsA("Part") then
  4152. v.BrickColor = BrickColor.random()
  4153. v.Material = "Neon"
  4154. end
  4155. end
  4156. end
  4157. end
  4158. end))
  4159. Humanoid.Name = "STARGLITCHER"
  4160. Humanoid.MaxHealth = math.huge
  4161. Humanoid.Health = math.huge
  4162. Instance.new("ForceField", char).Visible = false
  4163. Humanoid.Animator.Parent = nil
  4164. idleanim = 0.4
  4165. while true do
  4166. if rainbowmode == true then
  4167. RecolorTextAndRename("COLOR GOD", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500))
  4168. MAINRUINCOLOR = BrickColor.new("White")
  4169. for i, v in pairs(m:GetChildren()) do
  4170. if v:IsA("Part") then
  4171. v.Color = Color3.new(r / 0, g / 0, b / 0)
  4172. end
  4173. end
  4174. for i, v in pairs(m2:GetChildren()) do
  4175. if v:IsA("Part") then
  4176. v.Color = Color3.new(r / 0, g / 0, b / 0)
  4177. end
  4178. end
  4179. for i, v in pairs(m3:GetChildren()) do
  4180. if v:IsA("Part") then
  4181. v.Color = Color3.new(r / 0, g / 0, b / 0)
  4182. end
  4183. end
  4184. for i, v in pairs(mw1:GetChildren()) do
  4185. if v:IsA("Part") then
  4186. v.Color = Color3.new(r / 0, g / 0, b / 0)
  4187. v.Material = "Dark"
  4188. end
  4189. end
  4190. for i, v in pairs(mw2:GetChildren()) do
  4191. if v:IsA("Part") then
  4192. v.Color = Color3.new(r / 0, g / 0, b / 0)
  4193.  
  4194. v.Material = "Dark"
  4195. end"
  4196. end
  4197. end
  4198. CameraManager()
  4199. swait()
  4200. 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))), 0.3)
  4201. 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))), 0.3)
  4202. 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))), 0.3)
  4203. 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))), 0.3)
  4204. 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))), 0.3)
  4205. 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))), 0.3)
  4206. 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))), 0.3)
  4207. 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))), 0.3)
  4208. 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))), 0.3)
  4209. 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))), 0.3)
  4210. 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))), 0.3)
  4211. 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))), 0.3)
  4212. sine = sine + change
  4213. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  4214. local velderp = RootPart.Velocity.y
  4215. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  4216. if equipped == true or equipped == false then
  4217. if attack == false then
  4218. idle = idle + 1
  4219. else
  4220. idle = 0
  4221. end
  4222. if not (idle >= 500) or attack == false then
  4223. end
  4224. if RootPart.Velocity.y > 1 and hitfloor == nil then
  4225. Anim = "Jump"
  4226. if attack == false then
  4227. 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)), 0.1)
  4228. 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)), 0.1)
  4229. 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)), 0.1)
  4230. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1)
  4231. 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)), 0.1)
  4232. 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)), 0.1)
  4233. end
  4234. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  4235. Anim = "Fall"
  4236. if attack == false then
  4237. 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)), 0.1)
  4238. 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)), 0.1)
  4239. 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)), 0.1)
  4240. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4241. 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)), 0.1)
  4242. 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)), 0.1)
  4243. end
  4244. elseif torvel < 1 and hitfloor ~= nil then
  4245. Anim = "Idle"
  4246. if attack == false then
  4247. if ModeOfGlitch == 1 then
  4248. 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)), 0.1)
  4249. 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))), 0.1)
  4250. 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)), 0.1)
  4251. 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))), 0.1)
  4252. 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))), 0.1)
  4253. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
  4254. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  4255. 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))), 0.1)
  4256. 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))), 0.1)
  4257. 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)), 0.1)
  4258. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  4259. 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))), 0.1)
  4260. 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))), 0.1)
  4261. elseif ModeOfGlitch == 3 then
  4262. 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))), 0.1)
  4263. 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))), 0.1)
  4264. 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)), 0.1)
  4265. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(20)), 0.1)
  4266. 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))), 0.1)
  4267. LW.C0 = clerp(LW.C0, cf(-1.5, 0.75, 0) * angles(math.rad(170), math.rad(-20), math.rad(20)), 0.1)
  4268. elseif ModeOfGlitch == 4 then
  4269. 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)), 0.1)
  4270. 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)), 0.1)
  4271. 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)), 0.1)
  4272. 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))), 0.1)
  4273. 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))), 0.1)
  4274. 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))), 0.1)
  4275. elseif ModeOfGlitch == 5 then
  4276. 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))), 0.1)
  4277. 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))), 0.1)
  4278. 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)), 0.1)
  4279. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  4280. 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)), 0.1)
  4281. 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)), 0.1)
  4282. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  4283. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.1)
  4284. 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)), 0.1)
  4285. 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)), 0.1)
  4286. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
  4287. 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))), 0.1)
  4288. 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))), 0.1)
  4289. end
  4290. end
  4291. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  4292. Anim = "Walk"
  4293. if attack == false then
  4294. if ModeOfGlitch == 1 then
  4295. 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))), 0.1)
  4296. 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))), 0.1)
  4297. 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))), 0.1)
  4298. 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))), 0.1)
  4299. 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))), 0.1)
  4300. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
  4301. elseif ModeOfGlitch == 4 then
  4302. 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))), 0.1)
  4303. 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))), 0.1)
  4304. 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))), 0.1)
  4305. 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))), 0.1)
  4306. 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))), 0.1)
  4307. 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))), 0.1)
  4308. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then
  4309. 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))), 0.1)
  4310. 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))), 0.1)
  4311. 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))), 0.1)
  4312. 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))), 0.1)
  4313. 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))), 0.1)
  4314. 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))), 0.1)
  4315. end
  4316. end
  4317. elseif torvel >= 22 and hitfloor ~= nil then
  4318. Anim = "Run"
  4319. if attack == false then
  4320. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then
  4321. 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))), 0.1)
  4322. 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))), 0.1)
  4323. 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))), 0.1)
  4324. 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))), 0.1)
  4325. 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))), 0.1)
  4326. 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))), 0.1)
  4327. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  4328. 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)), 0.2)
  4329. 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)), 0.2)
  4330. 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)), 0.2)
  4331. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4332. 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))), 0.2)
  4333. 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))), 0.2)
  4334. end
  4335. end
  4336. end
  4337. end
  4338. end
  4339. RAW Paste Data
  4340.  
  4341. warn("Star Glitcher Loaded.")
  4342. warn("All purpose switcher...")
  4343. plr = game.Players.LocalPlayer
  4344. char = plr.Character
  4345. hum = char.Humanoid
  4346. local cam = game.Workspace.CurrentCamera
  4347. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  4348. Camera = cam
  4349. local CamInterrupt = false
  4350. local TwoD = false
  4351. local TargetInfo = {nil, nil}
  4352. cam.CameraType = "Custom"
  4353. t = char.Torso
  4354. h = char.Head
  4355. ra = char["Right Arm"]
  4356. la = char["Left Arm"]
  4357. rl = char["Right Leg"]
  4358. ll = char["Left Leg"]
  4359. tors = char.Torso
  4360. lleg = char["Left Leg"]
  4361. root = char.HumanoidRootPart
  4362. hed = char.Head
  4363. rleg = char["Right Leg"]
  4364. rarm = char["Right Arm"]
  4365. larm = char["Left Arm"]
  4366. radian = math.rad
  4367. random = math.random
  4368. Vec3 = Vector3.new
  4369. Inst = Instance.new
  4370. cFrame = CFrame.new
  4371. Euler = CFrame.fromEulerAnglesXYZ
  4372. vt = Vector3.new
  4373. bc = BrickColor.new
  4374. br = BrickColor.random
  4375. it = Instance.new
  4376. cf = CFrame.new
  4377. local Booleans = {CamFollow = true, GyroUse = true}
  4378. function lerp(object, newCFrame, alpha)
  4379. return object:lerp(newCFrame, alpha)
  4380. end
  4381. local Directer = Inst("BodyGyro", root)
  4382. Directer.MaxTorque = Vec3(0, 0, 0)
  4383. Directer.P = 600000
  4384. local CPart = Inst("Part")
  4385. CPart.Anchored = true
  4386. CPart.CanCollide = false
  4387. CPart.Locked = true
  4388. CPart.Transparency = 1
  4389. local rainbowmode = false
  4390. local chaosmode = false
  4391. kan = Instance.new("Sound", char)
  4392. kan.Volume = 1.25
  4393. kan.TimePosition = 0
  4394. kan.PlaybackSpeed = 1
  4395. kan.Pitch = 1
  4396. kan.SoundId = "rbxassetid://614032233"
  4397. kan.Name = "wrecked"
  4398. kan.Looped = true
  4399. kan:Play()
  4400. function newTheme(ID, timepos, pitch, vol)
  4401. local kanz = kan
  4402. kanz.PlaybackSpeed = pitch
  4403. kanz.Pitch = pitch
  4404. kanz.SoundId = ID
  4405. kanz.Name = "wrecked"
  4406. kanz.Looped = true
  4407. end
  4408. function CameraShake(Times, Power, PlayerTarget)
  4409. coroutine.resume(coroutine.create(function()
  4410. FV = Instance.new("BoolValue", PlayerTarget)
  4411. FV.Name = "CameraShake"
  4412. for ShakeNum = 1, Times do
  4413. swait()
  4414. local ef = Power
  4415. if ef >= 1 then
  4416. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  4417. else
  4418. ef = Power * 10
  4419. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  4420. end
  4421. end
  4422. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  4423. FV:Destroy()
  4424. end))
  4425. end
  4426. function CameraEnshaking(Length, Intensity)
  4427. coroutine.resume(coroutine.create(function()
  4428. local intensity = 1 * Intensity
  4429. local rotM = 0.01 * Intensity
  4430. for i = 0, Length, 0.1 do
  4431. swait()
  4432. intensity = intensity - 0.05 * Intensity / Length
  4433. rotM = rotM - 5.0E-4 * Intensity / Length
  4434. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  4435. 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)
  4436. end
  4437. Humanoid.CameraOffset = Vec3(0, 0, 0)
  4438. end))
  4439. end
  4440. function CamShake(Part, Distan, Power, Times)
  4441. local de = Part.Position
  4442. for i, v in pairs(workspace:children()) do
  4443. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  4444. for _, c in pairs(v:children()) do
  4445. if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then
  4446. do
  4447. local Noob = v.Humanoid
  4448. if Noob ~= nil then
  4449. coroutine.resume(coroutine.create(function()
  4450. FV = Instance.new("BoolValue", Noob)
  4451. FV.Name = "CameraShake"
  4452. for ShakeNum = 1, Times do
  4453. swait()
  4454. local ef = Power
  4455. if ef >= 1 then
  4456. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  4457. else
  4458. ef = Power * 10
  4459. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  4460. end
  4461. end
  4462. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  4463. FV:Destroy()
  4464. end))
  4465. CameraShake(Times, Power, Noob)
  4466. end
  4467. end
  4468. end
  4469. end
  4470. end
  4471. end
  4472. end
  4473. function chatfunc(text, color)
  4474. local chat = coroutine.wrap(function()
  4475. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  4476. Character:FindFirstChild("TalkingBillBoard"):destroy()
  4477. end
  4478. local naeeym2 = Instance.new("BillboardGui", Character)
  4479. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  4480. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  4481. naeeym2.Adornee = Character.Head
  4482. naeeym2.Name = "TalkingBillBoard"
  4483. local tecks2 = Instance.new("TextLabel", naeeym2)
  4484. tecks2.BackgroundTransparency = 1
  4485. tecks2.BorderSizePixel = 0
  4486. tecks2.Text = ""
  4487. tecks2.Font = "SciFi"
  4488. tecks2.TextSize = 30
  4489. tecks2.TextStrokeTransparency = 0
  4490. tecks2.TextColor3 = color
  4491. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  4492. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  4493. local tecks3 = Instance.new("TextLabel", naeeym2)
  4494. tecks3.BackgroundTransparency = 1
  4495. tecks3.BorderSizePixel = 0
  4496. tecks3.Text = ""
  4497. tecks3.Font = "SciFi"
  4498. tecks3.TextSize = 30
  4499. tecks3.TextStrokeTransparency = 0
  4500. tecks3.TextColor3 = Color3.new(0, 0, 0)
  4501. tecks3.TextStrokeColor3 = color
  4502. tecks3.Size = UDim2.new(1, 0, 0.5, 0)
  4503. coroutine.resume(coroutine.create(function()
  4504. while true do
  4505. swait(1)
  4506. if chaosmode == true then
  4507. tecks2.TextColor3 = BrickColor.random().Color
  4508. tecks3.TextStrokeColor3 = BrickColor.random().Color
  4509. end
  4510. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  4511. tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  4512. tecks2.Rotation = math.random(-5, 5)
  4513. tecks3.Rotation = math.random(-5, 5)
  4514. end
  4515. end))
  4516. for i = 1, string.len(text) do
  4517. CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
  4518. tecks2.Text = string.sub(text, 1, i)
  4519. tecks3.Text = string.sub(text, 1, i)
  4520. swait(1)
  4521. end
  4522. wait(1)
  4523. local randomrot = math.random(1, 2)
  4524. if randomrot == 1 then
  4525. for i = 1, 50 do
  4526. swait()
  4527. tecks2.Rotation = tecks2.Rotation - 0.75
  4528. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  4529. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  4530. tecks3.Rotation = tecks2.Rotation + 0.75
  4531. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  4532. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  4533. end
  4534. elseif randomrot == 2 then
  4535. for i = 1, 50 do
  4536. swait()
  4537. tecks2.Rotation = tecks2.Rotation + 0.75
  4538. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  4539. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  4540. tecks3.Rotation = tecks2.Rotation - 0.75
  4541. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  4542. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  4543. end
  4544. end
  4545. naeeym2:Destroy()
  4546. end)
  4547. chat()
  4548. end
  4549. local Create = LoadLibrary("RbxUtility").Create
  4550. CFuncs = {
  4551. Part = {
  4552. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  4553. local Part = Create("Part")({
  4554. Parent = Parent,
  4555. Reflectance = Reflectance,
  4556. Transparency = Transparency,
  4557. CanCollide = false,
  4558. Locked = true,
  4559. BrickColor = BrickColor.new(tostring(BColor)),
  4560. Name = Name,
  4561. Size = Size,
  4562. Material = Material
  4563. })
  4564. RemoveOutlines(Part)
  4565. return Part
  4566. end
  4567. },
  4568. Mesh = {
  4569. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  4570. local Msh = Create(Mesh)({
  4571. Parent = Part,
  4572. Offset = OffSet,
  4573. Scale = Scale
  4574. })
  4575. if Mesh == "SpecialMesh" then
  4576. Msh.MeshType = MeshType
  4577. Msh.MeshId = MeshId
  4578. end
  4579. return Msh
  4580. end
  4581. },
  4582. Mesh = {
  4583. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  4584. local Msh = Create(Mesh)({
  4585. Parent = Part,
  4586. Offset = OffSet,
  4587. Scale = Scale
  4588. })
  4589. if Mesh == "SpecialMesh" then
  4590. Msh.MeshType = MeshType
  4591. Msh.MeshId = MeshId
  4592. end
  4593. return Msh
  4594. end
  4595. },
  4596. Weld = {
  4597. Create = function(Parent, Part0, Part1, C0, C1)
  4598. local Weld = Create("Weld")({
  4599. Parent = Parent,
  4600. Part0 = Part0,
  4601. Part1 = Part1,
  4602. C0 = C0,
  4603. C1 = C1
  4604. })
  4605. return Weld
  4606. end
  4607. },
  4608. Sound = {
  4609. Create = function(id, par, vol, pit)
  4610. coroutine.resume(coroutine.create(function()
  4611. local S = Create("Sound")({
  4612. Volume = vol,
  4613. Pitch = pit or 1,
  4614. SoundId = id,
  4615. Parent = par or workspace
  4616. })
  4617. wait()
  4618. S:play()
  4619. game:GetService("Debris"):AddItem(S, 10)
  4620. end))
  4621. end
  4622. },
  4623. LongSound = {
  4624. Create = function(id, par, vol, pit)
  4625. coroutine.resume(coroutine.create(function()
  4626. local S = Create("Sound")({
  4627. Volume = vol,
  4628. Pitch = pit or 1,
  4629. SoundId = id,
  4630. Parent = par or workspace
  4631. })
  4632. wait()
  4633. S:play()
  4634. game:GetService("Debris"):AddItem(S, 30)
  4635. end))
  4636. end
  4637. },
  4638. ParticleEmitter = {
  4639. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  4640. local fp = Create("ParticleEmitter")({
  4641. Parent = Parent,
  4642. Color = ColorSequence.new(Color1, Color2),
  4643. LightEmission = LightEmission,
  4644. Size = Size,
  4645. Texture = Texture,
  4646. Transparency = Transparency,
  4647. ZOffset = ZOffset,
  4648. Acceleration = Accel,
  4649. Drag = Drag,
  4650. LockedToPart = LockedToPart,
  4651. VelocityInheritance = VelocityInheritance,
  4652. EmissionDirection = EmissionDirection,
  4653. Enabled = Enabled,
  4654. Lifetime = LifeTime,
  4655. Rate = Rate,
  4656. Rotation = Rotation,
  4657. RotSpeed = RotSpeed,
  4658. Speed = Speed,
  4659. VelocitySpread = VelocitySpread
  4660. })
  4661. return fp
  4662. end
  4663. },
  4664. CreateTemplate = {}
  4665. }
  4666. function New(Object, Parent, Name, Data)
  4667. local Object = Instance.new(Object)
  4668. for Index, Value in pairs(Data or {}) do
  4669. Object[Index] = Value
  4670. end
  4671. Object.Parent = Parent
  4672. Object.Name = Name
  4673. return Object
  4674. end
  4675. local halocolor = BrickColor.new("Pastel light blue")
  4676. local halocolor2 = BrickColor.new("Really black")
  4677. local starcolor = BrickColor.new("Really black")
  4678. local lunacolor = BrickColor.new("Navy blue")
  4679. local lunacolor2 = BrickColor.new("Bright blue")
  4680. local wepcolor = BrickColor.new("Really black")
  4681. local maincolor = BrickColor.new("Really black")
  4682. local m = Instance.new("Model", char)
  4683. local m2 = Instance.new("Model", char)
  4684. local m3 = Instance.new("Model", char)
  4685. local mw1 = Instance.new("Model", char)
  4686. local mw2 = Instance.new("Model", char)
  4687. local extrawingmod1 = Instance.new("Model", char)
  4688. local extrawingmod2 = Instance.new("Model", char)
  4689. function CreateParta(parent, transparency, reflectance, material, brickcolor)
  4690. local p = Instance.new("Part")
  4691. p.TopSurface = 0
  4692. p.BottomSurface = 0
  4693. p.Parent = parent
  4694. p.Size = Vector3.new(0.1, 0.1, 0.1)
  4695. p.Transparency = transparency
  4696. p.Reflectance = reflectance
  4697. p.CanCollide = false
  4698. p.Locked = true
  4699. p.BrickColor = brickcolor
  4700. p.Material = material
  4701. return p
  4702. end
  4703. function CreateMesh(parent, meshtype, x1, y1, z1)
  4704. local mesh = Instance.new("SpecialMesh", parent)
  4705. mesh.MeshType = meshtype
  4706. mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10)
  4707. return mesh
  4708. end
  4709. function CreateSpecialMesh(parent, meshid, x1, y1, z1)
  4710. local mesh = Instance.new("SpecialMesh", parent)
  4711. mesh.MeshType = "FileMesh"
  4712. mesh.MeshId = meshid
  4713. mesh.Scale = Vector3.new(x1, y1, z1)
  4714. return mesh
  4715. end
  4716. function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1)
  4717. local mesh = Instance.new("SpecialMesh", parent)
  4718. mesh.MeshType = "FileMesh"
  4719. mesh.MeshId = meshid
  4720. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  4721. mesh.Scale = Vector3.new(x1, y1, z1)
  4722. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  4723. return mesh
  4724. end
  4725. function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za)
  4726. local weld = Instance.new("Weld")
  4727. weld.Parent = parent
  4728. weld.Part0 = part0
  4729. weld.Part1 = part1
  4730. weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za)
  4731. weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za)
  4732. return weld
  4733. end
  4734. local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor)
  4735. CreateMesh(handle, "Brick", 0, 0, 0)
  4736. 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))
  4737. local valuaring = 10
  4738. for i = 0, 49 do
  4739. valuaring = valuaring + 10
  4740. rn = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4741. CreateMesh(rn, "Brick", 0.25, 0.1, 0.1)
  4742. 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))
  4743. end
  4744. local handle = CreateParta(m, 1, 1, "Neon", maincolor)
  4745. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4746. 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))
  4747. local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  4748. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4749. 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))
  4750. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  4751. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4752. 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))
  4753. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  4754. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4755. 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))
  4756. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  4757. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  4758. 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))
  4759. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  4760. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  4761. 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))
  4762. local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  4763. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4764. 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))
  4765. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  4766. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4767. 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))
  4768. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  4769. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4770. 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))
  4771. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  4772. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  4773. 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))
  4774. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  4775. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  4776. 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))
  4777. local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  4778. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4779. 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))
  4780. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  4781. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4782. 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))
  4783. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  4784. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4785. 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))
  4786. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  4787. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  4788. 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))
  4789. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  4790. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  4791. 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))
  4792. local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  4793. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4794. 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))
  4795. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  4796. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4797. 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))
  4798. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  4799. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4800. 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))
  4801. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  4802. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  4803. 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))
  4804. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  4805. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  4806. 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))
  4807. local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  4808. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4809. 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))
  4810. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  4811. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4812. 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))
  4813. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  4814. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4815. 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))
  4816. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  4817. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  4818. 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))
  4819. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  4820. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  4821. 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))
  4822. local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  4823. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4824. 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))
  4825. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  4826. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4827. 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))
  4828. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  4829. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4830. 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))
  4831. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  4832. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  4833. 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))
  4834. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  4835. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  4836. 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))
  4837. local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  4838. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4839. 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))
  4840. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4841. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4842. 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))
  4843. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4844. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4845. 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))
  4846. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4847. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  4848. 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))
  4849. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4850. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  4851. 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))
  4852. local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  4853. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4854. 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))
  4855. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4856. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4857. 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))
  4858. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4859. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4860. 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))
  4861. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4862. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  4863. 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))
  4864. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4865. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  4866. 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))
  4867. local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  4868. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4869. 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))
  4870. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4871. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4872. 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))
  4873. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4874. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4875. 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))
  4876. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4877. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  4878. 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))
  4879. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  4880. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  4881. 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))
  4882. local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  4883. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4884. 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))
  4885. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  4886. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4887. 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))
  4888. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  4889. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4890. 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))
  4891. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  4892. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  4893. 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))
  4894. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  4895. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  4896. 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))
  4897. local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  4898. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4899. 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))
  4900. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  4901. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4902. 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))
  4903. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  4904. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4905. 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))
  4906. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  4907. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  4908. 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))
  4909. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  4910. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  4911. 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))
  4912. local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  4913. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  4914. 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))
  4915. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  4916. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4917. 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))
  4918. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  4919. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  4920. 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))
  4921. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  4922. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  4923. 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))
  4924. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  4925. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  4926. 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))
  4927. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  4928. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  4929. 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))
  4930. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  4931. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  4932. 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))
  4933. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  4934. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  4935. 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))
  4936. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  4937. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  4938. 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))
  4939. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  4940. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  4941. 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))
  4942. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  4943. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  4944. 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))
  4945. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  4946. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  4947. 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))
  4948. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  4949. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  4950. 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))
  4951. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  4952. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  4953. 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))
  4954. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  4955. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  4956. 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))
  4957. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  4958. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  4959. CreateWeld(dotsec, larm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4960. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  4961. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  4962. CreateWeld(dotseca, larm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4963. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  4964. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  4965. CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4966. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  4967. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  4968. CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4969. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  4970. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  4971. CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4972. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  4973. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  4974. CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4975. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  4976. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  4977. CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4978. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  4979. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  4980. CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4981. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  4982. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  4983. CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4984. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  4985. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  4986. CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4987. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  4988. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  4989. CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4990. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  4991. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  4992. CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4993. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  4994. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  4995. CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4996. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  4997. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  4998. CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  4999. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5000. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5001. CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5002. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5003. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5004. CreateWeld(dotsec, larm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5005. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5006. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5007. CreateWeld(dotseca, larm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5008. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5009. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5010. CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5011. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5012. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5013. CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5014. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5015. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5016. CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5017. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5018. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5019. CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5020. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5021. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5022. CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5023. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5024. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5025. CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5026. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5027. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5028. CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5029. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5030. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5031. CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5032. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5033. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5034. CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5035. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5036. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5037. CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5038. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5039. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5040. CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5041. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5042. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5043. CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5044. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5045. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5046. CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5047. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  5048. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  5049. 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))
  5050. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5051. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  5052. 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))
  5053. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5054. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  5055. 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))
  5056. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5057. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  5058. 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))
  5059. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5060. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  5061. 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))
  5062. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  5063. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  5064. 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))
  5065. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  5066. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  5067. 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))
  5068. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  5069. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  5070. 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))
  5071. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5072. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  5073. 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))
  5074. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  5075. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  5076. 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))
  5077. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5078. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5079. CreateWeld(dotsec, rarm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5080. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5081. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5082. CreateWeld(dotseca, rarm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5083. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5084. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5085. CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5086. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5087. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5088. CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5089. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5090. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5091. CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5092. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5093. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5094. CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5095. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5096. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5097. CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5098. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5099. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5100. CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5101. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5102. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5103. CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5104. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5105. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5106. CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5107. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5108. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5109. CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5110. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5111. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5112. CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5113. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5114. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5115. CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5116. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5117. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5118. CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5119. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5120. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5121. CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5122. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5123. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5124. CreateWeld(dotsec, rarm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5125. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5126. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5127. CreateWeld(dotseca, rarm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5128. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5129. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5130. CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5131. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5132. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5133. CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5134. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5135. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5136. CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5137. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5138. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5139. CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5140. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5141. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5142. CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5143. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5144. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5145. CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5146. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5147. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5148. CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5149. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5150. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5151. CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5152. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5153. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5154. CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5155. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5156. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5157. CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5158. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  5159. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  5160. CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5161. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  5162. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  5163. CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5164. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  5165. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  5166. CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  5167. for i, v in pairs(m:GetChildren()) do
  5168. if v:IsA("Part") then
  5169. v.BrickColor = BrickColor.new("Really black")
  5170. v.Material = "Glass"
  5171. end
  5172. end
  5173. for i, v in pairs(m2:GetChildren()) do
  5174. if v:IsA("Part") then
  5175. v.BrickColor = BrickColor.new("Crimson")
  5176. v.Material = "Granite"
  5177. end
  5178. end
  5179. for i, v in pairs(m3:GetChildren()) do
  5180. if v:IsA("Part") then
  5181. v.BrickColor = BrickColor.new("Really red")
  5182. v.Material = "Neon"
  5183. end
  5184. end
  5185. for i, v in pairs(mw2:GetChildren()) do
  5186. if v:IsA("Part") then
  5187. v.BrickColor = BrickColor.new("Really red")
  5188. v.Material = "Neon"
  5189. end
  5190. end
  5191. for i, v in pairs(mw1:GetChildren()) do
  5192. if v:IsA("Part") then
  5193. v.Transparency = 1
  5194. v.BrickColor = BrickColor.new("Really red")
  5195. v.Material = "Neon"
  5196. end
  5197. end
  5198. for i, v in pairs(extrawingmod1:GetChildren()) do
  5199. if v:IsA("Part") then
  5200. v.Transparency = 1
  5201. v.BrickColor = BrickColor.new("White")
  5202. v.Material = "Neon"
  5203. end
  5204. end
  5205. for i, v in pairs(extrawingmod2:GetChildren()) do
  5206. if v:IsA("Part") then
  5207. v.Transparency = 1
  5208. v.BrickColor = BrickColor.new("White")
  5209. v.Material = "Neon"
  5210. end
  5211. end
  5212. local MAINRUINCOLOR = BrickColor.new("Really red")
  5213. function RemoveOutlines(part)
  5214. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  5215. end
  5216. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  5217. local Part = Create("Part")({
  5218. Parent = Parent,
  5219. Reflectance = Reflectance,
  5220. Transparency = Transparency,
  5221. CanCollide = false,
  5222. Locked = true,
  5223. BrickColor = BrickColor.new(tostring(BColor)),
  5224. Name = Name,
  5225. Size = Size,
  5226. Material = Material
  5227. })
  5228. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  5229. RemoveOutlines(Part)
  5230. return Part
  5231. end
  5232. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  5233. local Msh = Create(Mesh)({
  5234. Parent = Part,
  5235. Offset = OffSet,
  5236. Scale = Scale
  5237. })
  5238. if Mesh == "SpecialMesh" then
  5239. Msh.MeshType = MeshType
  5240. Msh.MeshId = MeshId
  5241. end
  5242. return Msh
  5243. end
  5244. function CreateWeld(Parent, Part0, Part1, C0, C1)
  5245. local Weld = Create("Weld")({
  5246. Parent = Parent,
  5247. Part0 = Part0,
  5248. Part1 = Part1,
  5249. C0 = C0,
  5250. C1 = C1
  5251. })
  5252. return Weld
  5253. end
  5254. Player = game:GetService("Players").LocalPlayer
  5255. Character = Player.Character
  5256. PlayerGui = Player.PlayerGui
  5257. Backpack = Player.Backpack
  5258. Torso = Character.Torso
  5259. Head = Character.Head
  5260. Humanoid = Character.Humanoid
  5261. m = Instance.new("Model", Character)
  5262. LeftArm = Character["Left Arm"]
  5263. LeftLeg = Character["Left Leg"]
  5264. RightArm = Character["Right Arm"]
  5265. RightLeg = Character["Right Leg"]
  5266. LS = Torso["Left Shoulder"]
  5267. LH = Torso["Left Hip"]
  5268. RS = Torso["Right Shoulder"]
  5269. RH = Torso["Right Hip"]
  5270. Face = Head.face
  5271. Neck = Torso.Neck
  5272. it = Instance.new
  5273. attacktype = 1
  5274. vt = Vector3.new
  5275. cf = CFrame.new
  5276. euler = CFrame.fromEulerAnglesXYZ
  5277. angles = CFrame.Angles
  5278. cloaked = false
  5279. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  5280. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  5281. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  5282. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  5283. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  5284. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  5285. RootPart = Character.HumanoidRootPart
  5286. RootJoint = RootPart.RootJoint
  5287. RootCF = euler(-1.57, 0, 3.14)
  5288. attack = false
  5289. attackdebounce = false
  5290. deb = false
  5291. equipped = true
  5292. hand = false
  5293. MMouse = nil
  5294. combo = 0
  5295. mana = 0
  5296. trispeed = 0.2
  5297. attackmode = "none"
  5298. local idle = 0
  5299. local Anim = "Idle"
  5300. local Effects = {}
  5301. local gun = false
  5302. local shoot = false
  5303. local sine = 0
  5304. local change = 1
  5305. player = nil
  5306. local toggleTag = true
  5307. local txt = Instance.new("BillboardGui", Head)
  5308. txt.Adornee = nil
  5309. txt.Name = "NameDetect"
  5310. txt.Size = UDim2.new(4, 0, 1.2, 0)
  5311. txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
  5312. local text = Instance.new("TextLabel", txt)
  5313. text.Size = UDim2.new(5, 0, 3.5, 0)
  5314. text.FontSize = "Size8"
  5315. text.TextScaled = true
  5316. text.TextTransparency = 0
  5317. text.BackgroundTransparency = 1
  5318. text.TextTransparency = 0
  5319. text.TextStrokeTransparency = 0
  5320. text.Font = "Fantasy"
  5321. text.TextStrokeColor3 = Color3.new(1, 0, 0)
  5322. text.TextColor3 = Color3.new(0, 0, 0)
  5323. text.Text = "Blood maker"
  5324. function RecolorTextAndRename(name, col1, col2)
  5325. text.TextStrokeColor3 = col2
  5326. text.TextColor3 = col1
  5327. text.Text = name
  5328. end
  5329. mouse = Player:GetMouse()
  5330. RSH, LSH = nil, nil
  5331. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  5332. RW.Name = "Right Shoulder"
  5333. LW.Name = "Left Shoulder"
  5334. LH = Torso["Left Hip"]
  5335. RH = Torso["Right Hip"]
  5336. TorsoColor = Torso.BrickColor
  5337. function NoOutline(Part)
  5338. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  5339. end
  5340. player = Player
  5341. ch = Character
  5342. RSH = ch.Torso["Right Shoulder"]
  5343. LSH = ch.Torso["Left Shoulder"]
  5344. RSH.Parent = nil
  5345. LSH.Parent = nil
  5346. RW.Name = "Right Shoulder"
  5347. RW.Part0 = ch.Torso
  5348. RW.C0 = cf(1.5, 0.5, 0)
  5349. RW.C1 = cf(0, 0.5, 0)
  5350. RW.Part1 = ch["Right Arm"]
  5351. RW.Parent = ch.Torso
  5352. LW.Name = "Left Shoulder"
  5353. LW.Part0 = ch.Torso
  5354. LW.C0 = cf(-1.5, 0.5, 0)
  5355. LW.C1 = cf(0, 0.5, 0)
  5356. LW.Part1 = ch["Left Arm"]
  5357. LW.Parent = ch.Torso
  5358. local Stats = Instance.new("BoolValue")
  5359. Stats.Name = "Stats"
  5360. Stats.Parent = Character
  5361. local Atk = Instance.new("NumberValue")
  5362. Atk.Name = "Damage"
  5363. Atk.Parent = Stats
  5364. Atk.Value = 1
  5365. local Def = Instance.new("NumberValue")
  5366. Def.Name = "Defense"
  5367. Def.Parent = Stats
  5368. Def.Value = 1
  5369. local Speed = Instance.new("NumberValue")
  5370. Speed.Name = "Speed"
  5371. Speed.Parent = Stats
  5372. Speed.Value = 1
  5373. local Mvmt = Instance.new("NumberValue")
  5374. Mvmt.Name = "Movement"
  5375. Mvmt.Parent = Stats
  5376. Mvmt.Value = 1
  5377. local donum = 0
  5378. function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  5379. local fp = it("Part")
  5380. fp.formFactor = formfactor
  5381. fp.Parent = parent
  5382. fp.Reflectance = reflectance
  5383. fp.Transparency = transparency
  5384. fp.CanCollide = false
  5385. fp.Locked = true
  5386. fp.BrickColor = brickcolor
  5387. fp.Name = name
  5388. fp.Size = size
  5389. fp.Position = Torso.Position
  5390. NoOutline(fp)
  5391. fp.Material = "SmoothPlastic"
  5392. fp:BreakJoints()
  5393. return fp
  5394. end
  5395. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  5396. local mesh = it(Mesh)
  5397. mesh.Parent = part
  5398. if Mesh == "SpecialMesh" then
  5399. mesh.MeshType = meshtype
  5400. if meshid ~= "nil" then
  5401. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  5402. end
  5403. end
  5404. mesh.Offset = offset
  5405. mesh.Scale = scale
  5406. return mesh
  5407. end
  5408. function weld(parent, part0, part1, c0)
  5409. local weld = it("Weld")
  5410. weld.Parent = parent
  5411. weld.Part0 = part0
  5412. weld.Part1 = part1
  5413. weld.C0 = c0
  5414. return weld
  5415. end
  5416. local Color1 = Torso.BrickColor
  5417. local bodvel = Instance.new("BodyVelocity")
  5418. local bg = Instance.new("BodyGyro")
  5419. function swait(num)
  5420. if num == 0 or num == nil then
  5421. game:service("RunService").Stepped:wait(0)
  5422. else
  5423. for i = 0, num do
  5424. game:service("RunService").Stepped:wait(0)
  5425. end
  5426. end
  5427. end
  5428. local r = 255
  5429. local g = 0
  5430. local b = 0
  5431. coroutine.resume(coroutine.create(function()
  5432. while wait() do
  5433. for i = 0, 50.8 do
  5434. swait()
  5435. g = g + 5
  5436. end
  5437. for i = 0, 50.8 do
  5438. swait()
  5439. r = r - 5
  5440. end
  5441. for i = 0, 50.8 do
  5442. swait()
  5443. b = b + 5
  5444. end
  5445. for i = 0, 50.8 do
  5446. swait()
  5447. g = g - 5
  5448. end
  5449. for i = 0, 50.8 do
  5450. swait()
  5451. r = r + 5
  5452. end
  5453. for i = 0, 50.8 do
  5454. swait()
  5455. b = b - 5
  5456. end
  5457. end
  5458. end))
  5459. function so(id, par, vol, pit)
  5460. coroutine.resume(coroutine.create(function()
  5461. local sou = Instance.new("Sound", par or workspace)
  5462. sou.Volume = vol
  5463. sou.Pitch = pit or 1
  5464. sou.SoundId = id
  5465. swait()
  5466. sou:play()
  5467. game:GetService("Debris"):AddItem(sou, 6)
  5468. end))
  5469. end
  5470. function clerp(a, b, t)
  5471. local qa = {
  5472. QuaternionFromCFrame(a)
  5473. }
  5474. local qb = {
  5475. QuaternionFromCFrame(b)
  5476. }
  5477. local ax, ay, az = a.x, a.y, a.z
  5478. local bx, by, bz = b.x, b.y, b.z
  5479. local _t = 1 - t
  5480. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  5481. end
  5482. function QuaternionFromCFrame(cf)
  5483. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  5484. local trace = m00 + m11 + m22
  5485. if trace > 0 then
  5486. local s = math.sqrt(1 + trace)
  5487. local recip = 0.5 / s
  5488. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  5489. else
  5490. local i = 0
  5491. if m00 < m11 then
  5492. i = 1
  5493. end
  5494. if m22 > (i == 0 and m00 or m11) then
  5495. i = 2
  5496. end
  5497. if i == 0 then
  5498. local s = math.sqrt(m00 - m11 - m22 + 1)
  5499. local recip = 0.5 / s
  5500. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  5501. elseif i == 1 then
  5502. local s = math.sqrt(m11 - m22 - m00 + 1)
  5503. local recip = 0.5 / s
  5504. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  5505. elseif i == 2 then
  5506. local s = math.sqrt(m22 - m00 - m11 + 1)
  5507. local recip = 0.5 / s
  5508. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  5509. end
  5510. end
  5511. end
  5512. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  5513. local xs, ys, zs = x + x, y + y, z + z
  5514. local wx, wy, wz = w * xs, w * ys, w * zs
  5515. local xx = x * xs
  5516. local xy = x * ys
  5517. local xz = x * zs
  5518. local yy = y * ys
  5519. local yz = y * zs
  5520. local zz = z * zs
  5521. 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))
  5522. end
  5523. function QuaternionSlerp(a, b, t)
  5524. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  5525. local startInterp, finishInterp
  5526. if cosTheta >= 1.0E-4 then
  5527. if 1 - cosTheta > 1.0E-4 then
  5528. local theta = math.acos(cosTheta)
  5529. local invSinTheta = 1 / math.sin(theta)
  5530. startInterp = math.sin((1 - t) * theta) * invSinTheta
  5531. finishInterp = math.sin(t * theta) * invSinTheta
  5532. else
  5533. startInterp = 1 - t
  5534. finishInterp = t
  5535. end
  5536. elseif 1 + cosTheta > 1.0E-4 then
  5537. local theta = math.acos(-cosTheta)
  5538. local invSinTheta = 1 / math.sin(theta)
  5539. startInterp = math.sin((t - 1) * theta) * invSinTheta
  5540. finishInterp = math.sin(t * theta) * invSinTheta
  5541. else
  5542. startInterp = t - 1
  5543. finishInterp = t
  5544. end
  5545. 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
  5546. end
  5547. local CFrameFromTopBack = function(at, top, back)
  5548. local right = top:Cross(back)
  5549. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  5550. end
  5551. function Triangle(a, b, c)
  5552. local edg1 = (c - a):Dot((b - a).unit)
  5553. local edg2 = (a - b):Dot((c - b).unit)
  5554. local edg3 = (b - c):Dot((a - c).unit)
  5555. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  5556. a, b = a, b
  5557. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  5558. a, b, c = b, c, a
  5559. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  5560. a, b, c = c, a, b
  5561. else
  5562. assert(false, "unreachable")
  5563. end
  5564. local len1 = (c - a):Dot((b - a).unit)
  5565. local len2 = (b - a).magnitude - len1
  5566. local width = (a + (b - a).unit * len1 - c).magnitude
  5567. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  5568. local list = {}
  5569. if len1 > 0.01 then
  5570. local w1 = Instance.new("WedgePart", m)
  5571. game:GetService("Debris"):AddItem(w1, 5)
  5572. w1.Material = "SmoothPlastic"
  5573. w1.FormFactor = "Custom"
  5574. w1.BrickColor = BrickColor.new("Really red")
  5575. w1.Transparency = 0
  5576. w1.Reflectance = 0
  5577. w1.Material = "SmoothPlastic"
  5578. w1.CanCollide = false
  5579. local l1 = Instance.new("PointLight", w1)
  5580. l1.Color = Color3.new(170, 0, 0)
  5581. NoOutline(w1)
  5582. local sz = Vector3.new(0.2, width, len1)
  5583. w1.Size = sz
  5584. local sp = Instance.new("SpecialMesh", w1)
  5585. sp.MeshType = "Wedge"
  5586. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  5587. w1:BreakJoints()
  5588. w1.Anchored = true
  5589. w1.Parent = workspace
  5590. w1.Transparency = 0.7
  5591. table.insert(Effects, {
  5592. w1,
  5593. "Disappear",
  5594. 0.01
  5595. })
  5596. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  5597. table.insert(list, w1)
  5598. end
  5599. if len2 > 0.01 then
  5600. local w2 = Instance.new("WedgePart", m)
  5601. game:GetService("Debris"):AddItem(w2, 5)
  5602. w2.Material = "SmoothPlastic"
  5603. w2.FormFactor = "Custom"
  5604. w2.BrickColor = BrickColor.new("Really red")
  5605. w2.Transparency = 0
  5606. w2.Reflectance = 0
  5607. w2.Material = "SmoothPlastic"
  5608. w2.CanCollide = false
  5609. local l2 = Instance.new("PointLight", w2)
  5610. l2.Color = Color3.new(170, 0, 0)
  5611. NoOutline(w2)
  5612. local sz = Vector3.new(0.2, width, len2)
  5613. w2.Size = sz
  5614. local sp = Instance.new("SpecialMesh", w2)
  5615. sp.MeshType = "Wedge"
  5616. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  5617. w2:BreakJoints()
  5618. w2.Anchored = true
  5619. w2.Parent = workspace
  5620. w2.Transparency = 0.7
  5621. table.insert(Effects, {
  5622. w2,
  5623. "Disappear",
  5624. 0.01
  5625. })
  5626. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  5627. table.insert(list, w2)
  5628. end
  5629. return unpack(list)
  5630. end
  5631. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  5632. if hit.Parent == nil then
  5633. return
  5634. end
  5635. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  5636. for _, v in pairs(hit.Parent:children()) do
  5637. if v:IsA("Humanoid") then
  5638. h = v
  5639. end
  5640. end
  5641. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  5642. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  5643. return
  5644. end
  5645. local c = Create("ObjectValue")({
  5646. Name = "creator",
  5647. Value = game:service("Players").LocalPlayer,
  5648. Parent = h
  5649. })
  5650. game:GetService("Debris"):AddItem(c, 0.5)
  5651. if HitSound ~= nil and HitPitch ~= nil then
  5652. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  5653. end
  5654. local Damage = math.random(minim, maxim)
  5655. local blocked = false
  5656. local block = hit.Parent:findFirstChild("Block")
  5657. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  5658. blocked = true
  5659. block.Value = block.Value - 1
  5660. print(block.Value)
  5661. end
  5662. if blocked == false then
  5663. HitHealth = h.Health
  5664. h.Health = h.Health - Damage
  5665. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  5666. print("gained kill")
  5667. end
  5668. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  5669. else
  5670. h.Health = h.Health - Damage / 2
  5671. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  5672. end
  5673. if Type == "Knockdown" then
  5674. local hum = hit.Parent.Humanoid
  5675. hum.PlatformStand = true
  5676. coroutine.resume(coroutine.create(function(HHumanoid)
  5677. swait(1)
  5678. HHumanoid.PlatformStand = false
  5679. end), hum)
  5680. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  5681. local bodvol = Create("BodyVelocity")({
  5682. velocity = angle * knockback,
  5683. P = 5000,
  5684. maxForce = Vector3.new(8000, 8000, 8000),
  5685. Parent = hit
  5686. })
  5687. local rl = Create("BodyAngularVelocity")({
  5688. P = 3000,
  5689. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  5690. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  5691. Parent = hit
  5692. })
  5693. game:GetService("Debris"):AddItem(bodvol, 0.5)
  5694. game:GetService("Debris"):AddItem(rl, 0.5)
  5695. elseif Type == "Normal" then
  5696. local vp = Create("BodyVelocity")({
  5697. P = 500,
  5698. maxForce = Vector3.new(math.huge, 0, math.huge),
  5699. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  5700. })
  5701. if knockback > 0 then
  5702. vp.Parent = hit.Parent.Head
  5703. end
  5704. game:GetService("Debris"):AddItem(vp, 0.5)
  5705. elseif Type == "Up" then
  5706. local bodyVelocity = Create("BodyVelocity")({
  5707. velocity = Vector3.new(0, 20, 0),
  5708. P = 5000,
  5709. maxForce = Vector3.new(8000, 8000, 8000),
  5710. Parent = hit
  5711. })
  5712. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  5713. local bodyVelocity = Create("BodyVelocity")({
  5714. velocity = Vector3.new(0, 20, 0),
  5715. P = 5000,
  5716. maxForce = Vector3.new(8000, 8000, 8000),
  5717. Parent = hit
  5718. })
  5719. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  5720. elseif Type == "Leech" then
  5721. local hum = hit.Parent.Humanoid
  5722. if hum ~= nil then
  5723. for i = 0, 2 do
  5724. 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)
  5725. end
  5726. Humanoid.Health = Humanoid.Health + 10
  5727. end
  5728. elseif Type == "UpKnock" then
  5729. local hum = hit.Parent.Humanoid
  5730. hum.PlatformStand = true
  5731. if hum ~= nil then
  5732. hitr = true
  5733. end
  5734. coroutine.resume(coroutine.create(function(HHumanoid)
  5735. swait(5)
  5736. HHumanoid.PlatformStand = false
  5737. hitr = false
  5738. end), hum)
  5739. local bodyVelocity = Create("BodyVelocity")({
  5740. velocity = Vector3.new(0, 20, 0),
  5741. P = 5000,
  5742. maxForce = Vector3.new(8000, 8000, 8000),
  5743. Parent = hit
  5744. })
  5745. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  5746. local bodyVelocity = Create("BodyVelocity")({
  5747. velocity = Vector3.new(0, 20, 0),
  5748. P = 5000,
  5749. maxForce = Vector3.new(8000, 8000, 8000),
  5750. Parent = hit
  5751. })
  5752. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  5753. elseif Type == "Snare" then
  5754. local bp = Create("BodyPosition")({
  5755. P = 2000,
  5756. D = 100,
  5757. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  5758. position = hit.Parent.Torso.Position,
  5759. Parent = hit.Parent.Torso
  5760. })
  5761. game:GetService("Debris"):AddItem(bp, 1)
  5762. elseif Type == "Slashnare" then
  5763. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07)
  5764. for i = 1, math.random(4, 5) do
  5765. 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)
  5766. end
  5767. local bp = Create("BodyPosition")({
  5768. P = 2000,
  5769. D = 100,
  5770. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  5771. position = hit.Parent.Torso.Position,
  5772. Parent = hit.Parent.Torso
  5773. })
  5774. game:GetService("Debris"):AddItem(bp, 1)
  5775. elseif Type == "Spike" then
  5776. CreateBigIceSword(hit.Parent.Torso.CFrame)
  5777. local bp = Create("BodyPosition")({
  5778. P = 2000,
  5779. D = 100,
  5780. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  5781. position = hit.Parent.Torso.Position,
  5782. Parent = hit.Parent.Torso
  5783. })
  5784. game:GetService("Debris"):AddItem(bp, 1)
  5785. elseif Type == "Freeze" then
  5786. local BodPos = Create("BodyPosition")({
  5787. P = 50000,
  5788. D = 1000,
  5789. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  5790. position = hit.Parent.Torso.Position,
  5791. Parent = hit.Parent.Torso
  5792. })
  5793. local BodGy = Create("BodyGyro")({
  5794. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  5795. P = 20000,
  5796. Parent = hit.Parent.Torso,
  5797. cframe = hit.Parent.Torso.CFrame
  5798. })
  5799. hit.Parent.Torso.Anchored = true
  5800. coroutine.resume(coroutine.create(function(Part)
  5801. swait(1.5)
  5802. Part.Anchored = false
  5803. end), hit.Parent.Torso)
  5804. game:GetService("Debris"):AddItem(BodPos, 3)
  5805. game:GetService("Debris"):AddItem(BodGy, 3)
  5806. end
  5807. local debounce = Create("BoolValue")({
  5808. Name = "DebounceHit",
  5809. Parent = hit.Parent,
  5810. Value = true
  5811. })
  5812. game:GetService("Debris"):AddItem(debounce, Delay)
  5813. c = Instance.new("ObjectValue")
  5814. c.Name = "creator"
  5815. c.Value = Player
  5816. c.Parent = h
  5817. game:GetService("Debris"):AddItem(c, 0.5)
  5818. end
  5819. end
  5820. function ShowDamage(Pos, Text, Time, Color)
  5821. local Rate = 0.03333333333333333
  5822. local Pos = Pos or Vector3.new(0, 0, 0)
  5823. local Text = Text or ""
  5824. local Time = Time or 2
  5825. local Color = Color or Color3.new(1, 0, 1)
  5826. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  5827. EffectPart.Anchored = true
  5828. local BillboardGui = Create("BillboardGui")({
  5829. Size = UDim2.new(3, 0, 3, 0),
  5830. Adornee = EffectPart,
  5831. Parent = EffectPart
  5832. })
  5833. local TextLabel = Create("TextLabel")({
  5834. BackgroundTransparency = 1,
  5835. Size = UDim2.new(1, 0, 1, 0),
  5836. Text = Text,
  5837. TextColor3 = Color,
  5838. TextScaled = true,
  5839. Font = Enum.Font.ArialBold,
  5840. Parent = BillboardGui
  5841. })
  5842. game.Debris:AddItem(EffectPart, Time + 0.1)
  5843. EffectPart.Parent = game:GetService("Workspace")
  5844. delay(0, function()
  5845. local Frames = Time / Rate
  5846. for Frame = 1, Frames do
  5847. wait(Rate)
  5848. local Percent = Frame / Frames
  5849. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  5850. TextLabel.TextTransparency = Percent
  5851. end
  5852. if EffectPart and EffectPart.Parent then
  5853. EffectPart:Destroy()
  5854. end
  5855. end)
  5856. end
  5857. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  5858. for _, c in pairs(workspace:children()) do
  5859. local hum = c:findFirstChildOfClass("Humanoid")
  5860. if hum ~= nil then
  5861. local head = c:findFirstChild("Head")
  5862. if head ~= nil then
  5863. local targ = head.Position - Part.Position
  5864. local mag = targ.magnitude
  5865. if magni >= mag and c.Name ~= Player.Name then
  5866. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  5867. end
  5868. end
  5869. end
  5870. end
  5871. end
  5872. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  5873. for _, c in pairs(workspace:children()) do
  5874. local hum = c:findFirstChild("Humanoid")
  5875. if hum ~= nil then
  5876. local head = c:findFirstChild("Torso")
  5877. if head ~= nil then
  5878. local targ = head.Position - Part.Position
  5879. local mag = targ.magnitude
  5880. if magni >= mag and c.Name ~= Player.Name then
  5881. MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
  5882. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  5883. end
  5884. end
  5885. end
  5886. end
  5887. end
  5888. function rayCast(Pos, Dir, Max, Ignore)
  5889. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  5890. end
  5891. function SkullEffect(brickcolor, cframe, x1, y1, z1, delay)
  5892. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  5893. prt.Anchored = true
  5894. prt.CFrame = cframe
  5895. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  5896. game:GetService("Debris"):AddItem(prt, 2)
  5897. CF = prt.CFrame
  5898. coroutine.resume(coroutine.create(function(Part, Mesh, TehCF)
  5899. for i = 0, 1, 0.2 do
  5900. wait()
  5901. Part.CFrame = CF * cf(0, 0, -0.4)
  5902. end
  5903. for i = 0, 1, delay do
  5904. wait()
  5905. Mesh.Scale = Mesh.Scale
  5906. end
  5907. for i = 0, 1, 0.1 do
  5908. wait()
  5909. Part.Transparency = i
  5910. end
  5911. Part.Parent = nil
  5912. end), prt, msh, CF)
  5913. end
  5914. function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5915. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  5916. prt.Anchored = true
  5917. prt.Material = "Neon"
  5918. prt.CFrame = cframe
  5919. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  5920. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  5921. game:GetService("Debris"):AddItem(prt, 5)
  5922. coroutine.resume(coroutine.create(function(Part, Mesh)
  5923. for i = 0, 1, delay do
  5924. swait()
  5925. Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  5926. Part.Transparency = i
  5927. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  5928. end
  5929. Part.Parent = nil
  5930. end), prt, msh)
  5931. end
  5932. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  5933. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  5934. prt.Anchored = true
  5935. prt.Material = "Neon"
  5936. prt.CFrame = cframe
  5937. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  5938. game:GetService("Debris"):AddItem(prt, 5)
  5939. coroutine.resume(coroutine.create(function(Part, Mesh)
  5940. local rtype = rottype
  5941. for i = 0, 1, delay do
  5942. swait()
  5943. if rtype == 1 then
  5944. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  5945. elseif rtype == 2 then
  5946. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  5947. end
  5948. Part.Transparency = i
  5949. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  5950. end
  5951. Part.Parent = nil
  5952. end), prt, msh)
  5953. end
  5954. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5955. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  5956. prt.Anchored = true
  5957. prt.CFrame = cframe
  5958. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  5959. msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  5960. game:GetService("Debris"):AddItem(prt, 5)
  5961. coroutine.resume(coroutine.create(function(Part, Mesh)
  5962. for i = 0, 1, delay do
  5963. wait()
  5964. Part.Transparency = i
  5965. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  5966. end
  5967. Part.Parent = nil
  5968. end), prt, msh)
  5969. end
  5970. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  5971. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  5972. prt.Anchored = true
  5973. prt.Material = "Neon"
  5974. prt.CFrame = cframe
  5975. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  5976. game:GetService("Debris"):AddItem(prt, 5)
  5977. coroutine.resume(coroutine.create(function(Part, Mesh)
  5978. local rtype = rottype
  5979. for i = 0, 1, delay do
  5980. swait()
  5981. if rtype == 1 then
  5982. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  5983. elseif rtype == 2 then
  5984. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  5985. end
  5986. Part.Transparency = i
  5987. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  5988. end
  5989. Part.Parent = nil
  5990. end), prt, msh)
  5991. end
  5992. function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  5993. local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  5994. prt.Anchored = true
  5995. prt.Material = "Neon"
  5996. prt.CFrame = cframe
  5997. local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  5998. local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  5999. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  6000. game:GetService("Debris"):AddItem(prt, 5)
  6001. coroutine.resume(coroutine.create(function(Part, Mesh)
  6002. local rtype = rottype
  6003. for i = 0, 1, delay do
  6004. swait()
  6005. if rtype == 1 then
  6006. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  6007. elseif rtype == 2 then
  6008. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  6009. end
  6010. dec.Transparency = i
  6011. dec2.Transparency = i
  6012. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  6013. end
  6014. Part.Parent = nil
  6015. end), prt, msh)
  6016. end
  6017. function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  6018. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6019. prt.Anchored = true
  6020. prt.Material = "Neon"
  6021. prt.CFrame = cframe
  6022. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  6023. game:GetService("Debris"):AddItem(prt, 5)
  6024. coroutine.resume(coroutine.create(function(Part, Mesh)
  6025. local rtype = rottype
  6026. for i = 0, 1, delay do
  6027. swait()
  6028. if rtype == 1 then
  6029. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  6030. elseif rtype == 2 then
  6031. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  6032. end
  6033. prt.Transparency = i
  6034. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  6035. end
  6036. Part.Parent = nil
  6037. end), prt, msh)
  6038. end
  6039. function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype)
  6040. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6041. prt.Anchored = true
  6042. prt.Material = "Neon"
  6043. prt.CFrame = cframe
  6044. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
  6045. game:GetService("Debris"):AddItem(prt, 5)
  6046. coroutine.resume(coroutine.create(function(Part, Mesh)
  6047. local rtype = rottype
  6048. for i = 0, 1, delay do
  6049. swait()
  6050. if rtype == 1 then
  6051. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0)
  6052. elseif rtype == 2 then
  6053. prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0)
  6054. end
  6055. prt.Transparency = i
  6056. Mesh.Scale = Mesh.Scale + vt(x3, 0, z3)
  6057. end
  6058. Part.Parent = nil
  6059. end), prt, msh)
  6060. end
  6061. function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype)
  6062. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6063. prt.Anchored = true
  6064. prt.Material = "Neon"
  6065. prt.CFrame = cframe
  6066. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  6067. game:GetService("Debris"):AddItem(prt, 5)
  6068. coroutine.resume(coroutine.create(function(Part, Mesh)
  6069. local rtype = rottype
  6070. for i = 0, 1, delay do
  6071. swait()
  6072. if rtype == 1 then
  6073. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  6074. elseif rtype == 2 then
  6075. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  6076. end
  6077. prt.Transparency = i
  6078. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  6079. end
  6080. Part.Parent = nil
  6081. end), prt, msh)
  6082. end
  6083. function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  6084. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6085. prt.Anchored = true
  6086. prt.Material = "Neon"
  6087. prt.CFrame = cframe
  6088. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  6089. game:GetService("Debris"):AddItem(prt, 5)
  6090. coroutine.resume(coroutine.create(function(Part, Mesh)
  6091. local rtype = rottype
  6092. for i = 0, 1, delay do
  6093. swait()
  6094. if rtype == 1 then
  6095. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  6096. elseif rtype == 2 then
  6097. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  6098. end
  6099. prt.Transparency = i
  6100. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  6101. end
  6102. Part.Parent = nil
  6103. end), prt, msh)
  6104. end
  6105. function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  6106. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6107. prt.Anchored = false
  6108. prt.CFrame = cframe
  6109. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  6110. local wld = weld(prt, prt, Parent, cframe)
  6111. game:GetService("Debris"):AddItem(prt, 5)
  6112. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  6113. for i = 0, 1, delay do
  6114. wait()
  6115. Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe
  6116. Part.Transparency = i
  6117. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  6118. end
  6119. Part.Parent = nil
  6120. end), prt, msh, wld)
  6121. end
  6122. function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  6123. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6124. prt.Anchored = false
  6125. prt.CFrame = cframe
  6126. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  6127. local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0))
  6128. game:GetService("Debris"):AddItem(prt, 5)
  6129. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  6130. for i = 0, 1, delay do
  6131. wait()
  6132. Weld.C0 = euler(i * 20, 0, 0)
  6133. Part.Transparency = i
  6134. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  6135. end
  6136. Part.Parent = nil
  6137. end), prt, msh, wld)
  6138. end
  6139. function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  6140. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6141. prt.Anchored = true
  6142. prt.CFrame = cframe
  6143. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  6144. game:GetService("Debris"):AddItem(prt, 2)
  6145. coroutine.resume(coroutine.create(function(Part, Mesh)
  6146. for i = 0, 1, delay do
  6147. wait()
  6148. Part.CFrame = Part.CFrame
  6149. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  6150. local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6151. prt2.Anchored = true
  6152. prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  6153. local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  6154. game:GetService("Debris"):AddItem(prt2, 2)
  6155. coroutine.resume(coroutine.create(function(Part, Mesh)
  6156. for i = 0, 1, 0.1 do
  6157. wait()
  6158. Part.CFrame = Part.CFrame * cf(0, 0.5, 0)
  6159. end
  6160. Part.Parent = nil
  6161. end), prt2, msh2)
  6162. end
  6163. for i = 0, 1, delay * 2 do
  6164. wait()
  6165. Part.CFrame = Part.CFrame
  6166. Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i)
  6167. end
  6168. Part.Parent = nil
  6169. end), prt, msh)
  6170. end
  6171. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  6172. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6173. prt.Anchored = true
  6174. prt.CFrame = cframe
  6175. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  6176. game:GetService("Debris"):AddItem(prt, 2)
  6177. coroutine.resume(coroutine.create(function(Part, Mesh)
  6178. for i = 0, 1, delay do
  6179. wait()
  6180. Part.CFrame = Part.CFrame
  6181. Part.Transparency = i
  6182. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  6183. end
  6184. Part.Parent = nil
  6185. end), prt, msh)
  6186. end
  6187. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  6188. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6189. prt.Anchored = true
  6190. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  6191. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  6192. game:GetService("Debris"):AddItem(prt, 2)
  6193. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  6194. CF = Part.CFrame
  6195. Numbb = 0
  6196. randnumb = math.random() / 10
  6197. rand1 = math.random() / 10
  6198. for i = 0, 1, rand1 do
  6199. wait()
  6200. CF = CF * cf(0, math.random() / 2, 0)
  6201. Part.CFrame = CF * euler(Numbb, 0, 0)
  6202. Part.Transparency = i
  6203. Numbb = Numbb + randnumb
  6204. end
  6205. Part.Parent = nil
  6206. end), prt, CF, Numbb, randnumb)
  6207. end
  6208. function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  6209. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6210. prt.Anchored = true
  6211. prt.CFrame = cframe
  6212. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
  6213. game:GetService("Debris"):AddItem(prt, 5)
  6214. coroutine.resume(coroutine.create(function(Part, Mesh)
  6215. for i = 0, 1, delay do
  6216. wait()
  6217. Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
  6218. Part.Transparency = i
  6219. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  6220. end
  6221. Part.Parent = nil
  6222. end), prt, msh)
  6223. end
  6224. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  6225. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6226. prt.Anchored = true
  6227. prt.CFrame = cframe
  6228. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  6229. game:GetService("Debris"):AddItem(prt, 2)
  6230. coroutine.resume(coroutine.create(function(Part, Mesh)
  6231. for i = 0, 1, delay do
  6232. wait()
  6233. Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
  6234. Part.Transparency = i
  6235. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  6236. end
  6237. Part.Parent = nil
  6238. end), prt, msh)
  6239. end
  6240. function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
  6241. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  6242. prt.Anchored = true
  6243. prt.CFrame = cframe * cf(x, y, z)
  6244. msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
  6245. game:GetService("Debris"):AddItem(prt, 5)
  6246. coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
  6247. local num = math.random()
  6248. local num2 = math.random(-3, 2) + math.random()
  6249. local numm = 0
  6250. for i = 0, 1, delay * 2 do
  6251. swait()
  6252. Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
  6253. Part.Transparency = i
  6254. numm = numm + 0.01
  6255. end
  6256. Part.Parent = nil
  6257. Mesh.Parent = nil
  6258. end), prt, msh, x, y, z)
  6259. end
  6260. function dmgstart(dmg, what)
  6261. hitcon = what.Touched:connect(function(hit)
  6262. local hum = hit.Parent:FindFirstChild("Humanoid")
  6263. if hum and not hum:IsDescendantOf(Character) then
  6264. hum:TakeDamage(dmg)
  6265. end
  6266. end)
  6267. end
  6268. function dmgstop()
  6269. hitcon:disconnect()
  6270. end
  6271. function Cloak()
  6272. Face.Parent = nil
  6273. cloaked = true
  6274. for _, v in pairs(Torso.Parent:children()) do
  6275. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  6276. coroutine.resume(coroutine.create(function()
  6277. for i = 0, 1, 0.2 do
  6278. wait()
  6279. v.Transparency = i
  6280. end
  6281. v.Transparency = 1
  6282. end))
  6283. end
  6284. if v.className == "Hat" then
  6285. hatp = v.Handle
  6286. coroutine.resume(coroutine.create(function(derp)
  6287. for i = 0, 1, 0.2 do
  6288. wait()
  6289. derp.Transparency = i
  6290. end
  6291. derp.Transparency = 1
  6292. end), hatp)
  6293. end
  6294. end
  6295. for _, v in pairs(m:children()) do
  6296. if v.className == "Part" then
  6297. coroutine.resume(coroutine.create(function()
  6298. for i = 0, 1, 0.2 do
  6299. wait()
  6300. v.Transparency = i
  6301. end
  6302. v.Transparency = 1
  6303. end))
  6304. end
  6305. end
  6306. end
  6307. function UnCloak()
  6308. so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
  6309. Face.Parent = Head
  6310. cloaked = false
  6311. for _, v in pairs(Torso.Parent:children()) do
  6312. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  6313. coroutine.resume(coroutine.create(function()
  6314. for i = 0, 1, 0.1 do
  6315. wait()
  6316. v.Transparency = v.Transparency - 0.1
  6317. end
  6318. v.Transparency = 0
  6319. end))
  6320. end
  6321. if v.className == "Hat" then
  6322. hatp = v.Handle
  6323. coroutine.resume(coroutine.create(function(derp)
  6324. for i = 0, 1, 0.1 do
  6325. wait()
  6326. derp.Transparency = derp.Transparency - 0.1
  6327. end
  6328. derp.Transparency = 0
  6329. end), hatp)
  6330. end
  6331. end
  6332. for _, v in pairs(m:children()) do
  6333. if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
  6334. coroutine.resume(coroutine.create(function()
  6335. for i = 0, 1, 0.1 do
  6336. wait()
  6337. v.Transparency = v.Transparency - 0.1
  6338. end
  6339. v.Transparency = 0
  6340. end))
  6341. v.Transparency = 0
  6342. end
  6343. end
  6344. end
  6345. local origcolor = BrickColor.new("Pastel light blue")
  6346. function Explode(rad, par, pitch, vol, mindam, maxdam)
  6347. local expart = Instance.new("Part", char)
  6348. local expart2 = Instance.new("Part", char)
  6349. local rin = Instance.new("Part", char)
  6350. local rin2 = Instance.new("Part", char)
  6351. local partMesh = Instance.new("SpecialMesh", expart)
  6352. partMesh.MeshType = "Sphere"
  6353. local partMesh2 = Instance.new("SpecialMesh", expart2)
  6354. partMesh2.MeshType = "Sphere"
  6355. local partMesh3 = Instance.new("SpecialMesh", rin)
  6356. partMesh3.MeshType = "Brick"
  6357. local partMesh4 = Instance.new("SpecialMesh", rin2)
  6358. partMesh4.MeshType = "Brick"
  6359. CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
  6360. partMesh.Scale = vt(rad, rad, rad)
  6361. expart.Size = vt(1, 1, 1)
  6362. expart.Transparency = 0
  6363. expart.Anchored = true
  6364. expart.Material = "Neon"
  6365. expart.BrickColor = bc("White")
  6366. expart.CFrame = par.CFrame
  6367. partMesh2.Scale = vt(rad, rad, rad)
  6368. expart2.Size = vt(1.15, 1.15, 1.15)
  6369. expart2.Transparency = 0.5
  6370. expart2.Anchored = true
  6371. expart2.Material = "Neon"
  6372. expart2.BrickColor = par.BrickColor
  6373. expart2.CFrame = par.CFrame
  6374. rin.Size = vt(1.15, 1.15, 1.15)
  6375. rin.Transparency = 1
  6376. rin.Anchored = true
  6377. rin.Material = "Neon"
  6378. rin.BrickColor = par.BrickColor
  6379. rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  6380. rin2.Size = vt(1.15, 1.15, 1.15)
  6381. rin2.Transparency = 1
  6382. rin2.Anchored = true
  6383. rin2.Material = "Neon"
  6384. rin2.BrickColor = par.BrickColor
  6385. rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  6386. partMesh3.Scale = vt(0, 1, 0)
  6387. partMesh4.Scale = vt(0, 1, 0)
  6388. local dec2 = Instance.new("Decal", rin)
  6389. dec2.Face = "Top"
  6390. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  6391. dec2.Parent = rin
  6392. local dec2b = dec2:Clone()
  6393. dec2b.Face = "Bottom"
  6394. dec2b.Parent = rin
  6395. local dec2a = Instance.new("Decal", rin2)
  6396. dec2a.Face = "Top"
  6397. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  6398. dec2a.Parent = rin2
  6399. local dec2ab = dec2a:Clone()
  6400. dec2ab.Face = "Bottom"
  6401. dec2ab.Parent = rin2
  6402. expart.CanCollide = false
  6403. expart2.CanCollide = false
  6404. rin.CanCollide = false
  6405. rin2.CanCollide = false
  6406. MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
  6407. local value = 1 * rad / 6.5
  6408. for i = 0, 199 do
  6409. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  6410. expart.CFrame = expart.CFrame
  6411. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  6412. expart2.CFrame = expart.CFrame
  6413. value = value - 0.035 * rad / 30
  6414. if value < 7.5 then
  6415. partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
  6416. rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
  6417. partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
  6418. rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
  6419. end
  6420. if value < 0 then
  6421. dec2.Transparency = dec2.Transparency + 0.025
  6422. dec2a.Transparency = dec2a.Transparency + 0.025
  6423. dec2b.Transparency = dec2b.Transparency + 0.025
  6424. dec2ab.Transparency = dec2ab.Transparency + 0.025
  6425. expart.Transparency = expart.Transparency + 0.025
  6426. expart2.Transparency = expart2.Transparency + 0.025
  6427. rin.Transparency = rin.Transparency + 0.025
  6428. rin2.Transparency = rin2.Transparency + 0.025
  6429. end
  6430. swait()
  6431. end
  6432. game:GetService("Debris"):AddItem(expart, 1)
  6433. game:GetService("Debris"):AddItem(expart2, 1)
  6434. game:GetService("Debris"):AddItem(rin, 1)
  6435. game:GetService("Debris"):AddItem(rin2, 1)
  6436. end
  6437. function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
  6438. local expart = Instance.new("Part", char)
  6439. local expart2 = Instance.new("Part", char)
  6440. local partMesh = Instance.new("SpecialMesh", expart)
  6441. partMesh.MeshType = "Sphere"
  6442. local partMesh2 = Instance.new("SpecialMesh", expart2)
  6443. partMesh2.MeshType = "Sphere"
  6444. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
  6445. partMesh.Scale = vt(rad, rad, rad)
  6446. expart.Size = vt(1, 1, 1)
  6447. expart.Transparency = 0
  6448. expart.Anchored = true
  6449. expart.Material = "Neon"
  6450. expart.BrickColor = bc("White")
  6451. expart.CFrame = par.CFrame
  6452. partMesh2.Scale = vt(rad, rad, rad)
  6453. expart2.Size = vt(1.15, 1.15, 1.15)
  6454. expart2.Transparency = 0.5
  6455. expart2.Anchored = true
  6456. expart2.Material = "Neon"
  6457. expart2.BrickColor = par.BrickColor
  6458. expart2.CFrame = par.CFrame
  6459. expart.CanCollide = false
  6460. expart2.CanCollide = false
  6461. MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
  6462. local value = 1 * rad / 6.5
  6463. for i = 0, 75 do
  6464. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  6465. expart.CFrame = expart.CFrame
  6466. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  6467. expart2.CFrame = expart.CFrame
  6468. value = value - 0.035 * rad / 5
  6469. if value < 0 then
  6470. value = 0
  6471. expart.Transparency = expart.Transparency + 0.05
  6472. expart2.Transparency = expart2.Transparency + 0.05
  6473. end
  6474. swait()
  6475. end
  6476. game:GetService("Debris"):AddItem(expart, 1)
  6477. game:GetService("Debris"):AddItem(expart2, 1)
  6478. end
  6479. function AreaDanger(rad, par, mindam, maxdam)
  6480. local expart = Instance.new("Part", char)
  6481. local partMesh = Instance.new("SpecialMesh", expart)
  6482. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  6483. partMesh.MeshType = "Sphere"
  6484. partMesh.Scale = vt(rad, rad, rad)
  6485. expart.Size = vt(1, 1, 1)
  6486. expart.Transparency = 0.5
  6487. expart.Anchored = true
  6488. expart.Material = "Neon"
  6489. expart.CanCollide = false
  6490. expart.BrickColor = par.BrickColor
  6491. expart.CFrame = par.CFrame
  6492. local value = 1 * rad / 5
  6493. MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
  6494. for i = 0, 14 do
  6495. wait()
  6496. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  6497. expart.CFrame = expart.CFrame
  6498. value = value - 0.035 * rad
  6499. if value < 0 then
  6500. value = 0
  6501. end
  6502. end
  6503. wait(0.25)
  6504. CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
  6505. wait(0.5)
  6506. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
  6507. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
  6508. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  6509. MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
  6510. for i = 0, 14 do
  6511. wait()
  6512. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  6513. expart.CFrame = expart.CFrame
  6514. value = value - 0.035 * rad / 2
  6515. end
  6516. expart.Transparency = 1
  6517. game:GetService("Debris"):AddItem(expart, 5)
  6518. end
  6519. function Swarmsplosions(negrad, rad, par, mindam, maxdam)
  6520. CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
  6521. CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
  6522. CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
  6523. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  6524. MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
  6525. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
  6526. for i = 0, 24 do
  6527. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 25, 0.005, math.random(1, 2))
  6528. end
  6529. for i = 0, 24 do
  6530. local expart = Instance.new("Part", char)
  6531. expart.Transparency = 1
  6532. expart.Anchored = true
  6533. expart.CanCollide = false
  6534. expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
  6535. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
  6536. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  6537. MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
  6538. MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
  6539. for i = 0, 9 do
  6540. MagicShockTrailAlt2(origcolor, expart.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 5, 0.05, math.random(1, 2))
  6541. end
  6542. game:GetService("Debris"):AddItem(expart, 2)
  6543. wait(0.1)
  6544. end
  6545. end
  6546. function EXterPlosion(par)
  6547. CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
  6548. CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
  6549. CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
  6550. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  6551. MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
  6552. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
  6553. MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
  6554. for i = 0, 24 do
  6555. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.5, -0.5, 500, 0.1, math.random(1, 2))
  6556. end
  6557. for i = 0, 24 do
  6558. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.25, -0.25, 50, 0.005, math.random(1, 2))
  6559. end
  6560. end
  6561. function ring(type, pos, scale, value)
  6562. local type = type
  6563. local rng = Instance.new("Part", char)
  6564. rng.Anchored = true
  6565. rng.BrickColor = origcolor
  6566. rng.CanCollide = false
  6567. rng.FormFactor = 3
  6568. rng.Name = "Ring"
  6569. rng.Size = Vector3.new(1, 1, 1)
  6570. rng.Transparency = 0
  6571. rng.TopSurface = 0
  6572. rng.BottomSurface = 0
  6573. rng.CFrame = pos
  6574. local rngm = Instance.new("SpecialMesh", rng)
  6575. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  6576. rngm.Scale = scale
  6577. local scaler2 = 1
  6578. if type == "Add" then
  6579. scaler2 = 1 * value
  6580. elseif type == "Divide" then
  6581. scaler2 = 1 / value
  6582. end
  6583. coroutine.resume(coroutine.create(function()
  6584. for i = 0, 10, 0.1 do
  6585. swait()
  6586. if type == "Add" then
  6587. scaler2 = scaler2 - 0.01 * value
  6588. elseif type == "Divide" then
  6589. scaler2 = scaler2 - 0.01 / value
  6590. end
  6591. rng.Transparency = rng.Transparency + 0.01
  6592. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  6593. end
  6594. rng:Destroy()
  6595. end))
  6596. end
  6597. function wave(type, pos, scale, value)
  6598. local type = type
  6599. local rng = Instance.new("Part", char)
  6600. rng.Anchored = true
  6601. rng.BrickColor = origcolor
  6602. rng.CanCollide = false
  6603. rng.FormFactor = 3
  6604. rng.Name = "Ring"
  6605. rng.Size = Vector3.new(1, 1, 1)
  6606. rng.Transparency = 0
  6607. rng.TopSurface = 0
  6608. rng.BottomSurface = 0
  6609. rng.CFrame = pos
  6610. local rngm = Instance.new("SpecialMesh", rng)
  6611. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  6612. rngm.Scale = scale
  6613. local scaler2 = 1
  6614. if type == "Add" then
  6615. scaler2 = 1 * value
  6616. elseif type == "Divide" then
  6617. scaler2 = 1 / value
  6618. end
  6619. coroutine.resume(coroutine.create(function()
  6620. for i = 0, 10, 0.1 do
  6621. swait()
  6622. if type == "Add" then
  6623. scaler2 = scaler2 - 0.01 * value
  6624. elseif type == "Divide" then
  6625. scaler2 = scaler2 - 0.01 / value
  6626. end
  6627. rng.Transparency = rng.Transparency + 0.01
  6628. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  6629. end
  6630. rng:Destroy()
  6631. end))
  6632. end
  6633. function wind(type, pos, scale, value, speed)
  6634. local type = type
  6635. local rng = Instance.new("Part", char)
  6636. rng.Anchored = true
  6637. rng.BrickColor = origcolor
  6638. rng.CanCollide = false
  6639. rng.FormFactor = 3
  6640. rng.Name = "Ring"
  6641. rng.Size = Vector3.new(1, 1, 1)
  6642. rng.Transparency = 0
  6643. rng.TopSurface = 0
  6644. rng.BottomSurface = 0
  6645. rng.CFrame = pos
  6646. local rngm = Instance.new("SpecialMesh", rng)
  6647. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  6648. rngm.Scale = scale
  6649. local scaler2 = 1
  6650. if type == "Add" then
  6651. scaler2 = 1 * value
  6652. elseif type == "Divide" then
  6653. scaler2 = 1 / value
  6654. end
  6655. coroutine.resume(coroutine.create(function()
  6656. for i = 0, 10, 0.1 do
  6657. swait()
  6658. if type == "Add" then
  6659. scaler2 = scaler2 - 0.01 * value
  6660. elseif type == "Divide" then
  6661. scaler2 = scaler2 - 0.01 / value
  6662. end
  6663. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  6664. rng.Transparency = rng.Transparency + 0.01
  6665. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  6666. end
  6667. rng:Destroy()
  6668. end))
  6669. end
  6670. function groundwind(type, pos, scale, value, speed)
  6671. local type = type
  6672. local rng = Instance.new("Part", char)
  6673. rng.Anchored = true
  6674. rng.BrickColor = origcolor
  6675. rng.CanCollide = false
  6676. rng.FormFactor = 3
  6677. rng.Name = "Ring"
  6678. rng.Size = Vector3.new(1, 1, 1)
  6679. rng.Transparency = 0
  6680. rng.TopSurface = 0
  6681. rng.BottomSurface = 0
  6682. rng.CFrame = pos
  6683. local rngm = Instance.new("SpecialMesh", rng)
  6684. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  6685. rngm.Scale = scale
  6686. local scaler2 = 1
  6687. if type == "Add" then
  6688. scaler2 = 1 * value
  6689. elseif type == "Divide" then
  6690. scaler2 = 1 / value
  6691. end
  6692. coroutine.resume(coroutine.create(function()
  6693. for i = 0, 10, 0.1 do
  6694. swait()
  6695. if type == "Add" then
  6696. scaler2 = scaler2 - 0.01 * value
  6697. elseif type == "Divide" then
  6698. scaler2 = scaler2 - 0.01 / value
  6699. end
  6700. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  6701. rng.Transparency = rng.Transparency + 0.01
  6702. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
  6703. end
  6704. rng:Destroy()
  6705. end))
  6706. end
  6707. function CameraManager()
  6708. if TwoD and not CamInterrupt then
  6709. if Humanoid.Health > 0 then
  6710. Camera.CameraSubject = Humanoid
  6711. Camera.CameraType = "Scriptable"
  6712. Humanoid.AutoRotate = false
  6713. if Booleans.GyroUse then
  6714. Directer.MaxTorque = Vec3(0, huge, 0)
  6715. else
  6716. Directer.MaxTorque = Vec3(0, 0, 0)
  6717. end
  6718. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  6719. if Booleans.CamFollow then
  6720. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  6721. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  6722. else
  6723. CPart.Position = RootPart.Position
  6724. end
  6725. else
  6726. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  6727. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  6728. end
  6729. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  6730. else
  6731. Camera.CameraSubject = Humanoid
  6732. Camera.CameraType = "Custom"
  6733. Controller.Disabled = false
  6734. end
  6735. end
  6736. end
  6737. function sphere(bonuspeed, type, pos, scale, value, color)
  6738. local type = type
  6739. local rng = Instance.new("Part", char)
  6740. rng.Anchored = true
  6741. rng.BrickColor = color
  6742. rng.CanCollide = false
  6743. rng.FormFactor = 3
  6744. rng.Name = "Ring"
  6745. rng.Material = "Neon"
  6746. rng.Size = Vector3.new(1, 1, 1)
  6747. rng.Transparency = 0
  6748. rng.TopSurface = 0
  6749. rng.BottomSurface = 0
  6750. rng.CFrame = pos
  6751. local rngm = Instance.new("SpecialMesh", rng)
  6752. rngm.MeshType = "Sphere"
  6753. rngm.Scale = scale
  6754. if rainbowmode == true then
  6755. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  6756. end
  6757. local scaler2 = 1
  6758. if type == "Add" then
  6759. scaler2 = 1 * value
  6760. elseif type == "Divide" then
  6761. scaler2 = 1 / value
  6762. end
  6763. coroutine.resume(coroutine.create(function()
  6764. for i = 0, 10 / bonuspeed, 0.1 do
  6765. swait()
  6766. if rainbowmode == true then
  6767. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  6768. end
  6769. if type == "Add" then
  6770. scaler2 = scaler2 - 0.01 * value / bonuspeed
  6771. elseif type == "Divide" then
  6772. scaler2 = scaler2 - 0.01 / value * bonuspeed
  6773. end
  6774. if chaosmode == true then
  6775. rng.BrickColor = BrickColor.random()
  6776. end
  6777. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  6778. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  6779. end
  6780. rng:Destroy()
  6781. end))
  6782. end
  6783. function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  6784. local type = type
  6785. local rng = Instance.new("Part", char)
  6786. rng.Anchored = true
  6787. rng.BrickColor = color
  6788. rng.CanCollide = false
  6789. rng.FormFactor = 3
  6790. rng.Name = "Ring"
  6791. rng.Material = "Neon"
  6792. rng.Size = Vector3.new(1, 1, 1)
  6793. rng.Transparency = 0
  6794. rng.TopSurface = 0
  6795. rng.BottomSurface = 0
  6796. rng.CFrame = pos
  6797. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  6798. local rngm = Instance.new("SpecialMesh", rng)
  6799. rngm.MeshType = "Sphere"
  6800. rngm.Scale = vt(x1, y1, z1)
  6801. if rainbowmode == true then
  6802. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  6803. end
  6804. local scaler2 = 1
  6805. local speeder = FastSpeed
  6806. if type == "Add" then
  6807. scaler2 = 1 * value
  6808. elseif type == "Divide" then
  6809. scaler2 = 1 / value
  6810. end
  6811. coroutine.resume(coroutine.create(function()
  6812. for i = 0, 10 / bonuspeed, 0.1 do
  6813. swait()
  6814. if rainbowmode == true then
  6815. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  6816. end
  6817. if type == "Add" then
  6818. scaler2 = scaler2 - 0.01 * value / bonuspeed
  6819. elseif type == "Divide" then
  6820. scaler2 = scaler2 - 0.01 / value * bonuspeed
  6821. end
  6822. if chaosmode == true then
  6823. rng.BrickColor = BrickColor.random()
  6824. end
  6825. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  6826. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  6827. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  6828. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  6829. end
  6830. rng:Destroy()
  6831. end))
  6832. end
  6833. function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  6834. local type = type
  6835. local rng = Instance.new("Part", char)
  6836. rng.Anchored = true
  6837. rng.BrickColor = color
  6838. rng.CanCollide = false
  6839. rng.FormFactor = 3
  6840. rng.Name = "Ring"
  6841. rng.Material = "Neon"
  6842. rng.Size = Vector3.new(1, 1, 1)
  6843. rng.Transparency = 1
  6844. rng.TopSurface = 0
  6845. rng.BottomSurface = 0
  6846. rng.CFrame = pos
  6847. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  6848. local rngm = Instance.new("SpecialMesh", rng)
  6849. rngm.MeshType = "Sphere"
  6850. rngm.Scale = vt(x1, y1, z1)
  6851. if rainbowmode == true then
  6852. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  6853. end
  6854. local scaler2 = 1
  6855. local speeder = FastSpeed
  6856. if type == "Add" then
  6857. scaler2 = 1 * value
  6858. elseif type == "Divide" then
  6859. scaler2 = 1 / value
  6860. end
  6861. coroutine.resume(coroutine.create(function()
  6862. for i = 0, 10 / bonuspeed, 0.1 do
  6863. swait()
  6864. if rainbowmode == true then
  6865. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  6866. end
  6867. if type == "Add" then
  6868. scaler2 = scaler2 - 0.01 * value / bonuspeed
  6869. elseif type == "Divide" then
  6870. scaler2 = scaler2 - 0.01 / value * bonuspeed
  6871. end
  6872. if chaosmode == true then
  6873. rng.BrickColor = BrickColor.random()
  6874. end
  6875. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  6876. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  6877. rng.Transparency = rng.Transparency - 0.01 * bonuspeed
  6878. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  6879. end
  6880. rng:Destroy()
  6881. end))
  6882. end
  6883. function dmg(dude)
  6884. if dude.Name ~= Character then
  6885. local bgf = Instance.new("BodyGyro", dude.Head)
  6886. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  6887. local val = Instance.new("BoolValue", dude)
  6888. val.Name = "IsHit"
  6889. local ds = coroutine.wrap(function()
  6890. dude:WaitForChild("Head"):BreakJoints()
  6891. wait(0.5)
  6892. targetted = nil
  6893. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  6894. coroutine.resume(coroutine.create(function()
  6895. for i, v in pairs(dude:GetChildren()) do
  6896. if v:IsA("Accessory") then
  6897. v:Destroy()
  6898. end
  6899. if v:IsA("Humanoid") then
  6900. v:Destroy()
  6901. end
  6902. if v:IsA("CharacterMesh") then
  6903. v:Destroy()
  6904. end
  6905. if v:IsA("Model") then
  6906. v:Destroy()
  6907. end
  6908. if v:IsA("Part") or v:IsA("MeshPart") then
  6909. for x, o in pairs(v:GetChildren()) do
  6910. if o:IsA("Decal") then
  6911. o:Destroy()
  6912. end
  6913. end
  6914. coroutine.resume(coroutine.create(function()
  6915. v.Material = "Neon"
  6916. v.CanCollide = false
  6917. local bld = Instance.new("ParticleEmitter", v)
  6918. bld.LightEmission = 1
  6919. bld.Texture = "rbxassetid://284205403"
  6920. bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
  6921. bld.Rate = 50
  6922. bld.Lifetime = NumberRange.new(1)
  6923. bld.Size = NumberSequence.new({
  6924. NumberSequenceKeypoint.new(0, 0.75, 0),
  6925. NumberSequenceKeypoint.new(1, 0, 0)
  6926. })
  6927. bld.Transparency = NumberSequence.new({
  6928. NumberSequenceKeypoint.new(0, 0, 0),
  6929. NumberSequenceKeypoint.new(1, 1, 0)
  6930. })
  6931. bld.Speed = NumberRange.new(0, 0)
  6932. bld.VelocitySpread = 50000
  6933. bld.Rotation = NumberRange.new(-500, 500)
  6934. bld.RotSpeed = NumberRange.new(-500, 500)
  6935. local sbs = Instance.new("BodyPosition", v)
  6936. sbs.P = 3000
  6937. sbs.D = 1000
  6938. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  6939. sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  6940. v.Color = Color3.new(1, 1, 1)
  6941. coroutine.resume(coroutine.create(function()
  6942. for i = 0, 49 do
  6943. swait(1)
  6944. v.Transparency = v.Transparency + 0.02
  6945. end
  6946. CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
  6947. bld.Speed = NumberRange.new(1, 5)
  6948. bld.Acceleration = vt(0, 10, 0)
  6949. wait(0.5)
  6950. bld.Enabled = false
  6951. wait(3)
  6952. v:Destroy()
  6953. dude:Destroy()
  6954. end))
  6955. end))
  6956. end
  6957. end
  6958. end))
  6959. end)
  6960. ds()
  6961. end
  6962. end
  6963. function FindNearestHead(Position, Distance, SinglePlayer)
  6964. if SinglePlayer then
  6965. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  6966. end
  6967. local List = {}
  6968. for i, v in pairs(workspace:GetChildren()) do
  6969. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  6970. table.insert(List, v)
  6971. end
  6972. end
  6973. return List
  6974. end
  6975. function FaceMouse()
  6976. Cam = workspace.CurrentCamera
  6977. return {
  6978. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  6979. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  6980. }
  6981. end
  6982. function FaceMouse2()
  6983. Cam = workspace.CurrentCamera
  6984. return {
  6985. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  6986. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  6987. }
  6988. end
  6989. local ModeOfGlitch = 1
  6990. local storehumanoidWS = 16
  6991. function ExtinctiveHeartbreak()
  6992. local targetted
  6993. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6994. targetted = mouse.Target.Parent
  6995. end
  6996. if targetted ~= nil then
  6997. attack = true
  6998. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  6999. for i = 0, 9 do
  7000. 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)
  7001. end
  7002. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really red"))
  7003. local originalpos = root.CFrame
  7004. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
  7005. for i = 0, 9 do
  7006. 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)
  7007. end
  7008. hum.WalkSpeed = 0
  7009. targetted.Head.Anchored = true
  7010. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really red"))
  7011. for i = 0, 2, 0.1 do
  7012. swait()
  7013. 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)), 0.4)
  7014. 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)), 0.4)
  7015. 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)), 0.4)
  7016. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  7017. 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)), 0.4)
  7018. 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)), 0.4)
  7019. end
  7020. coroutine.resume(coroutine.create(function()
  7021. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
  7022. bld.LightEmission = 0.1
  7023. bld.Texture = "rbxassetid://284205403"
  7024. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  7025. bld.Rate = 500
  7026. bld.Lifetime = NumberRange.new(1)
  7027. bld.Size = NumberSequence.new({
  7028. NumberSequenceKeypoint.new(0, 2, 0),
  7029. NumberSequenceKeypoint.new(1, 0, 0)
  7030. })
  7031. bld.Acceleration = vt(0, -25, 0)
  7032. bld.Transparency = NumberSequence.new({
  7033. NumberSequenceKeypoint.new(0, 0, 0),
  7034. NumberSequenceKeypoint.new(1, 0, 0)
  7035. })
  7036. bld.Speed = NumberRange.new(10, 50)
  7037. bld.EmissionDirection = "Front"
  7038. bld.VelocitySpread = 25
  7039. bld.Rotation = NumberRange.new(-500, 500)
  7040. bld.RotSpeed = NumberRange.new(-500, 500)
  7041. end))
  7042. coroutine.resume(coroutine.create(function()
  7043. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
  7044. bld.LightEmission = 0.1
  7045. bld.Texture = "rbxassetid://284205403"
  7046. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  7047. bld.Rate = 500
  7048. bld.Lifetime = NumberRange.new(1)
  7049. bld.Size = NumberSequence.new({
  7050. NumberSequenceKeypoint.new(0, 2, 0),
  7051. NumberSequenceKeypoint.new(1, 0, 0)
  7052. })
  7053. bld.Acceleration = vt(0, -25, 0)
  7054. bld.Transparency = NumberSequence.new({
  7055. NumberSequenceKeypoint.new(0, 0, 0),
  7056. NumberSequenceKeypoint.new(1, 0, 0)
  7057. })
  7058. bld.Speed = NumberRange.new(10, 50)
  7059. bld.EmissionDirection = "Front"
  7060. bld.VelocitySpread = 25
  7061. bld.Rotation = NumberRange.new(-500, 500)
  7062. bld.RotSpeed = NumberRange.new(-500, 500)
  7063. end))
  7064. CameraEnshaking(5, 5)
  7065. game:GetService("Debris"):AddItem(bld, 3)
  7066. dmg(targetted)
  7067. CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
  7068. for i = 0, 1, 0.1 do
  7069. swait()
  7070. 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)), 0.8)
  7071. 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)), 0.8)
  7072. 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)), 0.8)
  7073. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
  7074. 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)), 0.8)
  7075. 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)), 0.8)
  7076. end
  7077. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  7078. for i = 0, 9 do
  7079. 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)
  7080. end
  7081. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really red"))
  7082. root.CFrame = originalpos
  7083. for i = 0, 9 do
  7084. 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)
  7085. end
  7086. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really red"))
  7087. bld.Enabled = false
  7088. attack = false
  7089. hum.WalkSpeed = storehumanoidWS
  7090. end
  7091. end
  7092. function PureBomb()
  7093. attack = true
  7094. local orb = Instance.new("Part", char)
  7095. orb.Anchored = true
  7096. orb.BrickColor = BrickColor.new("Toothpaste")
  7097. orb.CanCollide = false
  7098. orb.FormFactor = 3
  7099. orb.Name = "Ring"
  7100. orb.Material = "Neon"
  7101. orb.Size = Vector3.new(1, 1, 1)
  7102. orb.Transparency = 0
  7103. orb.TopSurface = 0
  7104. orb.BottomSurface = 0
  7105. local orbm = Instance.new("SpecialMesh", orb)
  7106. orbm.MeshType = "Sphere"
  7107. orbm.Name = "SizeMesh"
  7108. orbm.Scale = vt(0, 0, 0)
  7109. local scaled = 0.1
  7110. local posid = 0
  7111. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  7112. for i = 0, 5, 0.1 do
  7113. swait()
  7114. scaled = scaled - 0.001
  7115. posid = posid - scaled
  7116. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  7117. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  7118. 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)
  7119. 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))), 0.1)
  7120. 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)), 0.1)
  7121. 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)), 0.1)
  7122. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  7123. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  7124. 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)), 0.1)
  7125. end
  7126. for i = 0, 2, 0.1 do
  7127. swait()
  7128. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  7129. 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))), 0.4)
  7130. 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)), 0.4)
  7131. 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)), 0.4)
  7132. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  7133. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  7134. 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)), 0.4)
  7135. end
  7136. coroutine.resume(coroutine.create(function()
  7137. orb.Anchored = false
  7138. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  7139. local a = Instance.new("Part", workspace)
  7140. a.Name = "Direction"
  7141. a.Anchored = true
  7142. a.BrickColor = bc("Bright red")
  7143. a.Material = "Neon"
  7144. a.Transparency = 1
  7145. a.CanCollide = false
  7146. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  7147. local ignore = orb
  7148. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7149. a.BottomSurface = 10
  7150. a.TopSurface = 10
  7151. local distance = (orb.CFrame.p - position).magnitude
  7152. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7153. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7154. orb.CFrame = a.CFrame
  7155. a:Destroy()
  7156. local bv = Instance.new("BodyVelocity")
  7157. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  7158. bv.velocity = orb.CFrame.lookVector * 125
  7159. bv.Parent = orb
  7160. local hitted = false
  7161. game:GetService("Debris"):AddItem(orb, 15)
  7162. wait()
  7163. local hit = orb.Touched:connect(function(hit)
  7164. if hitted == false then
  7165. hitted = true
  7166. CameraEnshaking(10, 2.5)
  7167. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  7168. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  7169. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  7170. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  7171. for i = 0, 9 do
  7172. 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)
  7173. 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)
  7174. end
  7175. orb.Anchored = true
  7176. orb.Transparency = 1
  7177. wait(8)
  7178. orb:Destroy()
  7179. end
  7180. end)
  7181. end))
  7182. for i = 0, 1, 0.1 do
  7183. swait()
  7184. 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))), 0.4)
  7185. 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)), 0.4)
  7186. 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)), 0.4)
  7187. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  7188. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  7189. 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)), 0.4)
  7190. end
  7191. attack = false
  7192. end
  7193. function ChaosGroundStrike()
  7194. attack = true
  7195. for i = 0, 2, 0.1 do
  7196. swait()
  7197. 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)), 0.2)
  7198. 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)), 0.2)
  7199. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  7200. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  7201. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  7202. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  7203. end
  7204. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  7205. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  7206. CameraEnshaking(4, 12)
  7207. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  7208. if v:FindFirstChild("Head") then
  7209. dmg(v)
  7210. end
  7211. end
  7212. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  7213. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  7214. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  7215. for i = 0, 2, 0.1 do
  7216. swait()
  7217. 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)
  7218. 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)
  7219. 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)), 0.4)
  7220. 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)), 0.4)
  7221. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  7222. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  7223. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  7224. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  7225. end
  7226. attack = false
  7227. end
  7228. function ChaosBegone()
  7229. attack = true
  7230. chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color)
  7231. for i = 0, 10, 0.1 do
  7232. swait()
  7233. 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)), 0.2)
  7234. 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)), 0.2)
  7235. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  7236. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  7237. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  7238. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  7239. end
  7240. chatfunc("DIE!!", BrickColor.random().Color)
  7241. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  7242. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  7243. CameraEnshaking(5, 25)
  7244. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  7245. if v:FindFirstChild("Head") then
  7246. dmg(v)
  7247. end
  7248. end
  7249. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  7250. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  7251. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  7252. for i = 0, 3, 0.1 do
  7253. swait()
  7254. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  7255. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  7256. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  7257. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  7258. 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)), 0.4)
  7259. 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)), 0.4)
  7260. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  7261. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  7262. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  7263. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  7264. end
  7265. attack = false
  7266. end
  7267. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  7268. local orb = Instance.new("Part", char)
  7269. orb.Anchored = true
  7270. orb.BrickColor = color
  7271. orb.CanCollide = false
  7272. orb.FormFactor = 3
  7273. orb.Name = "Ring"
  7274. orb.Material = "Neon"
  7275. orb.Size = Vector3.new(1, 1, 1)
  7276. orb.Transparency = 0
  7277. orb.TopSurface = 0
  7278. orb.BottomSurface = 0
  7279. local orbm = Instance.new("SpecialMesh", orb)
  7280. orbm.MeshType = "Sphere"
  7281. orb.CFrame = positted
  7282. orbm.Name = "SizeMesh"
  7283. orbm.Scale = vt(1, 1, 1)
  7284. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  7285. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  7286. coroutine.resume(coroutine.create(function()
  7287. wait(timer)
  7288. CameraEnshaking(3, ShakePower)
  7289. orb.Transparency = 1
  7290. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  7291. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  7292. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  7293. wait(3)
  7294. orb:Destroy()
  7295. end))
  7296. end
  7297. function orb_spawn(positted, timer)
  7298. local randomcol = math.random(1, 2)
  7299. local orb = Instance.new("Part", char)
  7300. orb.Anchored = true
  7301. if randomcol == 1 then
  7302. orb.BrickColor = BrickColor.new("White")
  7303. elseif randomcol == 2 then
  7304. orb.BrickColor = BrickColor.new("Really black")
  7305. end
  7306. orb.CanCollide = false
  7307. orb.FormFactor = 3
  7308. orb.Name = "Ring"
  7309. orb.Material = "Neon"
  7310. orb.Size = Vector3.new(1, 1, 1)
  7311. orb.Transparency = 0
  7312. orb.TopSurface = 0
  7313. orb.BottomSurface = 0
  7314. local orbm = Instance.new("SpecialMesh", orb)
  7315. orbm.MeshType = "Sphere"
  7316. orb.CFrame = positted
  7317. orbm.Name = "SizeMesh"
  7318. orbm.Scale = vt(1, 1, 1)
  7319. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  7320. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  7321. for i = 0, 2 do
  7322. 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)
  7323. end
  7324. coroutine.resume(coroutine.create(function()
  7325. wait(timer)
  7326. CameraEnshaking(3, 2)
  7327. orb.Transparency = 1
  7328. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  7329. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  7330. for i = 0, 4 do
  7331. 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)
  7332. end
  7333. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  7334. wait(3)
  7335. orb:Destroy()
  7336. end))
  7337. end
  7338. function scattercorrupt()
  7339. attack = true
  7340. local rot = 0
  7341. local randomrotations = math.random(1, 2)
  7342. local lookv = 2.5
  7343. local power = 5
  7344. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  7345. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  7346. for i = 0, 9 do
  7347. 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)
  7348. end
  7349. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  7350. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  7351. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  7352. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  7353. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  7354. local hite = Instance.new("Part", char)
  7355. hite.Anchored = true
  7356. hite.CanCollide = false
  7357. hite.FormFactor = 3
  7358. hite.Name = "Ring"
  7359. hite.Material = "Neon"
  7360. hite.Size = Vector3.new(1, 1, 1)
  7361. hite.Transparency = 1
  7362. hite.TopSurface = 0
  7363. hite.BottomSurface = 0
  7364. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  7365. local rem = Instance.new("Part", char)
  7366. rem.Anchored = true
  7367. rem.CanCollide = false
  7368. rem.FormFactor = 3
  7369. rem.Name = "Ring"
  7370. rem.Material = "Neon"
  7371. rem.Size = Vector3.new(1, 1, 1)
  7372. rem.Transparency = 1
  7373. rem.TopSurface = 0
  7374. rem.BottomSurface = 0
  7375. rem.CFrame = hite.CFrame
  7376. local rem2 = rem:Clone()
  7377. rem2.Parent = char
  7378. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7379. local rem3 = rem:Clone()
  7380. rem3.Parent = char
  7381. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  7382. local rem4 = rem:Clone()
  7383. rem4.Parent = char
  7384. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  7385. hite:Destroy()
  7386. coroutine.resume(coroutine.create(function()
  7387. for i = 0, 24 do
  7388. swait(1)
  7389. if randomrotations == 1 then
  7390. rot = rot + 1
  7391. elseif randomrotations == 2 then
  7392. rot = rot - 1
  7393. end
  7394. power = power + 0.5
  7395. lookv = lookv + 7.5
  7396. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  7397. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7398. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  7399. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  7400. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  7401. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  7402. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  7403. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  7404. end
  7405. end))
  7406. attack = false
  7407. end
  7408. function yinyangi()
  7409. attack = true
  7410. for i = 0, 2, 0.1 do
  7411. swait()
  7412. 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)), 0.2)
  7413. 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)), 0.2)
  7414. 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)), 0.2)
  7415. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  7416. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  7417. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  7418. end
  7419. local bv = Instance.new("BodyVelocity")
  7420. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  7421. bv.velocity = root.CFrame.lookVector * 175
  7422. bv.Parent = root
  7423. for Rotations = 0, 9 do
  7424. for i = 0, 1, 0.5 do
  7425. swait()
  7426. bv.velocity = root.CFrame.lookVector * 175
  7427. 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)), 0.5)
  7428. 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)), 0.5)
  7429. 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)), 0.5)
  7430. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  7431. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  7432. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  7433. end
  7434. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  7435. for i = 0, 1, 0.5 do
  7436. swait()
  7437. bv.velocity = root.CFrame.lookVector * 175
  7438. 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)), 0.5)
  7439. 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)), 0.5)
  7440. 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)), 0.5)
  7441. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  7442. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  7443. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  7444. end
  7445. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  7446. for i = 0, 1, 0.5 do
  7447. swait()
  7448. bv.velocity = root.CFrame.lookVector * 175
  7449. 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)), 0.5)
  7450. 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)), 0.5)
  7451. 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)), 0.5)
  7452. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  7453. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  7454. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  7455. end
  7456. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  7457. for i = 0, 1, 0.5 do
  7458. swait()
  7459. bv.velocity = root.CFrame.lookVector * 175
  7460. 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)), 0.5)
  7461. 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)), 0.5)
  7462. 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)), 0.5)
  7463. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  7464. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  7465. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  7466. end
  7467. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  7468. end
  7469. bv:Destroy()
  7470. attack = false
  7471. end
  7472. function Wip()
  7473. attack = true
  7474. local rngb = Instance.new("Part", char)
  7475. rngb.Anchored = true
  7476. rngb.BrickColor = origcolor
  7477. rngb.CanCollide = false
  7478. rngb.FormFactor = 3
  7479. rngb.Name = "Ring"
  7480. rngb.Material = "Neon"
  7481. rngb.Size = Vector3.new(1, 0.05, 1)
  7482. rngb.Transparency = 1
  7483. rngb.TopSurface = 0
  7484. rngb.BottomSurface = 0
  7485. local rngmb = Instance.new("SpecialMesh", rngb)
  7486. rngmb.MeshType = "Brick"
  7487. rngmb.Name = "SizeMesh"
  7488. rngmb.Scale = vt(0, 1, 0)
  7489. local orb = rngb:Clone()
  7490. orb.Parent = char
  7491. orb.Transparency = 0
  7492. orb.BrickColor = BrickColor.new("White")
  7493. orb.Size = vt(1, 1, 1)
  7494. local orbmish = orb.SizeMesh
  7495. orbmish.Scale = vt(0, 0, 0)
  7496. orbmish.MeshType = "Sphere"
  7497. local orbe = rngb:Clone()
  7498. orbe.Parent = char
  7499. orbe.Transparency = 0.5
  7500. orbe.BrickColor = BrickColor.new("New Yeller")
  7501. orbe.Size = vt(1, 1, 1)
  7502. local orbmish2 = orbe.SizeMesh
  7503. orbmish2.Scale = vt(0, 0, 0)
  7504. orbmish2.MeshType = "Sphere"
  7505. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  7506. rngb:Destroy()
  7507. for i = 0, 5, 0.1 do
  7508. swait()
  7509. if rainbowmode == true then
  7510. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  7511. end
  7512. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  7513. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  7514. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  7515. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  7516. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  7517. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  7518. 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)), 0.3)
  7519. 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)), 0.3)
  7520. RootPart.CFrame = FaceMouse()[1]
  7521. end
  7522. orbe.Transparency = 1
  7523. orb.Transparency = 1
  7524. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  7525. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  7526. local a = Instance.new("Part", Character)
  7527. a.Name = "Direction"
  7528. a.Anchored = true
  7529. a.BrickColor = bc("White")
  7530. a.Material = "Neon"
  7531. a.Transparency = 0
  7532. a.Shape = "Cylinder"
  7533. a.CanCollide = false
  7534. local a2 = Instance.new("Part", Character)
  7535. a2.Name = "Direction"
  7536. a2.Anchored = true
  7537. a2.BrickColor = bc("New Yeller")
  7538. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  7539. a2.Material = "Neon"
  7540. a2.Transparency = 0.5
  7541. a2.Shape = "Cylinder"
  7542. a2.CanCollide = false
  7543. local ba = Instance.new("Part", Character)
  7544. ba.Name = "HitDirect"
  7545. ba.Anchored = true
  7546. ba.BrickColor = bc("Really black")
  7547. ba.Material = "Neon"
  7548. ba.Transparency = 1
  7549. ba.CanCollide = false
  7550. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  7551. local ignore = Character
  7552. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7553. a.BottomSurface = 10
  7554. a.TopSurface = 10
  7555. a2.BottomSurface = 10
  7556. a2.TopSurface = 10
  7557. local distance = (orb.CFrame.p - position).magnitude
  7558. a.Size = Vector3.new(distance, 1, 1)
  7559. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7560. a2.Size = Vector3.new(distance, 1, 1)
  7561. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7562. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7563. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7564. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7565. game:GetService("Debris"):AddItem(a, 20)
  7566. game:GetService("Debris"):AddItem(a2, 20)
  7567. game:GetService("Debris"):AddItem(ba, 20)
  7568. local msh = Instance.new("SpecialMesh", a)
  7569. msh.MeshType = "Cylinder"
  7570. msh.Scale = vt(1, 25, 25)
  7571. local msh2 = Instance.new("SpecialMesh", a2)
  7572. msh2.MeshType = "Cylinder"
  7573. msh2.Scale = vt(1, 30, 30)
  7574. for i = 0, 10, 0.1 do
  7575. swait()
  7576. CameraEnshaking(1, 5)
  7577. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  7578. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  7579. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  7580. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  7581. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7582. distance = (orb.CFrame.p - position).magnitude
  7583. if typrot == 1 then
  7584. rotation = rotation + 2.5
  7585. elseif typrot == 2 then
  7586. rotation = rotation - 2.5
  7587. end
  7588. RootPart.CFrame = FaceMouse()[1]
  7589. a.Size = Vector3.new(distance, 1, 1)
  7590. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7591. a2.Size = Vector3.new(distance, 1, 1)
  7592. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7593. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7594. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7595. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7596. msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
  7597. msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
  7598. 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)
  7599. 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)
  7600. MagniDamage(ba, 30, 500, 60000, 0, "Normal")
  7601. end
  7602. a:Destroy()
  7603. a2:Destroy()
  7604. ba:Destroy()
  7605. orb:Destroy()
  7606. orbe:Destroy()
  7607. attack = false
  7608. end
  7609. function UniversalSpark()
  7610. attack = true
  7611. local rngb = Instance.new("Part", char)
  7612. rngb.Anchored = true
  7613. rngb.BrickColor = origcolor
  7614. rngb.CanCollide = false
  7615. rngb.FormFactor = 3
  7616. rngb.Name = "Ring"
  7617. rngb.Material = "Neon"
  7618. rngb.Size = Vector3.new(1, 0.05, 1)
  7619. rngb.Transparency = 1
  7620. rngb.TopSurface = 0
  7621. rngb.BottomSurface = 0
  7622. local rngmb = Instance.new("SpecialMesh", rngb)
  7623. rngmb.MeshType = "Brick"
  7624. rngmb.Name = "SizeMesh"
  7625. rngmb.Scale = vt(0, 1, 0)
  7626. local orb = rngb:Clone()
  7627. orb.Parent = char
  7628. orb.Transparency = 0
  7629. orb.BrickColor = BrickColor.new("White")
  7630. orb.Size = vt(1, 1, 1)
  7631. local orbmish = orb.SizeMesh
  7632. orbmish.Scale = vt(0, 0, 0)
  7633. orbmish.MeshType = "Sphere"
  7634. local orbe = rngb:Clone()
  7635. orbe.Parent = char
  7636. orbe.Transparency = 0.5
  7637. orbe.BrickColor = BrickColor.new("New Yeller")
  7638. orbe.Size = vt(1, 1, 1)
  7639. local orbmish2 = orbe.SizeMesh
  7640. orbmish2.Scale = vt(0, 0, 0)
  7641. orbmish2.MeshType = "Sphere"
  7642. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  7643. rngb:Destroy()
  7644. for i = 0, 5, 0.1 do
  7645. swait()
  7646. if rainbowmode == true then
  7647. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  7648. end
  7649. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  7650. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  7651. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  7652. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  7653. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  7654. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  7655. 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)), 0.3)
  7656. 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)), 0.3)
  7657. RootPart.CFrame = FaceMouse()[1]
  7658. end
  7659. orbe.Transparency = 1
  7660. orb.Transparency = 1
  7661. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  7662. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  7663. CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
  7664. CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
  7665. CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
  7666. CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
  7667. CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
  7668. CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
  7669. local xd = Instance.new("Sound", char)
  7670. xd.SoundId = "rbxassetid://445796828"
  7671. xd.Pitch = 0.75
  7672. xd.Looped = true
  7673. xd.Volume = 1.25
  7674. xd:Play()
  7675. local a = Instance.new("Part", Character)
  7676. a.Name = "Direction"
  7677. a.Anchored = true
  7678. a.BrickColor = bc("Alder")
  7679. a.Color = MAINRUINCOLOR.Color
  7680. a.Material = "Neon"
  7681. a.Transparency = 0.5
  7682. a.Shape = "Cylinder"
  7683. a.CanCollide = false
  7684. local a2 = Instance.new("Part", Character)
  7685. a2.Name = "Direction"
  7686. a2.Anchored = true
  7687. a2.BrickColor = bc("New Yeller")
  7688. a2.Color = MAINRUINCOLOR.Color
  7689. a2.Material = "Neon"
  7690. a2.Transparency = 0.5
  7691. a2.Shape = "Cylinder"
  7692. a2.CanCollide = false
  7693. local ba = Instance.new("Part", Character)
  7694. ba.Name = "HitDirect"
  7695. ba.Anchored = true
  7696. ba.BrickColor = bc("Really black")
  7697. ba.Material = "Neon"
  7698. ba.Transparency = 1
  7699. ba.CanCollide = false
  7700. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  7701. local ignore = Character
  7702. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7703. a.BottomSurface = 10
  7704. a.TopSurface = 10
  7705. a2.BottomSurface = 10
  7706. a2.TopSurface = 10
  7707. local distance = (orb.CFrame.p - position).magnitude
  7708. a.Size = Vector3.new(distance, 1, 1)
  7709. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7710. a2.Size = Vector3.new(distance, 1, 1)
  7711. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7712. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7713. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7714. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7715. game:GetService("Debris"):AddItem(a, 60)
  7716. game:GetService("Debris"):AddItem(a2, 60)
  7717. game:GetService("Debris"):AddItem(ba, 60)
  7718. local outerscale = 0
  7719. local msh = Instance.new("SpecialMesh", a)
  7720. msh.MeshType = "Cylinder"
  7721. msh.Scale = vt(1, 0, 0)
  7722. local msh2 = Instance.new("SpecialMesh", a2)
  7723. msh2.MeshType = "Cylinder"
  7724. msh2.Scale = vt(1, 0, 0)
  7725. for i = 0, 2, 0.1 do
  7726. swait()
  7727. CameraEnshaking(1, 1)
  7728. msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
  7729. msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
  7730. outerscale = outerscale - 0.015
  7731. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  7732. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  7733. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  7734. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7735. distance = (orb.CFrame.p - position).magnitude
  7736. if typrot == 1 then
  7737. rotation = rotation + 2.5
  7738. elseif typrot == 2 then
  7739. rotation = rotation - 2.5
  7740. end
  7741. RootPart.CFrame = FaceMouse()[1]
  7742. a.Size = Vector3.new(distance, 1, 1)
  7743. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7744. a2.Size = Vector3.new(distance, 1, 1)
  7745. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7746. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7747. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7748. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7749. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  7750. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  7751. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  7752. end
  7753. for z = 0, 2 do
  7754. for i = 0, 4, 0.1 do
  7755. swait()
  7756. CameraEnshaking(1, 1)
  7757. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  7758. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  7759. outerscale = outerscale + 0.015
  7760. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  7761. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  7762. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  7763. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7764. distance = (orb.CFrame.p - position).magnitude
  7765. if typrot == 1 then
  7766. rotation = rotation + 2.5
  7767. elseif typrot == 2 then
  7768. rotation = rotation - 2.5
  7769. end
  7770. RootPart.CFrame = FaceMouse()[1]
  7771. a.Size = Vector3.new(distance, 1, 1)
  7772. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7773. a2.Size = Vector3.new(distance, 1, 1)
  7774. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7775. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7776. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7777. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7778. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  7779. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  7780. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  7781. end
  7782. for i = 0, 4, 0.1 do
  7783. swait()
  7784. CameraEnshaking(1, 1)
  7785. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  7786. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  7787. outerscale = outerscale - 0.015
  7788. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  7789. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  7790. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  7791. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7792. distance = (orb.CFrame.p - position).magnitude
  7793. if typrot == 1 then
  7794. rotation = rotation + 2.5
  7795. elseif typrot == 2 then
  7796. rotation = rotation - 2.5
  7797. end
  7798. RootPart.CFrame = FaceMouse()[1]
  7799. a.Size = Vector3.new(distance, 1, 1)
  7800. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7801. a2.Size = Vector3.new(distance, 1, 1)
  7802. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7803. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7804. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7805. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7806. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  7807. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  7808. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  7809. end
  7810. end
  7811. for i = 0, 4, 0.1 do
  7812. swait()
  7813. CameraEnshaking(1, 1)
  7814. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  7815. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  7816. xd.Volume = xd.Volume - 0.025
  7817. a.Transparency = a.Transparency + 0.025
  7818. a2.Transparency = a2.Transparency + 0.025
  7819. outerscale = outerscale - 0.015
  7820. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  7821. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  7822. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  7823. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7824. distance = (orb.CFrame.p - position).magnitude
  7825. if typrot == 1 then
  7826. rotation = rotation + 2.5
  7827. elseif typrot == 2 then
  7828. rotation = rotation - 2.5
  7829. end
  7830. RootPart.CFrame = FaceMouse()[1]
  7831. a.Size = Vector3.new(distance, 1, 1)
  7832. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7833. a2.Size = Vector3.new(distance, 1, 1)
  7834. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  7835. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7836. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7837. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  7838. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  7839. 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  7840. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  7841. end
  7842. xd:Destroy()
  7843. a:Destroy()
  7844. a2:Destroy()
  7845. ba:Destroy()
  7846. orb:Destroy()
  7847. orbe:Destroy()
  7848. attack = false
  7849. end
  7850. function resetmode()
  7851. rainbowmode = false
  7852. chaosmode = false
  7853. RecolorTextAndRename("Blood maker", Color3.new(0, 0, 0), Color3.new(1, 0, 0))
  7854. ModeOfGlitch = 1
  7855. storehumanoidWS = 16
  7856. for i, v in pairs(mw2:GetChildren()) do
  7857. if v:IsA("Part") then
  7858. v.BrickColor = BrickColor.new("Really red")
  7859. v.Material = "Neon"
  7860. end
  7861. end
  7862. for i, v in pairs(mw1:GetChildren()) do
  7863. if v:IsA("Part") then
  7864. v.Transparency = 1
  7865. v.BrickColor = BrickColor.new("Really red")
  7866. v.Material = "Neon"
  7867. end
  7868. end
  7869. MAINRUINCOLOR = BrickColor.new("Really red")
  7870. hum.WalkSpeed = 16
  7871. newTheme("rbxassetid://614032233", 48.6, 1, 1)
  7872. for i, v in pairs(m:GetChildren()) do
  7873. if v:IsA("Part") then
  7874. v.BrickColor = BrickColor.new("Really black")
  7875. v.Material = "Glass"
  7876. end
  7877. end
  7878. for i, v in pairs(m2:GetChildren()) do
  7879. if v:IsA("Part") then
  7880. v.BrickColor = BrickColor.new("Crimson")
  7881. v.Material = "Granite"
  7882. end
  7883. end
  7884. for i, v in pairs(m3:GetChildren()) do
  7885. if v:IsA("Part") then
  7886. v.BrickColor = BrickColor.new("Really red")
  7887. v.Material = "Neon"
  7888. end
  7889. end
  7890. for i, v in pairs(extrawingmod1:GetChildren()) do
  7891. if v:IsA("Part") then
  7892. v.Transparency = 1
  7893. v.BrickColor = BrickColor.new("White")
  7894. v.Material = "Neon"
  7895. end
  7896. end
  7897. for i, v in pairs(extrawingmod2:GetChildren()) do
  7898. if v:IsA("Part") then
  7899. v.Transparency = 1
  7900. v.BrickColor = BrickColor.new("White")
  7901. v.Material = "Neon"
  7902. end
  7903. end
  7904. end
  7905. function attackone()
  7906. attack = true
  7907. for i = 0, 1, 0.1 do
  7908. swait()
  7909. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
  7910. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
  7911. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  7912. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  7913. 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)), 0.2)
  7914. 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)), 0.2)
  7915. end
  7916. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
  7917. local hitb = Instance.new("Part", char)
  7918. hitb.Anchored = true
  7919. hitb.CanCollide = false
  7920. hitb.FormFactor = 3
  7921. hitb.Name = "Ring"
  7922. hitb.Material = "Neon"
  7923. hitb.Size = Vector3.new(1, 1, 1)
  7924. hitb.Transparency = 1
  7925. hitb.TopSurface = 0
  7926. hitb.BottomSurface = 0
  7927. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  7928. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  7929. hitb:Destroy()
  7930. for i = 0, 1, 0.1 do
  7931. swait()
  7932. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
  7933. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
  7934. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  7935. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  7936. 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)), 0.4)
  7937. 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)), 0.4)
  7938. end
  7939. attack = false
  7940. end
  7941. function attacktwo()
  7942. attack = true
  7943. for i = 0, 1, 0.1 do
  7944. swait()
  7945. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
  7946. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  7947. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  7948. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  7949. 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)), 0.2)
  7950. 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)), 0.2)
  7951. end
  7952. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
  7953. local hitb = Instance.new("Part", char)
  7954. hitb.Anchored = true
  7955. hitb.CanCollide = false
  7956. hitb.FormFactor = 3
  7957. hitb.Name = "Ring"
  7958. hitb.Material = "Neon"
  7959. hitb.Size = Vector3.new(1, 1, 1)
  7960. hitb.Transparency = 1
  7961. hitb.TopSurface = 0
  7962. hitb.BottomSurface = 0
  7963. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  7964. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  7965. hitb:Destroy()
  7966. for i = 0, 1, 0.1 do
  7967. swait()
  7968. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
  7969. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
  7970. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  7971. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  7972. 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)), 0.4)
  7973. 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)), 0.4)
  7974. end
  7975. attack = false
  7976. end
  7977. function attackthree()
  7978. attack = true
  7979. for i = 0, 1, 0.1 do
  7980. swait()
  7981. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  7982. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  7983. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  7984. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  7985. 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)), 0.3)
  7986. 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)), 0.3)
  7987. end
  7988. local distlook = 5
  7989. for i = 0, 4 do
  7990. swait(2)
  7991. CameraEnshaking(2, 3)
  7992. local hite = Instance.new("Part", char)
  7993. hite.Anchored = true
  7994. hite.CanCollide = false
  7995. hite.FormFactor = 3
  7996. hite.Name = "Ring"
  7997. hite.Material = "Neon"
  7998. hite.Size = Vector3.new(1, 1, 1)
  7999. hite.Transparency = 1
  8000. hite.TopSurface = 0
  8001. hite.BottomSurface = 0
  8002. hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
  8003. sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
  8004. sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
  8005. MagniDamage(hite, 10, 15, 35, 0, "Normal")
  8006. for i = 0, 2 do
  8007. 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)
  8008. 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)
  8009. 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)
  8010. end
  8011. CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
  8012. CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
  8013. game:GetService("Debris"):AddItem(hite, 5)
  8014. distlook = distlook + 10
  8015. end
  8016. attack = false
  8017. end
  8018. local attacktype = 1
  8019. mouse.Button1Down:connect(function()
  8020. if attack == false and attacktype == 1 then
  8021. attacktype = 2
  8022. attackone()
  8023. elseif attack == false and attacktype == 2 then
  8024. attacktype = 3
  8025. attacktwo()
  8026. elseif attack == false and attacktype == 3 then
  8027. attacktype = 1
  8028. attackthree()
  8029. elseif attack == false and attacktype == 4 then
  8030. attacktype = 1
  8031. end
  8032. end)
  8033. mouse.KeyDown:connect(function(k)
  8034. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  8035. ModeOfGlitch = 2
  8036. storehumanoidWS = 16
  8037. hum.WalkSpeed = 16
  8038. rainbowmode = false
  8039. chaosmode = false
  8040. RecolorTextAndRename("Divine Purity", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
  8041. newTheme("rbxassetid://670845649", 20.25, 1, 1)
  8042. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8043. for i, v in pairs(mw2:GetChildren()) do
  8044. if v:IsA("Part") then
  8045. v.BrickColor = MAINRUINCOLOR
  8046. v.Material = "Neon"
  8047. end
  8048. end
  8049. for i, v in pairs(mw1:GetChildren()) do
  8050. if v:IsA("Part") then
  8051. v.Transparency = 1
  8052. v.BrickColor = MAINRUINCOLOR
  8053. v.Material = "Neon"
  8054. end
  8055. end
  8056. for i, v in pairs(m:GetChildren()) do
  8057. if v:IsA("Part") then
  8058. v.BrickColor = BrickColor.new("White")
  8059. v.Material = "Ice"
  8060. end
  8061. end
  8062. for i, v in pairs(m2:GetChildren()) do
  8063. if v:IsA("Part") then
  8064. v.BrickColor = BrickColor.new("Pastel light blue")
  8065. v.Material = "Glass"
  8066. end
  8067. end
  8068. for i, v in pairs(m3:GetChildren()) do
  8069. if v:IsA("Part") then
  8070. v.BrickColor = BrickColor.new("Toothpaste")
  8071. v.Material = "Neon"
  8072. end
  8073. end
  8074. for i, v in pairs(extrawingmod1:GetChildren()) do
  8075. if v:IsA("Part") then
  8076. v.Transparency = 1
  8077. v.BrickColor = BrickColor.new("White")
  8078. v.Material = "Neon"
  8079. end
  8080. end
  8081. for i, v in pairs(extrawingmod2:GetChildren()) do
  8082. if v:IsA("Part") then
  8083. v.Transparency = 1
  8084. v.BrickColor = BrickColor.new("White")
  8085. v.Material = "Neon"
  8086. end
  8087. end
  8088. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  8089. resetmode()
  8090. end
  8091. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  8092. ModeOfGlitch = 3
  8093. storehumanoidWS = 16
  8094. hum.WalkSpeed = 16
  8095. rainbowmode = false
  8096. chaosmode = false
  8097. RecolorTextAndRename("Corruption", Color3.new(0, 0, 0), Color3.new(0.35, 0, 1))
  8098. newTheme("rbxassetid://1283869370", 58.15, 0.98, 1.25)
  8099. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8100. for i, v in pairs(mw2:GetChildren()) do
  8101. if v:IsA("Part") then
  8102. v.BrickColor = MAINRUINCOLOR
  8103. v.Material = "Neon"
  8104. end
  8105. end
  8106. for i, v in pairs(mw1:GetChildren()) do
  8107. if v:IsA("Part") then
  8108. v.Transparency = 1
  8109. v.BrickColor = MAINRUINCOLOR
  8110. v.Material = "Neon"
  8111. end
  8112. end
  8113. for i, v in pairs(m:GetChildren()) do
  8114. if v:IsA("Part") then
  8115. v.BrickColor = BrickColor.new("Black")
  8116. v.Material = "Ice"
  8117. end
  8118. end
  8119. for i, v in pairs(m2:GetChildren()) do
  8120. if v:IsA("Part") then
  8121. v.BrickColor = BrickColor.new("Dark indigo")
  8122. v.Material = "Glass"
  8123. end
  8124. end
  8125. for i, v in pairs(m3:GetChildren()) do
  8126. if v:IsA("Part") then
  8127. v.BrickColor = BrickColor.new("Royal purple")
  8128. v.Material = "Neon"
  8129. end
  8130. end
  8131. for i, v in pairs(extrawingmod1:GetChildren()) do
  8132. if v:IsA("Part") then
  8133. v.Transparency = 1
  8134. v.BrickColor = BrickColor.new("White")
  8135. v.Material = "Neon"
  8136. end
  8137. end
  8138. for i, v in pairs(extrawingmod2:GetChildren()) do
  8139. if v:IsA("Part") then
  8140. v.Transparency = 1
  8141. v.BrickColor = BrickColor.new("White")
  8142. v.Material = "Neon"
  8143. end
  8144. end
  8145. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  8146. resetmode()
  8147. end
  8148. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  8149. ModeOfGlitch = 4
  8150. storehumanoidWS = 16
  8151. hum.WalkSpeed = 16
  8152. rainbowmode = false
  8153. chaosmode = true
  8154. RecolorTextAndRename("CHAOS", Color3.new(0, 0, 0), BrickColor.random().Color)
  8155. newTheme("rbxassetid://614032233", 48.6, 1, 1)
  8156. MAINRUINCOLOR = BrickColor.new("Black")
  8157. for i, v in pairs(mw2:GetChildren()) do
  8158. if v:IsA("Part") then
  8159. v.BrickColor = MAINRUINCOLOR
  8160. v.Material = "Neon"
  8161. end
  8162. end
  8163. for i, v in pairs(mw1:GetChildren()) do
  8164. if v:IsA("Part") then
  8165. v.Transparency = 0.75
  8166. v.BrickColor = BrickColor.random()
  8167. v.Material = "Neon"
  8168. end
  8169. end
  8170. for i, v in pairs(m:GetChildren()) do
  8171. if v:IsA("Part") then
  8172. v.BrickColor = BrickColor.new("Black")
  8173. v.Material = "Neon"
  8174. end
  8175. end
  8176. for i, v in pairs(m2:GetChildren()) do
  8177. if v:IsA("Part") then
  8178. v.BrickColor = BrickColor.random()
  8179. v.Material = "Neon"
  8180. end
  8181. end
  8182. for i, v in pairs(m3:GetChildren()) do
  8183. if v:IsA("Part") then
  8184. v.BrickColor = BrickColor.new("Black")
  8185. v.Material = "Neon"
  8186. end
  8187. end
  8188. for i, v in pairs(extrawingmod1:GetChildren()) do
  8189. if v:IsA("Part") then
  8190. v.Transparency = 1
  8191. v.BrickColor = BrickColor.new("White")
  8192. v.Material = "Neon"
  8193. end
  8194. end
  8195. for i, v in pairs(extrawingmod2:GetChildren()) do
  8196. if v:IsA("Part") then
  8197. v.Transparency = 1
  8198. v.BrickColor = BrickColor.new("White")
  8199. v.Material = "Neon"
  8200. end
  8201. end
  8202. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  8203. resetmode()
  8204. end
  8205. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  8206. ModeOfGlitch = 5
  8207. storehumanoidWS = 16
  8208. hum.WalkSpeed = 16
  8209. rainbowmode = false
  8210. chaosmode = false
  8211. RecolorTextAndRename("Divine Darkness", Color3.new(0, 0, 0), Color3.new(255, 255, 255))
  8212. newTheme("rbxassetid://661079869", 0, 1.02, 1)
  8213. MAINRUINCOLOR = BrickColor.new("Really black")
  8214. for i, v in pairs(mw2:GetChildren()) do
  8215. if v:IsA("Part") then
  8216. v.BrickColor = MAINRUINCOLOR
  8217. v.Material = "Neon"
  8218. end
  8219. end
  8220. for i, v in pairs(mw1:GetChildren()) do
  8221. if v:IsA("Part") then
  8222. v.Transparency = 0
  8223. v.BrickColor = MAINRUINCOLOR
  8224. v.Material = "Neon"
  8225. end
  8226. end
  8227. for i, v in pairs(m:GetChildren()) do
  8228. if v:IsA("Part") then
  8229. v.BrickColor = BrickColor.new("Really black")
  8230. v.Material = "Ice"
  8231. end
  8232. end
  8233. for i, v in pairs(m2:GetChildren()) do
  8234. if v:IsA("Part") then
  8235. v.BrickColor = BrickColor.new("Really black")
  8236. v.Material = "Ice"
  8237. end
  8238. end
  8239. for i, v in pairs(m3:GetChildren()) do
  8240. if v:IsA("Part") then
  8241. v.BrickColor = BrickColor.new("Really black")
  8242. v.Material = "Neon"
  8243. end
  8244. end
  8245. for i, v in pairs(extrawingmod1:GetChildren()) do
  8246. if v:IsA("Part") then
  8247. v.Transparency = 1
  8248. v.BrickColor = BrickColor.new("White")
  8249. v.Material = "Neon"
  8250. end
  8251. end
  8252. for i, v in pairs(extrawingmod2:GetChildren()) do
  8253. if v:IsA("Part") then
  8254. v.Transparency = 1
  8255. v.BrickColor = BrickColor.new("White")
  8256. v.Material = "Neon"
  8257. end
  8258. end
  8259. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  8260. resetmode()
  8261. end
  8262. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  8263. ModeOfGlitch = 6
  8264. storehumanoidWS = 75
  8265. hum.WalkSpeed = 75
  8266. rainbowmode = false
  8267. chaosmode = false
  8268. RecolorTextAndRename("Equality", Color3.new(0, 0, 0), Color3.new(1, 1, 1))
  8269. newTheme("rbxassetid://395351949", 0, 1, 1)
  8270. MAINRUINCOLOR = BrickColor.new("Really black")
  8271. for i, v in pairs(mw2:GetChildren()) do
  8272. if v:IsA("Part") then
  8273. v.BrickColor = BrickColor.new("White")
  8274. v.Material = "Neon"
  8275. end
  8276. end
  8277. for i, v in pairs(mw1:GetChildren()) do
  8278. if v:IsA("Part") then
  8279. v.Transparency = 0
  8280. v.BrickColor = BrickColor.new("Really black")
  8281. v.Material = "Neon"
  8282. end
  8283. end
  8284. for i, v in pairs(m:GetChildren()) do
  8285. if v:IsA("Part") then
  8286. v.BrickColor = BrickColor.new("White")
  8287. v.Material = "Ice"
  8288. end
  8289. end
  8290. for i, v in pairs(m2:GetChildren()) do
  8291. if v:IsA("Part") then
  8292. v.BrickColor = BrickColor.new("Really black")
  8293. v.Material = "Ice"
  8294. end
  8295. end
  8296. for i, v in pairs(m3:GetChildren()) do
  8297. if v:IsA("Part") then
  8298. v.BrickColor = BrickColor.new("White")
  8299. v.Material = "Neon"
  8300. end
  8301. end
  8302. for i, v in pairs(extrawingmod1:GetChildren()) do
  8303. if v:IsA("Part") then
  8304. v.Transparency = 1
  8305. v.BrickColor = BrickColor.new("White")
  8306. v.Material = "Neon"
  8307. end
  8308. end
  8309. for i, v in pairs(extrawingmod2:GetChildren()) do
  8310. if v:IsA("Part") then
  8311. v.Transparency = 1
  8312. v.BrickColor = BrickColor.new("White")
  8313. v.Material = "Neon"
  8314. end
  8315. end
  8316. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  8317. resetmode()
  8318. end
  8319. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  8320. ModeOfGlitch = 6127843
  8321. storehumanoidWS = 50
  8322. hum.WalkSpeed = 50
  8323. rainbowmode = true
  8324. chaosmode = false
  8325. RecolorTextAndRename("COLOR GOD", Color3.new(1, 1, 1), Color3.new(1, 1, 1))
  8326. newTheme("rbxassetid://147930134", 0, 1, 1)
  8327. MAINRUINCOLOR = BrickColor.new("White")
  8328. for i, v in pairs(mw2:GetChildren()) do
  8329. if v:IsA("Part") then
  8330. v.BrickColor = MAINRUINCOLOR
  8331. v.Material = "Neon"
  8332. end
  8333. end
  8334. for i, v in pairs(mw1:GetChildren()) do
  8335. if v:IsA("Part") then
  8336. v.Transparency = 0
  8337. v.BrickColor = MAINRUINCOLOR
  8338. v.Material = "Neon"
  8339. end
  8340. end
  8341. for i, v in pairs(m:GetChildren()) do
  8342. if v:IsA("Part") then
  8343. v.BrickColor = BrickColor.new("White")
  8344. v.Material = "Neon"
  8345. end
  8346. end
  8347. for i, v in pairs(m2:GetChildren()) do
  8348. if v:IsA("Part") then
  8349. v.BrickColor = BrickColor.new("White")
  8350. v.Material = "Neon"
  8351. end
  8352. end
  8353. for i, v in pairs(m3:GetChildren()) do
  8354. if v:IsA("Part") then
  8355. v.BrickColor = BrickColor.new("White")
  8356. v.Material = "Neon"
  8357. end
  8358. end
  8359. for i, v in pairs(extrawingmod1:GetChildren()) do
  8360. if v:IsA("Part") then
  8361. v.Transparency = 1
  8362. v.BrickColor = BrickColor.new("White")
  8363. v.Material = "Neon"
  8364. end
  8365. end
  8366. for i, v in pairs(extrawingmod2:GetChildren()) do
  8367. if v:IsA("Part") then
  8368. v.Transparency = 1
  8369. v.BrickColor = BrickColor.new("White")
  8370. v.Material = "Neon"
  8371. end
  8372. end
  8373. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  8374. resetmode()
  8375. end
  8376. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  8377. ModeOfGlitch = 1000000
  8378. storehumanoidWS = 100
  8379. hum.WalkSpeed = 100
  8380. rainbowmode = false
  8381. chaosmode = false
  8382. RecolorTextAndRename("Divine Universe", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
  8383. newTheme("rbxassetid://1359036559", 0, 1, 1)
  8384. MAINRUINCOLOR = BrickColor.new("Bright violet")
  8385. for i, v in pairs(mw2:GetChildren()) do
  8386. if v:IsA("Part") then
  8387. v.BrickColor = MAINRUINCOLOR
  8388. v.Material = "Neon"
  8389. end
  8390. end
  8391. for i, v in pairs(mw1:GetChildren()) do
  8392. if v:IsA("Part") then
  8393. v.Transparency = 0
  8394. v.BrickColor = MAINRUINCOLOR
  8395. v.Material = "Neon"
  8396. end
  8397. end
  8398. for i, v in pairs(m:GetChildren()) do
  8399. if v:IsA("Part") then
  8400. v.Color = Color3.new(0.5, 0, 1)
  8401. v.Material = "Neon"
  8402. end
  8403. end
  8404. for i, v in pairs(m2:GetChildren()) do
  8405. if v:IsA("Part") then
  8406. v.Color = Color3.new(0.25, 0, 1)
  8407. v.Material = "Neon"
  8408. end
  8409. end
  8410. for i, v in pairs(m3:GetChildren()) do
  8411. if v:IsA("Part") then
  8412. v.Color = Color3.new(0.45, 0, 1)
  8413. v.Material = "Neon"
  8414. end
  8415. end
  8416. for i, v in pairs(extrawingmod1:GetChildren()) do
  8417. if v:IsA("Part") then
  8418. v.Transparency = 0
  8419. v.Color = Color3.new(0.25, 0, 1)
  8420. v.Material = "Neon"
  8421. end
  8422. end
  8423. for i, v in pairs(extrawingmod2:GetChildren()) do
  8424. if v:IsA("Part") then
  8425. v.Transparency = 0
  8426. v.Color = Color3.new(0.5, 0, 1)
  8427. v.Material = "Neon"
  8428. end
  8429. end
  8430. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  8431. resetmode()
  8432. end
  8433. if k == "l" and toggleTag == false then
  8434. toggleTag = true
  8435. text.TextTransparency = 0
  8436. text.TextStrokeTransparency = 0
  8437. elseif k == "l" and toggleTag == true then
  8438. toggleTag = false
  8439. text.TextTransparency = 1
  8440. text.TextStrokeTransparency = 1
  8441. end
  8442. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8443. ExtinctiveHeartbreak()
  8444. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8445. PureBomb()
  8446. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8447. scattercorrupt()
  8448. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8449. ChaosGroundStrike()
  8450. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  8451. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  8452. UniversalSpark()
  8453. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  8454. yinyangi()
  8455. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  8456. Wip()
  8457. end
  8458. if k == "l" and attack == false and ModeOfGlitch == 4 and plr.Name == "NoobyGames12" then
  8459. ChaosBegone()
  8460. end
  8461. end)
  8462. coroutine.resume(coroutine.create(function()
  8463. while true do
  8464. swait(2)
  8465. if rainbowmode == true or ModeOfGlitch == 6 then
  8466. 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)
  8467. end
  8468. end
  8469. end))
  8470. coroutine.resume(coroutine.create(function()
  8471. while true do
  8472. swait(0.5)
  8473. if ModeOfGlitch == 1000000 then
  8474. 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)
  8475. end
  8476. end
  8477. end))
  8478. coroutine.resume(coroutine.create(function()
  8479. while true do
  8480. swait(2)
  8481. if chaosmode == true then
  8482. RecolorTextAndRename("CHAOS", Color3.new(0, 0, 0), BrickColor.random().Color)
  8483. for i, v in pairs(mw1:GetChildren()) do
  8484. if v:IsA("Part") then
  8485. v.Transparency = 0.75
  8486. v.BrickColor = BrickColor.random()
  8487. v.Material = "Neon"
  8488. end
  8489. end
  8490. for i, v in pairs(m2:GetChildren()) do
  8491. if v:IsA("Part") then
  8492. v.BrickColor = BrickColor.random()
  8493. v.Material = "Neon"
  8494. end
  8495. end
  8496. end
  8497. end
  8498. end))
  8499. Humanoid.Name = "STARGLITCHER"
  8500. Humanoid.MaxHealth = math.huge
  8501. Humanoid.Health = math.huge
  8502. Instance.new("ForceField", char).Visible = false
  8503. Humanoid.Animator.Parent = nil
  8504. idleanim = 0.4
  8505. while true do
  8506. if rainbowmode == true then
  8507. RecolorTextAndRename("COLOR GOD", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500))
  8508. MAINRUINCOLOR = BrickColor.new("White")
  8509. for i, v in pairs(m:GetChildren()) do
  8510. if v:IsA("Part") then
  8511. v.Color = Color3.new(r / 0, g / 0, b / 0)
  8512. end
  8513. end
  8514. for i, v in pairs(m2:GetChildren()) do
  8515. if v:IsA("Part") then
  8516. v.Color = Color3.new(r / 0, g / 0, b / 0)
  8517. end
  8518. end
  8519. for i, v in pairs(m3:GetChildren()) do
  8520. if v:IsA("Part") then
  8521. v.Color = Color3.new(r / 0, g / 0, b / 0)
  8522. end
  8523. end
  8524. for i, v in pairs(mw1:GetChildren()) do
  8525. if v:IsA("Part") then
  8526. v.Color = Color3.new(r / 0, g / 0, b / 0)
  8527. v.Material = "Dark"
  8528. end
  8529. end
  8530. for i, v in pairs(mw2:GetChildren()) do
  8531. if v:IsA("Part") then
  8532. v.Color = Color3.new(r / 0, g / 0, b / 0)
  8533.  
  8534. v.Material = "Dark"
  8535. end"
  8536. end
  8537. end
  8538. CameraManager()
  8539. swait()
  8540. 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))), 0.3)
  8541. 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))), 0.3)
  8542. 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))), 0.3)
  8543. 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))), 0.3)
  8544. 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))), 0.3)
  8545. 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))), 0.3)
  8546. 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))), 0.3)
  8547. 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))), 0.3)
  8548. 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))), 0.3)
  8549. 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))), 0.3)
  8550. 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))), 0.3)
  8551. 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))), 0.3)
  8552. sine = sine + change
  8553. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  8554. local velderp = RootPart.Velocity.y
  8555. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  8556. if equipped == true or equipped == false then
  8557. if attack == false then
  8558. idle = idle + 1
  8559. else
  8560. idle = 0
  8561. end
  8562. if not (idle >= 500) or attack == false then
  8563. end
  8564. if RootPart.Velocity.y > 1 and hitfloor == nil then
  8565. Anim = "Jump"
  8566. if attack == false then
  8567. 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)), 0.1)
  8568. 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)), 0.1)
  8569. 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)), 0.1)
  8570. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1)
  8571. 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)), 0.1)
  8572. 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)), 0.1)
  8573. end
  8574. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  8575. Anim = "Fall"
  8576. if attack == false then
  8577. 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)), 0.1)
  8578. 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)), 0.1)
  8579. 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)), 0.1)
  8580. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  8581. 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)), 0.1)
  8582. 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)), 0.1)
  8583. end
  8584. elseif torvel < 1 and hitfloor ~= nil then
  8585. Anim = "Idle"
  8586. if attack == false then
  8587. if ModeOfGlitch == 1 then
  8588. 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)), 0.1)
  8589. 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))), 0.1)
  8590. 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)), 0.1)
  8591. 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))), 0.1)
  8592. 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))), 0.1)
  8593. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
  8594. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  8595. 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))), 0.1)
  8596. 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))), 0.1)
  8597. 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)), 0.1)
  8598. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  8599. 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))), 0.1)
  8600. 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))), 0.1)
  8601. elseif ModeOfGlitch == 3 then
  8602. 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))), 0.1)
  8603. 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))), 0.1)
  8604. 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)), 0.1)
  8605. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(20)), 0.1)
  8606. 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))), 0.1)
  8607. LW.C0 = clerp(LW.C0, cf(-1.5, 0.75, 0) * angles(math.rad(170), math.rad(-20), math.rad(20)), 0.1)
  8608. elseif ModeOfGlitch == 4 then
  8609. 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)), 0.1)
  8610. 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)), 0.1)
  8611. 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)), 0.1)
  8612. 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))), 0.1)
  8613. 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))), 0.1)
  8614. 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))), 0.1)
  8615. elseif ModeOfGlitch == 5 then
  8616. 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))), 0.1)
  8617. 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))), 0.1)
  8618. 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)), 0.1)
  8619. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  8620. 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)), 0.1)
  8621. 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)), 0.1)
  8622. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  8623. 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)), 0.1)
  8624. 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)), 0.1)
  8625. 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)), 0.1)
  8626. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
  8627. 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))), 0.1)
  8628. 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))), 0.1)
  8629. end
  8630. end
  8631. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  8632. Anim = "Walk"
  8633. if attack == false then
  8634. if ModeOfGlitch == 1 then
  8635. 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))), 0.1)
  8636. 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))), 0.1)
  8637. 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))), 0.1)
  8638. 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))), 0.1)
  8639. 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))), 0.1)
  8640. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
  8641. elseif ModeOfGlitch == 4 then
  8642. 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))), 0.1)
  8643. 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))), 0.1)
  8644. 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))), 0.1)
  8645. 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))), 0.1)
  8646. 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))), 0.1)
  8647. 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))), 0.1)
  8648. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then
  8649. 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))), 0.1)
  8650. 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))), 0.1)
  8651. 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))), 0.1)
  8652. 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))), 0.1)
  8653. 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))), 0.1)
  8654. 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))), 0.1)
  8655. end
  8656. end
  8657. elseif torvel >= 22 and hitfloor ~= nil then
  8658. Anim = "Run"
  8659. if attack == false then
  8660. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then
  8661. 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))), 0.1)
  8662. 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))), 0.1)
  8663. 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))), 0.1)
  8664. 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))), 0.1)
  8665. 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))), 0.1)
  8666. 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))), 0.1)
  8667. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  8668. 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)), 0.2)
  8669. 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)), 0.2)
  8670. 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)), 0.2)
  8671. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  8672. 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))), 0.2)
  8673. 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))), 0.2)
  8674. end
  8675. end
  8676. end
  8677. end
  8678. end
Advertisement
Add Comment
Please, Sign In to add comment