Advertisement
9Simplicity9

Untitled

Mar 25th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 200.65 KB | None | 0 0
  1. print("StarLighter Loaded")
  2. print("Edited by Frepix And UndeniableInfinity")
  3. print("Please Support The Original Creator Of This Script")
  4. print("2+ Days Editing")
  5. plr = game.Players.LocalPlayer
  6. char = plr.Character
  7. hum = char.Humanoid
  8. local KEYHOLD = false
  9. local cam = game.Workspace.CurrentCamera
  10. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  11. Camera = cam
  12. local CamInterrupt = false
  13. local TwoD = false
  14. local TargetInfo = {nil, nil}
  15. cam.CameraType = "Custom"
  16. t = char.Torso
  17. h = char.Head
  18. ra = char["Right Arm"]
  19. la = char["Left Arm"]
  20. rl = char["Right Leg"]
  21. ll = char["Left Leg"]
  22. tors = char.Torso
  23. lleg = char["Left Leg"]
  24. root = char.HumanoidRootPart
  25. hed = char.Head
  26. rleg = char["Right Leg"]
  27. rarm = char["Right Arm"]
  28. larm = char["Left Arm"]
  29. radian = math.rad
  30. random = math.random
  31. Vec3 = Vector3.new
  32. Inst = Instance.new
  33. cFrame = CFrame.new
  34. Euler = CFrame.fromEulerAnglesXYZ
  35. vt = Vector3.new
  36. bc = BrickColor.new
  37. br = BrickColor.random
  38. it = Instance.new
  39. cf = CFrame.new
  40. Animation_Speed = 3
  41. Player_Size = 1
  42. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  43. local Speed = 35
  44. local SINE = 0
  45. COS = math.cos
  46. ANGLES = CFrame.Angles
  47. local Effects2 = {}
  48. local Booleans = {CamFollow = true, GyroUse = true}
  49. function lerp(object, newCFrame, alpha)
  50. return object:lerp(newCFrame, alpha)
  51. end
  52.  
  53. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  54. ff.Visible = false
  55.  
  56. local Directer = Inst("BodyGyro", root)
  57. Directer.MaxTorque = Vec3(0, 0, 0)
  58. Directer.P = 600000
  59. local CPart = Inst("Part")
  60. CPart.Anchored = true
  61. CPart.CanCollide = false
  62. CPart.Locked = true
  63. CPart.Transparency = 1
  64. local rainbowmode = false
  65. local chaosmode = false
  66. kan = Instance.new("Sound", char)
  67. kan.Volume = 1.98
  68. kan.TimePosition = 0
  69. kan.PlaybackSpeed = 1
  70. kan.Pitch = 1
  71. kan.SoundId = "rbxassetid://415898123"
  72. kan.Name = "wrecked"
  73. kan.Looped = true
  74. kan:Play()
  75. function newTheme(ID, timepos, pitch, vol)
  76. local kanz = kan
  77. kanz.PlaybackSpeed = pitch
  78. kanz.Pitch = pitch
  79. kanz.SoundId = ID
  80. kanz.Name = "wrecked"
  81. kanz.Looped = true
  82. end
  83. function CameraShake(Times, Power, PlayerTarget)
  84. coroutine.resume(coroutine.create(function()
  85. FV = Instance.new("BoolValue", PlayerTarget)
  86. FV.Name = "CameraShake"
  87. for ShakeNum = 1, Times do
  88. swait()
  89. local ef = Power
  90. if ef >= 1 then
  91. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  92. else
  93. ef = Power * 10
  94. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  95. end
  96. end
  97. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  98. FV:Destroy()
  99. end))
  100. end
  101. function CameraEnshaking(Length, Intensity)
  102. coroutine.resume(coroutine.create(function()
  103. local intensity = 1 * Intensity
  104. local rotM = 0.01 * Intensity
  105. for i = 0, Length, 0.1 do
  106. swait()
  107. intensity = intensity - 0.05 * Intensity / Length
  108. rotM = rotM - 5.0E-4 * Intensity / Length
  109. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  110. 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)
  111. end
  112. Humanoid.CameraOffset = Vec3(0, 0, 0)
  113. end))
  114. end
  115. function CamShake(Part, Distan, Power, Times)
  116. local de = Part.Position
  117. for i, v in pairs(workspace:children()) do
  118. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  119. for _, c in pairs(v:children()) do
  120. if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then
  121. do
  122. local Noob = v.Humanoid
  123. if Noob ~= nil then
  124. coroutine.resume(coroutine.create(function()
  125. FV = Instance.new("BoolValue", Noob)
  126. FV.Name = "CameraShake"
  127. for ShakeNum = 1, Times do
  128. swait()
  129. local ef = Power
  130. if ef >= 1 then
  131. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  132. else
  133. ef = Power * 10
  134. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  135. end
  136. end
  137. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  138. FV:Destroy()
  139. end))
  140. CameraShake(Times, Power, Noob)
  141. end
  142. end
  143. end
  144. end
  145. end
  146. end
  147. end
  148. function chatfunc(text, color)
  149. local chat = coroutine.wrap(function()
  150. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  151. Character:FindFirstChild("TalkingBillBoard"):destroy()
  152. end
  153. local naeeym2 = Instance.new("BillboardGui", Character)
  154. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  155. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  156. naeeym2.Adornee = Character.Head
  157. naeeym2.Name = "TalkingBillBoard"
  158. local tecks2 = Instance.new("TextLabel", naeeym2)
  159. tecks2.BackgroundTransparency = 1
  160. tecks2.BorderSizePixel = 0
  161. tecks2.Text = ""
  162. tecks2.Font = "SciFi"
  163. tecks2.TextSize = 30
  164. tecks2.TextStrokeTransparency = 0
  165. tecks2.TextColor3 = color
  166. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  167. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  168. local tecks3 = Instance.new("TextLabel", naeeym2)
  169. tecks3.BackgroundTransparency = 1
  170. tecks3.BorderSizePixel = 0
  171. tecks3.Text = ""
  172. tecks3.Font = "SciFi"
  173. tecks3.TextSize = 30
  174. tecks3.TextStrokeTransparency = 0
  175. tecks3.TextColor3 = Color3.new(0, 0, 0)
  176. tecks3.TextStrokeColor3 = color
  177. tecks3.Size = UDim2.new(1, 0, 0.5, 0)
  178. coroutine.resume(coroutine.create(function()
  179. while true do
  180. swait(1)
  181. if chaosmode == true then
  182. tecks2.TextColor3 = BrickColor.random().Color
  183. tecks3.TextStrokeColor3 = BrickColor.random().Color
  184. end
  185. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  186. tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  187. tecks2.Rotation = math.random(-5, 5)
  188. tecks3.Rotation = math.random(-5, 5)
  189. end
  190. end))
  191. for i = 1, string.len(text) do
  192. CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
  193. tecks2.Text = string.sub(text, 1, i)
  194. tecks3.Text = string.sub(text, 1, i)
  195. swait(1)
  196. end
  197. wait(1)
  198. local randomrot = math.random(1, 2)
  199. if randomrot == 1 then
  200. for i = 1, 50 do
  201. swait()
  202. tecks2.Rotation = tecks2.Rotation - 0.75
  203. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  204. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  205. tecks3.Rotation = tecks2.Rotation + 0.75
  206. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  207. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  208. end
  209. elseif randomrot == 2 then
  210. for i = 1, 50 do
  211. swait()
  212. tecks2.Rotation = tecks2.Rotation + 0.75
  213. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  214. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  215. tecks3.Rotation = tecks2.Rotation - 0.75
  216. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  217. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  218. end
  219. end
  220. naeeym2:Destroy()
  221. end)
  222. chat()
  223. end
  224. local Create = LoadLibrary("RbxUtility").Create
  225. CFuncs = {
  226. Part = {
  227. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  228. local Part = Create("Part")({
  229. Parent = Parent,
  230. Reflectance = Reflectance,
  231. Transparency = Transparency,
  232. CanCollide = false,
  233. Locked = true,
  234. BrickColor = BrickColor.new(tostring(BColor)),
  235. Name = Name,
  236. Size = Size,
  237. Material = Material
  238. })
  239. RemoveOutlines(Part)
  240. return Part
  241. end
  242. },
  243. Mesh = {
  244. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  245. local Msh = Create(Mesh)({
  246. Parent = Part,
  247. Offset = OffSet,
  248. Scale = Scale
  249. })
  250. if Mesh == "SpecialMesh" then
  251. Msh.MeshType = MeshType
  252. Msh.MeshId = MeshId
  253. end
  254. return Msh
  255. end
  256. },
  257. Mesh = {
  258. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  259. local Msh = Create(Mesh)({
  260. Parent = Part,
  261. Offset = OffSet,
  262. Scale = Scale
  263. })
  264. if Mesh == "SpecialMesh" then
  265. Msh.MeshType = MeshType
  266. Msh.MeshId = MeshId
  267. end
  268. return Msh
  269. end
  270. },
  271. Weld = {
  272. Create = function(Parent, Part0, Part1, C0, C1)
  273. local Weld = Create("Weld")({
  274. Parent = Parent,
  275. Part0 = Part0,
  276. Part1 = Part1,
  277. C0 = C0,
  278. C1 = C1
  279. })
  280. return Weld
  281. end
  282. },
  283. Sound = {
  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, 10)
  295. end))
  296. end
  297. },
  298. LongSound = {
  299. Create = function(id, par, vol, pit)
  300. coroutine.resume(coroutine.create(function()
  301. local S = Create("Sound")({
  302. Volume = vol,
  303. Pitch = pit or 1,
  304. SoundId = id,
  305. Parent = par or workspace
  306. })
  307. wait()
  308. S:play()
  309. game:GetService("Debris"):AddItem(S, 30)
  310. end))
  311. end
  312. },
  313. ParticleEmitter = {
  314. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  315. local fp = Create("ParticleEmitter")({
  316. Parent = Parent,
  317. Color = ColorSequence.new(Color1, Color2),
  318. LightEmission = LightEmission,
  319. Size = Size,
  320. Texture = Texture,
  321. Transparency = Transparency,
  322. ZOffset = ZOffset,
  323. Acceleration = Accel,
  324. Drag = Drag,
  325. LockedToPart = LockedToPart,
  326. VelocityInheritance = VelocityInheritance,
  327. EmissionDirection = EmissionDirection,
  328. Enabled = Enabled,
  329. Lifetime = LifeTime,
  330. Rate = Rate,
  331. Rotation = Rotation,
  332. RotSpeed = RotSpeed,
  333. Speed = Speed,
  334. VelocitySpread = VelocitySpread
  335. })
  336. return fp
  337. end
  338. },
  339. CreateTemplate = {}
  340. }
  341. function New(Object, Parent, Name, Data)
  342. local Object = Instance.new(Object)
  343. for Index, Value in pairs(Data or {}) do
  344. Object[Index] = Value
  345. end
  346. Object.Parent = Parent
  347. Object.Name = Name
  348. return Object
  349. end
  350. local halocolor = BrickColor.new("Pastel light blue")
  351. local halocolor2 = BrickColor.new("Really black")
  352. local starcolor = BrickColor.new("Really black")
  353. local lunacolor = BrickColor.new("Navy blue")
  354. local lunacolor2 = BrickColor.new("Bright blue")
  355. local wepcolor = BrickColor.new("Really black")
  356. local maincolor = BrickColor.new("Really black")
  357. local m = Instance.new("Model", char)
  358. local m2 = Instance.new("Model", char)
  359. local m3 = Instance.new("Model", char)
  360. local mw1 = Instance.new("Model", char)
  361. local mw2 = Instance.new("Model", char)
  362. local extrawingmod1 = Instance.new("Model", char)
  363. local extrawingmod2 = Instance.new("Model", char)
  364. function CreateParta(parent, transparency, reflectance, material, brickcolor)
  365. local p = Instance.new("Part")
  366. p.TopSurface = 0
  367. p.BottomSurface = 0
  368. p.Parent = parent
  369. p.Size = Vector3.new(0.1, 0.1, 0.1)
  370. p.Transparency = transparency
  371. p.Reflectance = reflectance
  372. p.CanCollide = false
  373. p.Locked = true
  374. p.BrickColor = brickcolor
  375. p.Material = material
  376. return p
  377. end
  378. function CreateMesh(parent, meshtype, x1, y1, z1)
  379. local mesh = Instance.new("SpecialMesh", parent)
  380. mesh.MeshType = meshtype
  381. mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10)
  382. return mesh
  383. end
  384. function CreateSpecialMesh(parent, meshid, x1, y1, z1)
  385. local mesh = Instance.new("SpecialMesh", parent)
  386. mesh.MeshType = "FileMesh"
  387. mesh.MeshId = meshid
  388. mesh.Scale = Vector3.new(x1, y1, z1)
  389. return mesh
  390. end
  391. function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1)
  392. local mesh = Instance.new("SpecialMesh", parent)
  393. mesh.MeshType = "FileMesh"
  394. mesh.MeshId = meshid
  395. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  396. mesh.Scale = Vector3.new(x1, y1, z1)
  397. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  398. return mesh
  399. end
  400. function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za)
  401. local weld = Instance.new("Weld")
  402. weld.Parent = parent
  403. weld.Part0 = part0
  404. weld.Part1 = part1
  405. weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za)
  406. weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za)
  407. return weld
  408. end
  409. local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor)
  410. CreateMesh(handle, "Brick", 0, 0, 0)
  411. 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))
  412. local valuaring = 10
  413. for i = 0, 49 do
  414. valuaring = valuaring + 10
  415. rn = CreateParta(mw2, 0, 0, "Neon", halocolor)
  416. CreateMesh(rn, "Brick", 0.25, 0.1, 0.1)
  417. 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))
  418. end
  419. local handle = CreateParta(m, 1, 1, "Neon", maincolor)
  420. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  421. 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))
  422. local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  423. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  424. 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))
  425. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  426. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  427. 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))
  428. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  429. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  430. 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))
  431. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  432. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  433. 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))
  434. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  435. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  436. 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))
  437. local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  438. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  439. 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))
  440. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  441. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  442. 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))
  443. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  444. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  445. 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))
  446. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  447. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  448. 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))
  449. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  450. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  451. 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))
  452. local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  453. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  454. 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))
  455. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  456. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  457. 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))
  458. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  459. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  460. 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))
  461. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  462. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  463. 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))
  464. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  465. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  466. 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))
  467. local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  468. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  469. 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))
  470. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  471. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  472. 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))
  473. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  474. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  475. 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))
  476. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  477. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  478. 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))
  479. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  480. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  481. 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))
  482. local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  483. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  484. 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))
  485. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  486. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  487. 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))
  488. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  489. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  490. 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))
  491. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  492. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  493. 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))
  494. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  495. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  496. 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))
  497. local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  498. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  499. 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))
  500. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  501. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  502. 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))
  503. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  504. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  505. 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))
  506. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  507. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  508. 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))
  509. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  510. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  511. 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))
  512. local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  513. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  514. 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))
  515. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  516. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  517. 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))
  518. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  519. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  520. 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))
  521. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  522. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  523. 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))
  524. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  525. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  526. 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))
  527. local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  528. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  529. 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))
  530. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  531. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  532. 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))
  533. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  534. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  535. 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))
  536. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  537. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  538. 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))
  539. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  540. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  541. 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))
  542. local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  543. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  544. 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))
  545. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  546. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  547. 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))
  548. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  549. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  550. 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))
  551. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  552. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  553. 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))
  554. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  555. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  556. 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))
  557. local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  558. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  559. 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))
  560. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  561. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  562. 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))
  563. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  564. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  565. 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))
  566. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  567. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  568. 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))
  569. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  570. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  571. 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))
  572. local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  573. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  574. 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))
  575. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  576. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  577. 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))
  578. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  579. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  580. 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))
  581. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  582. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  583. 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))
  584. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  585. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  586. 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))
  587. local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  588. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  589. 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))
  590. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  591. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  592. 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))
  593. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  594. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  595. 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))
  596. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  597. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  598. 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))
  599. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  600. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  601. 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))
  602. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  603. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  604. 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))
  605. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  606. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  607. 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))
  608. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  609. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  610. 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))
  611. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  612. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  613. 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))
  614. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  615. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  616. 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))
  617. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  618. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  619. 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))
  620. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  621. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  622. 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))
  623. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  624. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  625. 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))
  626. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  627. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  628. 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))
  629. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  630. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  631. 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))
  632. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  633. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  634. 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))
  635. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  636. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  637. 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))
  638. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  639. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  640. 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))
  641. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  642. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  643. 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))
  644. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  645. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  646. 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))
  647. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  648. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  649. 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))
  650. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  651. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  652. 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))
  653. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  654. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  655. 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))
  656. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  657. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  658. 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))
  659. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  660. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  661. 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))
  662. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  663. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  664. 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))
  665. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  666. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  667. 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))
  668. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  669. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  670. 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))
  671. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  672. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  673. 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))
  674. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  675. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  676. 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))
  677. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  678. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  679. 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))
  680. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  681. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  682. 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))
  683. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  684. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  685. 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))
  686. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  687. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  688. 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))
  689. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  690. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  691. 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))
  692. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  693. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  694. 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))
  695. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  696. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  697. 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))
  698. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  699. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  700. 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))
  701. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  702. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  703. 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))
  704. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  705. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  706. 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))
  707. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  708. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  709. 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))
  710. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  711. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  712. 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))
  713. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  714. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  715. 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))
  716. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  717. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  718. 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))
  719. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  720. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  721. 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))
  722. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  723. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  724. 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))
  725. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  726. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  727. 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))
  728. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  729. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  730. 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))
  731. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  732. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  733. 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))
  734. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  735. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  736. 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))
  737. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  738. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  739. 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))
  740. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  741. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  742. 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))
  743. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  744. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  745. 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))
  746. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  747. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  748. 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))
  749. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  750. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  751. 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))
  752. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  753. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  754. 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))
  755. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  756. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  757. 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))
  758. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  759. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  760. 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))
  761. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  762. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  763. 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))
  764. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  765. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  766. 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))
  767. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  768. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  769. 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))
  770. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  771. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  772. 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))
  773. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  774. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  775. 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))
  776. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  777. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  778. 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))
  779. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  780. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  781. 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))
  782. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  783. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  784. 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))
  785. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  786. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  787. 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))
  788. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  789. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  790. 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))
  791. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  792. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  793. 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))
  794. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  795. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  796. 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))
  797. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  798. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  799. 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))
  800. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  801. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  802. 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))
  803. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  804. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  805. 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))
  806. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  807. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  808. 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))
  809. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  810. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  811. 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))
  812. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  813. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  814. 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))
  815. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  816. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  817. 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))
  818. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  819. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  820. 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))
  821. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  822. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  823. 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))
  824. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  825. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  826. 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))
  827. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  828. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  829. 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))
  830. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  831. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  832. 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))
  833. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  834. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  835. 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))
  836. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  837. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  838. 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))
  839. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  840. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  841. 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))
  842. for i, v in pairs(m:GetChildren()) do
  843. if v:IsA("Part") then
  844. v.BrickColor = BrickColor.new("Really black")
  845. v.Material = "Glass"
  846. end
  847. end
  848. for i, v in pairs(m2:GetChildren()) do
  849. if v:IsA("Part") then
  850. v.BrickColor = BrickColor.new("Crimson")
  851. v.Material = "Granite"
  852. end
  853. end
  854. for i, v in pairs(m3:GetChildren()) do
  855. if v:IsA("Part") then
  856. v.BrickColor = BrickColor.new("Really red")
  857. v.Material = "Neon"
  858. end
  859. end
  860. for i, v in pairs(mw2:GetChildren()) do
  861. if v:IsA("Part") then
  862. v.BrickColor = BrickColor.new("Really red")
  863. v.Material = "Neon"
  864. end
  865. end
  866. for i, v in pairs(mw1:GetChildren()) do
  867. if v:IsA("Part") then
  868. v.Transparency = 1
  869. v.BrickColor = BrickColor.new("Really red")
  870. v.Material = "Neon"
  871. end
  872. end
  873. for i, v in pairs(extrawingmod1:GetChildren()) do
  874. if v:IsA("Part") then
  875. v.Transparency = 1
  876. v.BrickColor = BrickColor.new("White")
  877. v.Material = "Neon"
  878. end
  879. end
  880. for i, v in pairs(extrawingmod2:GetChildren()) do
  881. if v:IsA("Part") then
  882. v.Transparency = 1
  883. v.BrickColor = BrickColor.new("White")
  884. v.Material = "Neon"
  885. end
  886. end
  887.  
  888. FHead = New("Part",char,"FHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  889. Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
  890. Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  891. FHead.CanCollide = false
  892.  
  893.  
  894.  
  895. local MAINRUINCOLOR = BrickColor.new("Really red")
  896. function RemoveOutlines(part)
  897. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  898. end
  899. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  900. local Part = Create("Part")({
  901. Parent = Parent,
  902. Reflectance = Reflectance,
  903. Transparency = Transparency,
  904. CanCollide = false,
  905. Locked = true,
  906. BrickColor = BrickColor.new(tostring(BColor)),
  907. Name = Name,
  908. Size = Size,
  909. Material = Material
  910. })
  911. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  912. RemoveOutlines(Part)
  913. return Part
  914. end
  915. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  916. local Msh = Create(Mesh)({
  917. Parent = Part,
  918. Offset = OffSet,
  919. Scale = Scale
  920. })
  921. if Mesh == "SpecialMesh" then
  922. Msh.MeshType = MeshType
  923. Msh.MeshId = MeshId
  924. end
  925. return Msh
  926. end
  927. function Swait(NUMBER)
  928. if NUMBER == 0 or NUMBER == nil then
  929. ArtificialHB.Event:wait()
  930. else
  931. for i = 1, NUMBER do
  932. ArtificialHB.Event:wait()
  933. end
  934. end
  935. end
  936. function CreateWeld(Parent, Part0, Part1, C0, C1)
  937. local Weld = Create("Weld")({
  938. Parent = Parent,
  939. Part0 = Part0,
  940. Part1 = Part1,
  941. C0 = C0,
  942. C1 = C1
  943. })
  944. return Weld
  945. end
  946. Player = game:GetService("Players").LocalPlayer
  947. Character = Player.Character
  948. PlayerGui = Player.PlayerGui
  949. Backpack = Player.Backpack
  950. Torso = Character.Torso
  951. Head = Character.Head
  952. Humanoid = Character.Humanoid
  953. m = Instance.new("Model", Character)
  954. LeftArm = Character["Left Arm"]
  955. LeftLeg = Character["Left Leg"]
  956. RightArm = Character["Right Arm"]
  957. RightLeg = Character["Right Leg"]
  958. LS = Torso["Left Shoulder"]
  959. LH = Torso["Left Hip"]
  960. RS = Torso["Right Shoulder"]
  961. RH = Torso["Right Hip"]
  962. Face = Head.face
  963. Neck = Torso.Neck
  964. it = Instance.new
  965. attacktype = 1
  966. vt = Vector3.new
  967. cf = CFrame.new
  968. euler = CFrame.fromEulerAnglesXYZ
  969. angles = CFrame.Angles
  970. cloaked = false
  971. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  972. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  973. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  974. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  975. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  976. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  977. RootPart = Character.HumanoidRootPart
  978. RootJoint = RootPart.RootJoint
  979. RootCF = euler(-1.57, 0, 3.14)
  980. attack = false
  981. attackdebounce = false
  982. deb = false
  983. equipped = true
  984. hand = false
  985. MMouse = nil
  986. combo = 0
  987. mana = 0
  988. trispeed = 0.2
  989. attackmode = "none"
  990. local idle = 0
  991. local Anim = "Idle"
  992. local Effects = {}
  993. local gun = false
  994. local shoot = false
  995. local sine = 0
  996. local change = 1
  997. player = nil
  998. local toggleTag = true
  999. local txt = Instance.new("BillboardGui", Head)
  1000. txt.Adornee = nil
  1001. txt.Name = "NameDetect"
  1002. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1003. txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
  1004. local text = Instance.new("TextLabel", txt)
  1005. text.Size = UDim2.new(5, 0, 3.5, 0)
  1006. text.FontSize = "Size8"
  1007. text.TextScaled = true
  1008. text.TextTransparency = 0
  1009. text.BackgroundTransparency = 1
  1010. text.TextTransparency = 0
  1011. text.TextStrokeTransparency = 0
  1012. text.Font = "Fantasy"
  1013. text.TextStrokeColor3 = Color3.new(1, 0, 0)
  1014. text.TextColor3 = Color3.new(0, 0, 0)
  1015. text.Text = "Sweet Dreams"
  1016. function RecolorTextAndRename(name, col1, col2)
  1017. text.TextStrokeColor3 = col2
  1018. text.TextColor3 = col1
  1019. text.Text = name
  1020. end
  1021. mouse = Player:GetMouse()
  1022. RSH, LSH = nil, nil
  1023. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  1024. RW.Name = "Right Shoulder"
  1025. LW.Name = "Left Shoulder"
  1026. LH = Torso["Left Hip"]
  1027. RH = Torso["Right Hip"]
  1028. TorsoColor = Torso.BrickColor
  1029. function NoOutline(Part)
  1030. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  1031. end
  1032. player = Player
  1033. ch = Character
  1034. RSH = ch.Torso["Right Shoulder"]
  1035. LSH = ch.Torso["Left Shoulder"]
  1036. RSH.Parent = nil
  1037. LSH.Parent = nil
  1038. RW.Name = "Right Shoulder"
  1039. RW.Part0 = ch.Torso
  1040. RW.C0 = cf(1.5, 0.5, 0)
  1041. RW.C1 = cf(0, 0.5, 0)
  1042. RW.Part1 = ch["Right Arm"]
  1043. RW.Parent = ch.Torso
  1044. LW.Name = "Left Shoulder"
  1045. LW.Part0 = ch.Torso
  1046. LW.C0 = cf(-1.5, 0.5, 0)
  1047. LW.C1 = cf(0, 0.5, 0)
  1048. LW.Part1 = ch["Left Arm"]
  1049. LW.Parent = ch.Torso
  1050. local Stats = Instance.new("BoolValue")
  1051. Stats.Name = "Stats"
  1052. Stats.Parent = Character
  1053. local Atk = Instance.new("NumberValue")
  1054. Atk.Name = "Damage"
  1055. Atk.Parent = Stats
  1056. Atk.Value = 1
  1057. local Def = Instance.new("NumberValue")
  1058. Def.Name = "Defense"
  1059. Def.Parent = Stats
  1060. Def.Value = 1
  1061. local Speed = Instance.new("NumberValue")
  1062. Speed.Name = "Speed"
  1063. Speed.Parent = Stats
  1064. Speed.Value = 1
  1065. local Mvmt = Instance.new("NumberValue")
  1066. Mvmt.Name = "Movement"
  1067. Mvmt.Parent = Stats
  1068. Mvmt.Value = 1
  1069. local donum = 0
  1070. function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  1071. local fp = it("Part")
  1072. fp.formFactor = formfactor
  1073. fp.Parent = parent
  1074. fp.Reflectance = reflectance
  1075. fp.Transparency = transparency
  1076. fp.CanCollide = false
  1077. fp.Locked = true
  1078. fp.BrickColor = brickcolor
  1079. fp.Name = name
  1080. fp.Size = size
  1081. fp.Position = Torso.Position
  1082. NoOutline(fp)
  1083. fp.Material = "SmoothPlastic"
  1084. fp:BreakJoints()
  1085. return fp
  1086. end
  1087. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  1088. local mesh = it(Mesh)
  1089. mesh.Parent = part
  1090. if Mesh == "SpecialMesh" then
  1091. mesh.MeshType = meshtype
  1092. if meshid ~= "nil" then
  1093. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  1094. end
  1095. end
  1096. mesh.Offset = offset
  1097. mesh.Scale = scale
  1098. return mesh
  1099. end
  1100. function weld(parent, part0, part1, c0)
  1101. local weld = it("Weld")
  1102. weld.Parent = parent
  1103. weld.Part0 = part0
  1104. weld.Part1 = part1
  1105. weld.C0 = c0
  1106. return weld
  1107. end
  1108. local Color1 = Torso.BrickColor
  1109. local bodvel = Instance.new("BodyVelocity")
  1110. local bg = Instance.new("BodyGyro")
  1111. function swait(num)
  1112. if num == 0 or num == nil then
  1113. game:service("RunService").Stepped:wait(0)
  1114. else
  1115. for i = 0, num do
  1116. game:service("RunService").Stepped:wait(0)
  1117. end
  1118. end
  1119. end
  1120. local r = 255
  1121. local g = 0
  1122. local b = 0
  1123. coroutine.resume(coroutine.create(function()
  1124. while wait() do
  1125. for i = 0, 50.8 do
  1126. swait()
  1127. g = g + 5
  1128. end
  1129. for i = 0, 50.8 do
  1130. swait()
  1131. r = r - 5
  1132. end
  1133. for i = 0, 50.8 do
  1134. swait()
  1135. b = b + 5
  1136. end
  1137. for i = 0, 50.8 do
  1138. swait()
  1139. g = g - 5
  1140. end
  1141. for i = 0, 50.8 do
  1142. swait()
  1143. r = r + 5
  1144. end
  1145. for i = 0, 50.8 do
  1146. swait()
  1147. b = b - 5
  1148. end
  1149. end
  1150. end))
  1151. function so(id, par, vol, pit)
  1152. coroutine.resume(coroutine.create(function()
  1153. local sou = Instance.new("Sound", par or workspace)
  1154. sou.Volume = vol
  1155. sou.Pitch = pit or 1
  1156. sou.SoundId = id
  1157. swait()
  1158. sou:play()
  1159. game:GetService("Debris"):AddItem(sou, 6)
  1160. end))
  1161. end
  1162. function clerp(a, b, t)
  1163. local qa = {
  1164. QuaternionFromCFrame(a)
  1165. }
  1166. local qb = {
  1167. QuaternionFromCFrame(b)
  1168. }
  1169. local ax, ay, az = a.x, a.y, a.z
  1170. local bx, by, bz = b.x, b.y, b.z
  1171. local _t = 1 - t
  1172. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1173. end
  1174. function QuaternionFromCFrame(cf)
  1175. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1176. local trace = m00 + m11 + m22
  1177. if trace > 0 then
  1178. local s = math.sqrt(1 + trace)
  1179. local recip = 0.5 / s
  1180. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1181. else
  1182. local i = 0
  1183. if m00 < m11 then
  1184. i = 1
  1185. end
  1186. if m22 > (i == 0 and m00 or m11) then
  1187. i = 2
  1188. end
  1189. if i == 0 then
  1190. local s = math.sqrt(m00 - m11 - m22 + 1)
  1191. local recip = 0.5 / s
  1192. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1193. elseif i == 1 then
  1194. local s = math.sqrt(m11 - m22 - m00 + 1)
  1195. local recip = 0.5 / s
  1196. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1197. elseif i == 2 then
  1198. local s = math.sqrt(m22 - m00 - m11 + 1)
  1199. local recip = 0.5 / s
  1200. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1201. end
  1202. end
  1203. end
  1204. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1205. local xs, ys, zs = x + x, y + y, z + z
  1206. local wx, wy, wz = w * xs, w * ys, w * zs
  1207. local xx = x * xs
  1208. local xy = x * ys
  1209. local xz = x * zs
  1210. local yy = y * ys
  1211. local yz = y * zs
  1212. local zz = z * zs
  1213. 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))
  1214. end
  1215. function QuaternionSlerp(a, b, t)
  1216. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1217. local startInterp, finishInterp
  1218. if cosTheta >= 1.0E-4 then
  1219. if 1 - cosTheta > 1.0E-4 then
  1220. local theta = math.acos(cosTheta)
  1221. local invSinTheta = 1 / math.sin(theta)
  1222. startInterp = math.sin((1 - t) * theta) * invSinTheta
  1223. finishInterp = math.sin(t * theta) * invSinTheta
  1224. else
  1225. startInterp = 1 - t
  1226. finishInterp = t
  1227. end
  1228. elseif 1 + cosTheta > 1.0E-4 then
  1229. local theta = math.acos(-cosTheta)
  1230. local invSinTheta = 1 / math.sin(theta)
  1231. startInterp = math.sin((t - 1) * theta) * invSinTheta
  1232. finishInterp = math.sin(t * theta) * invSinTheta
  1233. else
  1234. startInterp = t - 1
  1235. finishInterp = t
  1236. end
  1237. 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
  1238. end
  1239. local CFrameFromTopBack = function(at, top, back)
  1240. local right = top:Cross(back)
  1241. 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)
  1242. end
  1243. function Triangle(a, b, c)
  1244. local edg1 = (c - a):Dot((b - a).unit)
  1245. local edg2 = (a - b):Dot((c - b).unit)
  1246. local edg3 = (b - c):Dot((a - c).unit)
  1247. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  1248. a, b = a, b
  1249. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  1250. a, b, c = b, c, a
  1251. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  1252. a, b, c = c, a, b
  1253. else
  1254. assert(false, "unreachable")
  1255. end
  1256. local len1 = (c - a):Dot((b - a).unit)
  1257. local len2 = (b - a).magnitude - len1
  1258. local width = (a + (b - a).unit * len1 - c).magnitude
  1259. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  1260. local list = {}
  1261. if len1 > 0.01 then
  1262. local w1 = Instance.new("WedgePart", m)
  1263. game:GetService("Debris"):AddItem(w1, 5)
  1264. w1.Material = "SmoothPlastic"
  1265. w1.FormFactor = "Custom"
  1266. w1.BrickColor = BrickColor.new("Really red")
  1267. w1.Transparency = 0
  1268. w1.Reflectance = 0
  1269. w1.Material = "SmoothPlastic"
  1270. w1.CanCollide = false
  1271. local l1 = Instance.new("PointLight", w1)
  1272. l1.Color = Color3.new(170, 0, 0)
  1273. NoOutline(w1)
  1274. local sz = Vector3.new(0.2, width, len1)
  1275. w1.Size = sz
  1276. local sp = Instance.new("SpecialMesh", w1)
  1277. sp.MeshType = "Wedge"
  1278. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  1279. w1:BreakJoints()
  1280. w1.Anchored = true
  1281. w1.Parent = workspace
  1282. w1.Transparency = 0.7
  1283. table.insert(Effects, {
  1284. w1,
  1285. "Disappear",
  1286. 0.01
  1287. })
  1288. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  1289. table.insert(list, w1)
  1290. end
  1291. if len2 > 0.01 then
  1292. local w2 = Instance.new("WedgePart", m)
  1293. game:GetService("Debris"):AddItem(w2, 5)
  1294. w2.Material = "SmoothPlastic"
  1295. w2.FormFactor = "Custom"
  1296. w2.BrickColor = BrickColor.new("Really red")
  1297. w2.Transparency = 0
  1298. w2.Reflectance = 0
  1299. w2.Material = "SmoothPlastic"
  1300. w2.CanCollide = false
  1301. local l2 = Instance.new("PointLight", w2)
  1302. l2.Color = Color3.new(170, 0, 0)
  1303. NoOutline(w2)
  1304. local sz = Vector3.new(0.2, width, len2)
  1305. w2.Size = sz
  1306. local sp = Instance.new("SpecialMesh", w2)
  1307. sp.MeshType = "Wedge"
  1308. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  1309. w2:BreakJoints()
  1310. w2.Anchored = true
  1311. w2.Parent = workspace
  1312. w2.Transparency = 0.7
  1313. table.insert(Effects, {
  1314. w2,
  1315. "Disappear",
  1316. 0.01
  1317. })
  1318. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  1319. table.insert(list, w2)
  1320. end
  1321. return unpack(list)
  1322. end
  1323. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1324. if hit.Parent == nil then
  1325. return
  1326. end
  1327. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1328. for _, v in pairs(hit.Parent:children()) do
  1329. if v:IsA("Humanoid") then
  1330. h = v
  1331. end
  1332. end
  1333. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1334. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1335. return
  1336. end
  1337. local c = Create("ObjectValue")({
  1338. Name = "creator",
  1339. Value = game:service("Players").LocalPlayer,
  1340. Parent = h
  1341. })
  1342. game:GetService("Debris"):AddItem(c, 0.5)
  1343. if HitSound ~= nil and HitPitch ~= nil then
  1344. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1345. end
  1346. local Damage = math.random(minim, maxim)
  1347. local blocked = false
  1348. local block = hit.Parent:findFirstChild("Block")
  1349. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1350. blocked = true
  1351. block.Value = block.Value - 1
  1352. print(block.Value)
  1353. end
  1354. if blocked == false then
  1355. HitHealth = h.Health
  1356. h.Health = h.Health - Damage
  1357. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1358. print("gained kill")
  1359. end
  1360. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1361. else
  1362. h.Health = h.Health - Damage / 2
  1363. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1364. end
  1365. if Type == "Knockdown" then
  1366. local hum = hit.Parent.Humanoid
  1367. hum.PlatformStand = true
  1368. coroutine.resume(coroutine.create(function(HHumanoid)
  1369. swait(1)
  1370. HHumanoid.PlatformStand = false
  1371. end), hum)
  1372. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1373. local bodvol = Create("BodyVelocity")({
  1374. velocity = angle * knockback,
  1375. P = 5000,
  1376. maxForce = Vector3.new(8000, 8000, 8000),
  1377. Parent = hit
  1378. })
  1379. local rl = Create("BodyAngularVelocity")({
  1380. P = 3000,
  1381. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1382. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1383. Parent = hit
  1384. })
  1385. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1386. game:GetService("Debris"):AddItem(rl, 0.5)
  1387. elseif Type == "Normal" then
  1388. local vp = Create("BodyVelocity")({
  1389. P = 500,
  1390. maxForce = Vector3.new(math.huge, 0, math.huge),
  1391. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1392. })
  1393. if knockback > 0 then
  1394. vp.Parent = hit.Parent.Head
  1395. end
  1396. game:GetService("Debris"):AddItem(vp, 0.5)
  1397. elseif Type == "Up" then
  1398. local bodyVelocity = Create("BodyVelocity")({
  1399. velocity = Vector3.new(0, 20, 0),
  1400. P = 5000,
  1401. maxForce = Vector3.new(8000, 8000, 8000),
  1402. Parent = hit
  1403. })
  1404. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1405. local bodyVelocity = Create("BodyVelocity")({
  1406. velocity = Vector3.new(0, 20, 0),
  1407. P = 5000,
  1408. maxForce = Vector3.new(8000, 8000, 8000),
  1409. Parent = hit
  1410. })
  1411. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1412. elseif Type == "Leech" then
  1413. local hum = hit.Parent.Humanoid
  1414. if hum ~= nil then
  1415. for i = 0, 2 do
  1416. 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)
  1417. end
  1418. Humanoid.Health = Humanoid.Health + 10
  1419. end
  1420. elseif Type == "UpKnock" then
  1421. local hum = hit.Parent.Humanoid
  1422. hum.PlatformStand = true
  1423. if hum ~= nil then
  1424. hitr = true
  1425. end
  1426. coroutine.resume(coroutine.create(function(HHumanoid)
  1427. swait(5)
  1428. HHumanoid.PlatformStand = false
  1429. hitr = false
  1430. end), hum)
  1431. local bodyVelocity = Create("BodyVelocity")({
  1432. velocity = Vector3.new(0, 20, 0),
  1433. P = 5000,
  1434. maxForce = Vector3.new(8000, 8000, 8000),
  1435. Parent = hit
  1436. })
  1437. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1438. local bodyVelocity = Create("BodyVelocity")({
  1439. velocity = Vector3.new(0, 20, 0),
  1440. P = 5000,
  1441. maxForce = Vector3.new(8000, 8000, 8000),
  1442. Parent = hit
  1443. })
  1444. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1445. elseif Type == "Snare" then
  1446. local bp = Create("BodyPosition")({
  1447. P = 2000,
  1448. D = 100,
  1449. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1450. position = hit.Parent.Torso.Position,
  1451. Parent = hit.Parent.Torso
  1452. })
  1453. game:GetService("Debris"):AddItem(bp, 1)
  1454. elseif Type == "Slashnare" then
  1455. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07)
  1456. for i = 1, math.random(4, 5) do
  1457. 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)
  1458. end
  1459. local bp = Create("BodyPosition")({
  1460. P = 2000,
  1461. D = 100,
  1462. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1463. position = hit.Parent.Torso.Position,
  1464. Parent = hit.Parent.Torso
  1465. })
  1466. game:GetService("Debris"):AddItem(bp, 1)
  1467. elseif Type == "Spike" then
  1468. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1469. local bp = Create("BodyPosition")({
  1470. P = 2000,
  1471. D = 100,
  1472. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1473. position = hit.Parent.Torso.Position,
  1474. Parent = hit.Parent.Torso
  1475. })
  1476. game:GetService("Debris"):AddItem(bp, 1)
  1477. elseif Type == "Freeze" then
  1478. local BodPos = Create("BodyPosition")({
  1479. P = 50000,
  1480. D = 1000,
  1481. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1482. position = hit.Parent.Torso.Position,
  1483. Parent = hit.Parent.Torso
  1484. })
  1485. local BodGy = Create("BodyGyro")({
  1486. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1487. P = 20000,
  1488. Parent = hit.Parent.Torso,
  1489. cframe = hit.Parent.Torso.CFrame
  1490. })
  1491. hit.Parent.Torso.Anchored = true
  1492. coroutine.resume(coroutine.create(function(Part)
  1493. swait(1.5)
  1494. Part.Anchored = false
  1495. end), hit.Parent.Torso)
  1496. game:GetService("Debris"):AddItem(BodPos, 3)
  1497. game:GetService("Debris"):AddItem(BodGy, 3)
  1498. end
  1499. local debounce = Create("BoolValue")({
  1500. Name = "DebounceHit",
  1501. Parent = hit.Parent,
  1502. Value = true
  1503. })
  1504. game:GetService("Debris"):AddItem(debounce, Delay)
  1505. c = Instance.new("ObjectValue")
  1506. c.Name = "creator"
  1507. c.Value = Player
  1508. c.Parent = h
  1509. game:GetService("Debris"):AddItem(c, 0.5)
  1510. end
  1511. end
  1512. function ShowDamage(Pos, Text, Time, Color)
  1513. local Rate = 0.03333333333333333
  1514. local Pos = Pos or Vector3.new(0, 0, 0)
  1515. local Text = Text or ""
  1516. local Time = Time or 2
  1517. local Color = Color or Color3.new(1, 0, 1)
  1518. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1519. EffectPart.Anchored = true
  1520. local BillboardGui = Create("BillboardGui")({
  1521. Size = UDim2.new(3, 0, 3, 0),
  1522. Adornee = EffectPart,
  1523. Parent = EffectPart
  1524. })
  1525. local TextLabel = Create("TextLabel")({
  1526. BackgroundTransparency = 1,
  1527. Size = UDim2.new(1, 0, 1, 0),
  1528. Text = Text,
  1529. TextColor3 = Color,
  1530. TextScaled = true,
  1531. Font = Enum.Font.ArialBold,
  1532. Parent = BillboardGui
  1533. })
  1534. game.Debris:AddItem(EffectPart, Time + 0.1)
  1535. EffectPart.Parent = game:GetService("Workspace")
  1536. delay(0, function()
  1537. local Frames = Time / Rate
  1538. for Frame = 1, Frames do
  1539. wait(Rate)
  1540. local Percent = Frame / Frames
  1541. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1542. TextLabel.TextTransparency = Percent
  1543. end
  1544. if EffectPart and EffectPart.Parent then
  1545. EffectPart:Destroy()
  1546. end
  1547. end)
  1548. end
  1549. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1550. for _, c in pairs(workspace:children()) do
  1551. local hum = c:findFirstChildOfClass("Humanoid")
  1552. if hum ~= nil then
  1553. local head = c:findFirstChild("Head")
  1554. if head ~= nil then
  1555. local targ = head.Position - Part.Position
  1556. local mag = targ.magnitude
  1557. if magni >= mag and c.Name ~= Player.Name then
  1558. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1559. end
  1560. end
  1561. end
  1562. end
  1563. end
  1564. function FindNearestTorso(Position, Distance, SinglePlayer)
  1565. if SinglePlayer then
  1566. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  1567. end
  1568. local List = {}
  1569. for i, v in pairs(workspace:GetChildren()) do
  1570. if v:IsA("Model") then
  1571. if v:findFirstChild("Torso") then
  1572. if v ~= Character then
  1573. if (v.Torso.Position - Position).magnitude <= Distance then
  1574. table.insert(List, v)
  1575. end
  1576. end
  1577. end
  1578. end
  1579. end
  1580. return List
  1581. end
  1582. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1583. for _, c in pairs(workspace:children()) do
  1584. local hum = c:findFirstChild("Humanoid")
  1585. if hum ~= nil then
  1586. local head = c:findFirstChild("Torso")
  1587. if head ~= nil then
  1588. local targ = head.Position - Part.Position
  1589. local mag = targ.magnitude
  1590. if magni >= mag and c.Name ~= Player.Name then
  1591. MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
  1592. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1593. end
  1594. end
  1595. end
  1596. end
  1597. end
  1598. function rayCast(Pos, Dir, Max, Ignore)
  1599. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1600. end
  1601. function SkullEffect(brickcolor, cframe, x1, y1, z1, delay)
  1602. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1603. prt.Anchored = true
  1604. prt.CFrame = cframe
  1605. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  1606. game:GetService("Debris"):AddItem(prt, 2)
  1607. CF = prt.CFrame
  1608. coroutine.resume(coroutine.create(function(Part, Mesh, TehCF)
  1609. for i = 0, 1, 0.2 do
  1610. wait()
  1611. Part.CFrame = CF * cf(0, 0, -0.4)
  1612. end
  1613. for i = 0, 1, delay do
  1614. wait()
  1615. Mesh.Scale = Mesh.Scale
  1616. end
  1617. for i = 0, 1, 0.1 do
  1618. wait()
  1619. Part.Transparency = i
  1620. end
  1621. Part.Parent = nil
  1622. end), prt, msh, CF)
  1623. end
  1624. function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1625. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1626. prt.Anchored = true
  1627. prt.Material = "Neon"
  1628. prt.CFrame = cframe
  1629. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1630. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1631. game:GetService("Debris"):AddItem(prt, 5)
  1632. coroutine.resume(coroutine.create(function(Part, Mesh)
  1633. for i = 0, 1, delay do
  1634. swait()
  1635. Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1636. Part.Transparency = i
  1637. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1638. end
  1639. Part.Parent = nil
  1640. end), prt, msh)
  1641. end
  1642. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1643. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1644. prt.Anchored = true
  1645. prt.Material = "Neon"
  1646. prt.CFrame = cframe
  1647. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1648. game:GetService("Debris"):AddItem(prt, 5)
  1649. coroutine.resume(coroutine.create(function(Part, Mesh)
  1650. local rtype = rottype
  1651. for i = 0, 1, delay do
  1652. swait()
  1653. if rtype == 1 then
  1654. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1655. elseif rtype == 2 then
  1656. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1657. end
  1658. Part.Transparency = i
  1659. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1660. end
  1661. Part.Parent = nil
  1662. end), prt, msh)
  1663. end
  1664. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1665. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1666. prt.Anchored = true
  1667. prt.CFrame = cframe
  1668. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1669. msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1670. game:GetService("Debris"):AddItem(prt, 5)
  1671. coroutine.resume(coroutine.create(function(Part, Mesh)
  1672. for i = 0, 1, delay do
  1673. wait()
  1674. Part.Transparency = i
  1675. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1676. end
  1677. Part.Parent = nil
  1678. end), prt, msh)
  1679. end
  1680. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1681. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1682. prt.Anchored = true
  1683. prt.Material = "Neon"
  1684. prt.CFrame = cframe
  1685. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1686. game:GetService("Debris"):AddItem(prt, 5)
  1687. coroutine.resume(coroutine.create(function(Part, Mesh)
  1688. local rtype = rottype
  1689. for i = 0, 1, delay do
  1690. swait()
  1691. if rtype == 1 then
  1692. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1693. elseif rtype == 2 then
  1694. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1695. end
  1696. Part.Transparency = i
  1697. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1698. end
  1699. Part.Parent = nil
  1700. end), prt, msh)
  1701. end
  1702. function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  1703. local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1704. prt.Anchored = true
  1705. prt.Material = "Neon"
  1706. prt.CFrame = cframe
  1707. local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  1708. local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  1709. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  1710. game:GetService("Debris"):AddItem(prt, 5)
  1711. coroutine.resume(coroutine.create(function(Part, Mesh)
  1712. local rtype = rottype
  1713. for i = 0, 1, delay do
  1714. swait()
  1715. if rtype == 1 then
  1716. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1717. elseif rtype == 2 then
  1718. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1719. end
  1720. dec.Transparency = i
  1721. dec2.Transparency = i
  1722. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  1723. end
  1724. Part.Parent = nil
  1725. end), prt, msh)
  1726. end
  1727. function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  1728. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1729. prt.Anchored = true
  1730. prt.Material = "Neon"
  1731. prt.CFrame = cframe
  1732. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  1733. game:GetService("Debris"):AddItem(prt, 5)
  1734. coroutine.resume(coroutine.create(function(Part, Mesh)
  1735. local rtype = rottype
  1736. for i = 0, 1, delay do
  1737. swait()
  1738. if rtype == 1 then
  1739. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1740. elseif rtype == 2 then
  1741. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1742. end
  1743. prt.Transparency = i
  1744. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  1745. end
  1746. Part.Parent = nil
  1747. end), prt, msh)
  1748. end
  1749. function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype)
  1750. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1751. prt.Anchored = true
  1752. prt.Material = "Neon"
  1753. prt.CFrame = cframe
  1754. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
  1755. game:GetService("Debris"):AddItem(prt, 5)
  1756. coroutine.resume(coroutine.create(function(Part, Mesh)
  1757. local rtype = rottype
  1758. for i = 0, 1, delay do
  1759. swait()
  1760. if rtype == 1 then
  1761. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0)
  1762. elseif rtype == 2 then
  1763. prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0)
  1764. end
  1765. prt.Transparency = i
  1766. Mesh.Scale = Mesh.Scale + vt(x3, 0, z3)
  1767. end
  1768. Part.Parent = nil
  1769. end), prt, msh)
  1770. end
  1771. function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype)
  1772. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1773. prt.Anchored = true
  1774. prt.Material = "Neon"
  1775. prt.CFrame = cframe
  1776. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1777. game:GetService("Debris"):AddItem(prt, 5)
  1778. coroutine.resume(coroutine.create(function(Part, Mesh)
  1779. local rtype = rottype
  1780. for i = 0, 1, delay do
  1781. swait()
  1782. if rtype == 1 then
  1783. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1784. elseif rtype == 2 then
  1785. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1786. end
  1787. prt.Transparency = i
  1788. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  1789. end
  1790. Part.Parent = nil
  1791. end), prt, msh)
  1792. end
  1793. function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1794. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1795. prt.Anchored = true
  1796. prt.Material = "Neon"
  1797. prt.CFrame = cframe
  1798. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1799. game:GetService("Debris"):AddItem(prt, 5)
  1800. coroutine.resume(coroutine.create(function(Part, Mesh)
  1801. local rtype = rottype
  1802. for i = 0, 1, delay do
  1803. swait()
  1804. if rtype == 1 then
  1805. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1806. elseif rtype == 2 then
  1807. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1808. end
  1809. prt.Transparency = i
  1810. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1811. end
  1812. Part.Parent = nil
  1813. end), prt, msh)
  1814. end
  1815. function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  1816. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1817. prt.Anchored = false
  1818. prt.CFrame = cframe
  1819. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1820. local wld = weld(prt, prt, Parent, cframe)
  1821. game:GetService("Debris"):AddItem(prt, 5)
  1822. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  1823. for i = 0, 1, delay do
  1824. wait()
  1825. Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe
  1826. Part.Transparency = i
  1827. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1828. end
  1829. Part.Parent = nil
  1830. end), prt, msh, wld)
  1831. end
  1832. function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  1833. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1834. prt.Anchored = false
  1835. prt.CFrame = cframe
  1836. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1837. local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0))
  1838. game:GetService("Debris"):AddItem(prt, 5)
  1839. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  1840. for i = 0, 1, delay do
  1841. wait()
  1842. Weld.C0 = euler(i * 20, 0, 0)
  1843. Part.Transparency = i
  1844. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1845. end
  1846. Part.Parent = nil
  1847. end), prt, msh, wld)
  1848. end
  1849. function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1850. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1851. prt.Anchored = true
  1852. prt.CFrame = cframe
  1853. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1854. game:GetService("Debris"):AddItem(prt, 2)
  1855. coroutine.resume(coroutine.create(function(Part, Mesh)
  1856. for i = 0, 1, delay do
  1857. wait()
  1858. Part.CFrame = Part.CFrame
  1859. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1860. local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1861. prt2.Anchored = true
  1862. prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1863. local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  1864. game:GetService("Debris"):AddItem(prt2, 2)
  1865. coroutine.resume(coroutine.create(function(Part, Mesh)
  1866. for i = 0, 1, 0.1 do
  1867. wait()
  1868. Part.CFrame = Part.CFrame * cf(0, 0.5, 0)
  1869. end
  1870. Part.Parent = nil
  1871. end), prt2, msh2)
  1872. end
  1873. for i = 0, 1, delay * 2 do
  1874. wait()
  1875. Part.CFrame = Part.CFrame
  1876. Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i)
  1877. end
  1878. Part.Parent = nil
  1879. end), prt, msh)
  1880. end
  1881. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1882. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1883. prt.Anchored = true
  1884. prt.CFrame = cframe
  1885. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1886. game:GetService("Debris"):AddItem(prt, 2)
  1887. coroutine.resume(coroutine.create(function(Part, Mesh)
  1888. for i = 0, 1, delay do
  1889. wait()
  1890. Part.CFrame = Part.CFrame
  1891. Part.Transparency = i
  1892. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1893. end
  1894. Part.Parent = nil
  1895. end), prt, msh)
  1896. end
  1897. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  1898. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1899. prt.Anchored = true
  1900. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1901. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1902. game:GetService("Debris"):AddItem(prt, 2)
  1903. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  1904. CF = Part.CFrame
  1905. Numbb = 0
  1906. randnumb = math.random() / 10
  1907. rand1 = math.random() / 10
  1908. for i = 0, 1, rand1 do
  1909. wait()
  1910. CF = CF * cf(0, math.random() / 2, 0)
  1911. Part.CFrame = CF * euler(Numbb, 0, 0)
  1912. Part.Transparency = i
  1913. Numbb = Numbb + randnumb
  1914. end
  1915. Part.Parent = nil
  1916. end), prt, CF, Numbb, randnumb)
  1917. end
  1918. function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1919. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1920. prt.Anchored = true
  1921. prt.CFrame = cframe
  1922. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
  1923. game:GetService("Debris"):AddItem(prt, 5)
  1924. coroutine.resume(coroutine.create(function(Part, Mesh)
  1925. for i = 0, 1, delay do
  1926. wait()
  1927. Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
  1928. Part.Transparency = i
  1929. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1930. end
  1931. Part.Parent = nil
  1932. end), prt, msh)
  1933. end
  1934. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1935. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1936. prt.Anchored = true
  1937. prt.CFrame = cframe
  1938. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1939. game:GetService("Debris"):AddItem(prt, 2)
  1940. coroutine.resume(coroutine.create(function(Part, Mesh)
  1941. for i = 0, 1, delay do
  1942. wait()
  1943. Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
  1944. Part.Transparency = i
  1945. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1946. end
  1947. Part.Parent = nil
  1948. end), prt, msh)
  1949. end
  1950. function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
  1951. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1952. prt.Anchored = true
  1953. prt.CFrame = cframe * cf(x, y, z)
  1954. msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
  1955. game:GetService("Debris"):AddItem(prt, 5)
  1956. coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
  1957. local num = math.random()
  1958. local num2 = math.random(-3, 2) + math.random()
  1959. local numm = 0
  1960. for i = 0, 1, delay * 2 do
  1961. swait()
  1962. Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
  1963. Part.Transparency = i
  1964. numm = numm + 0.01
  1965. end
  1966. Part.Parent = nil
  1967. Mesh.Parent = nil
  1968. end), prt, msh, x, y, z)
  1969. end
  1970. function dmgstart(dmg, what)
  1971. hitcon = what.Touched:connect(function(hit)
  1972. local hum = hit.Parent:FindFirstChild("Humanoid")
  1973. if hum and not hum:IsDescendantOf(Character) then
  1974. hum:TakeDamage(dmg)
  1975. end
  1976. end)
  1977. end
  1978. function dmgstop()
  1979. hitcon:disconnect()
  1980. end
  1981. function Cloak()
  1982. Face.Parent = nil
  1983. cloaked = true
  1984. for _, v in pairs(Torso.Parent:children()) do
  1985. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  1986. coroutine.resume(coroutine.create(function()
  1987. for i = 0, 1, 0.2 do
  1988. wait()
  1989. v.Transparency = i
  1990. end
  1991. v.Transparency = 1
  1992. end))
  1993. end
  1994. if v.className == "Hat" then
  1995. hatp = v.Handle
  1996. coroutine.resume(coroutine.create(function(derp)
  1997. for i = 0, 1, 0.2 do
  1998. wait()
  1999. derp.Transparency = i
  2000. end
  2001. derp.Transparency = 1
  2002. end), hatp)
  2003. end
  2004. end
  2005. for _, v in pairs(m:children()) do
  2006. if v.className == "Part" then
  2007. coroutine.resume(coroutine.create(function()
  2008. for i = 0, 1, 0.2 do
  2009. wait()
  2010. v.Transparency = i
  2011. end
  2012. v.Transparency = 1
  2013. end))
  2014. end
  2015. end
  2016. end
  2017. function UnCloak()
  2018. so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
  2019. Face.Parent = Head
  2020. cloaked = false
  2021. for _, v in pairs(Torso.Parent:children()) do
  2022. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2023. coroutine.resume(coroutine.create(function()
  2024. for i = 0, 1, 0.1 do
  2025. wait()
  2026. v.Transparency = v.Transparency - 0.1
  2027. end
  2028. v.Transparency = 0
  2029. end))
  2030. end
  2031. if v.className == "Hat" then
  2032. hatp = v.Handle
  2033. coroutine.resume(coroutine.create(function(derp)
  2034. for i = 0, 1, 0.1 do
  2035. wait()
  2036. derp.Transparency = derp.Transparency - 0.1
  2037. end
  2038. derp.Transparency = 0
  2039. end), hatp)
  2040. end
  2041. end
  2042. for _, v in pairs(m:children()) do
  2043. if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
  2044. coroutine.resume(coroutine.create(function()
  2045. for i = 0, 1, 0.1 do
  2046. wait()
  2047. v.Transparency = v.Transparency - 0.1
  2048. end
  2049. v.Transparency = 0
  2050. end))
  2051. v.Transparency = 0
  2052. end
  2053. end
  2054. end
  2055. local origcolor = BrickColor.new("Pastel light blue")
  2056. function Explode(rad, par, pitch, vol, mindam, maxdam)
  2057. local expart = Instance.new("Part", char)
  2058. local expart2 = Instance.new("Part", char)
  2059. local rin = Instance.new("Part", char)
  2060. local rin2 = Instance.new("Part", char)
  2061. local partMesh = Instance.new("SpecialMesh", expart)
  2062. partMesh.MeshType = "Sphere"
  2063. local partMesh2 = Instance.new("SpecialMesh", expart2)
  2064. partMesh2.MeshType = "Sphere"
  2065. local partMesh3 = Instance.new("SpecialMesh", rin)
  2066. partMesh3.MeshType = "Brick"
  2067. local partMesh4 = Instance.new("SpecialMesh", rin2)
  2068. partMesh4.MeshType = "Brick"
  2069. CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
  2070. partMesh.Scale = vt(rad, rad, rad)
  2071. expart.Size = vt(1, 1, 1)
  2072. expart.Transparency = 0
  2073. expart.Anchored = true
  2074. expart.Material = "Neon"
  2075. expart.BrickColor = bc("White")
  2076. expart.CFrame = par.CFrame
  2077. partMesh2.Scale = vt(rad, rad, rad)
  2078. expart2.Size = vt(1.15, 1.15, 1.15)
  2079. expart2.Transparency = 0.5
  2080. expart2.Anchored = true
  2081. expart2.Material = "Neon"
  2082. expart2.BrickColor = par.BrickColor
  2083. expart2.CFrame = par.CFrame
  2084. rin.Size = vt(1.15, 1.15, 1.15)
  2085. rin.Transparency = 1
  2086. rin.Anchored = true
  2087. rin.Material = "Neon"
  2088. rin.BrickColor = par.BrickColor
  2089. rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  2090. rin2.Size = vt(1.15, 1.15, 1.15)
  2091. rin2.Transparency = 1
  2092. rin2.Anchored = true
  2093. rin2.Material = "Neon"
  2094. rin2.BrickColor = par.BrickColor
  2095. rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  2096. partMesh3.Scale = vt(0, 1, 0)
  2097. partMesh4.Scale = vt(0, 1, 0)
  2098. local dec2 = Instance.new("Decal", rin)
  2099. dec2.Face = "Top"
  2100. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2101. dec2.Parent = rin
  2102. local dec2b = dec2:Clone()
  2103. dec2b.Face = "Bottom"
  2104. dec2b.Parent = rin
  2105. local dec2a = Instance.new("Decal", rin2)
  2106. dec2a.Face = "Top"
  2107. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2108. dec2a.Parent = rin2
  2109. local dec2ab = dec2a:Clone()
  2110. dec2ab.Face = "Bottom"
  2111. dec2ab.Parent = rin2
  2112. expart.CanCollide = false
  2113. expart2.CanCollide = false
  2114. rin.CanCollide = false
  2115. rin2.CanCollide = false
  2116. MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
  2117. local value = 1 * rad / 6.5
  2118. for i = 0, 199 do
  2119. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2120. expart.CFrame = expart.CFrame
  2121. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  2122. expart2.CFrame = expart.CFrame
  2123. value = value - 0.035 * rad / 30
  2124. if value < 7.5 then
  2125. partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
  2126. rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
  2127. partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
  2128. rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
  2129. end
  2130. if value < 0 then
  2131. dec2.Transparency = dec2.Transparency + 0.025
  2132. dec2a.Transparency = dec2a.Transparency + 0.025
  2133. dec2b.Transparency = dec2b.Transparency + 0.025
  2134. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2135. expart.Transparency = expart.Transparency + 0.025
  2136. expart2.Transparency = expart2.Transparency + 0.025
  2137. rin.Transparency = rin.Transparency + 0.025
  2138. rin2.Transparency = rin2.Transparency + 0.025
  2139. end
  2140. swait()
  2141. end
  2142. game:GetService("Debris"):AddItem(expart, 1)
  2143. game:GetService("Debris"):AddItem(expart2, 1)
  2144. game:GetService("Debris"):AddItem(rin, 1)
  2145. game:GetService("Debris"):AddItem(rin2, 1)
  2146. end
  2147. function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
  2148. local expart = Instance.new("Part", char)
  2149. local expart2 = Instance.new("Part", char)
  2150. local partMesh = Instance.new("SpecialMesh", expart)
  2151. partMesh.MeshType = "Sphere"
  2152. local partMesh2 = Instance.new("SpecialMesh", expart2)
  2153. partMesh2.MeshType = "Sphere"
  2154. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
  2155. partMesh.Scale = vt(rad, rad, rad)
  2156. expart.Size = vt(1, 1, 1)
  2157. expart.Transparency = 0
  2158. expart.Anchored = true
  2159. expart.Material = "Neon"
  2160. expart.BrickColor = bc("White")
  2161. expart.CFrame = par.CFrame
  2162. partMesh2.Scale = vt(rad, rad, rad)
  2163. expart2.Size = vt(1.15, 1.15, 1.15)
  2164. expart2.Transparency = 0.5
  2165. expart2.Anchored = true
  2166. expart2.Material = "Neon"
  2167. expart2.BrickColor = par.BrickColor
  2168. expart2.CFrame = par.CFrame
  2169. expart.CanCollide = false
  2170. expart2.CanCollide = false
  2171. MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
  2172. local value = 1 * rad / 6.5
  2173. for i = 0, 75 do
  2174. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2175. expart.CFrame = expart.CFrame
  2176. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  2177. expart2.CFrame = expart.CFrame
  2178. value = value - 0.035 * rad / 5
  2179. if value < 0 then
  2180. value = 0
  2181. expart.Transparency = expart.Transparency + 0.05
  2182. expart2.Transparency = expart2.Transparency + 0.05
  2183. end
  2184. swait()
  2185. end
  2186. game:GetService("Debris"):AddItem(expart, 1)
  2187. game:GetService("Debris"):AddItem(expart2, 1)
  2188. end
  2189. function AreaDanger(rad, par, mindam, maxdam)
  2190. local expart = Instance.new("Part", char)
  2191. local partMesh = Instance.new("SpecialMesh", expart)
  2192. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  2193. partMesh.MeshType = "Sphere"
  2194. partMesh.Scale = vt(rad, rad, rad)
  2195. expart.Size = vt(1, 1, 1)
  2196. expart.Transparency = 0.5
  2197. expart.Anchored = true
  2198. expart.Material = "Neon"
  2199. expart.CanCollide = false
  2200. expart.BrickColor = par.BrickColor
  2201. expart.CFrame = par.CFrame
  2202. local value = 1 * rad / 5
  2203. MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
  2204. for i = 0, 14 do
  2205. wait()
  2206. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2207. expart.CFrame = expart.CFrame
  2208. value = value - 0.035 * rad
  2209. if value < 0 then
  2210. value = 0
  2211. end
  2212. end
  2213. wait(0.25)
  2214. CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
  2215. wait(0.5)
  2216. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
  2217. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
  2218. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2219. MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
  2220. for i = 0, 14 do
  2221. wait()
  2222. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2223. expart.CFrame = expart.CFrame
  2224. value = value - 0.035 * rad / 2
  2225. end
  2226. expart.Transparency = 1
  2227. game:GetService("Debris"):AddItem(expart, 5)
  2228. end
  2229. function Swarmsplosions(negrad, rad, par, mindam, maxdam)
  2230. CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
  2231. CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
  2232. CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
  2233. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  2234. MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
  2235. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
  2236. for i = 0, 24 do
  2237. 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))
  2238. end
  2239. for i = 0, 24 do
  2240. local expart = Instance.new("Part", char)
  2241. expart.Transparency = 1
  2242. expart.Anchored = true
  2243. expart.CanCollide = false
  2244. expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
  2245. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
  2246. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  2247. MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
  2248. MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
  2249. for i = 0, 9 do
  2250. 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))
  2251. end
  2252. game:GetService("Debris"):AddItem(expart, 2)
  2253. wait(0.1)
  2254. end
  2255. end
  2256. function EXterPlosion(par)
  2257. CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
  2258. CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
  2259. CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
  2260. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  2261. MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
  2262. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
  2263. MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
  2264. for i = 0, 24 do
  2265. 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))
  2266. end
  2267. for i = 0, 24 do
  2268. 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))
  2269. end
  2270. end
  2271. function ring(type, pos, scale, value)
  2272. local type = type
  2273. local rng = Instance.new("Part", char)
  2274. rng.Anchored = true
  2275. rng.BrickColor = origcolor
  2276. rng.CanCollide = false
  2277. rng.FormFactor = 3
  2278. rng.Name = "Ring"
  2279. rng.Size = Vector3.new(1, 1, 1)
  2280. rng.Transparency = 0
  2281. rng.TopSurface = 0
  2282. rng.BottomSurface = 0
  2283. rng.CFrame = pos
  2284. local rngm = Instance.new("SpecialMesh", rng)
  2285. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2286. rngm.Scale = scale
  2287. local scaler2 = 1
  2288. if type == "Add" then
  2289. scaler2 = 1 * value
  2290. elseif type == "Divide" then
  2291. scaler2 = 1 / value
  2292. end
  2293. coroutine.resume(coroutine.create(function()
  2294. for i = 0, 10, 0.1 do
  2295. swait()
  2296. if type == "Add" then
  2297. scaler2 = scaler2 - 0.01 * value
  2298. elseif type == "Divide" then
  2299. scaler2 = scaler2 - 0.01 / value
  2300. end
  2301. rng.Transparency = rng.Transparency + 0.01
  2302. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2303. end
  2304. rng:Destroy()
  2305. end))
  2306. end
  2307. function wave(type, pos, scale, value)
  2308. local type = type
  2309. local rng = Instance.new("Part", char)
  2310. rng.Anchored = true
  2311. rng.BrickColor = origcolor
  2312. rng.CanCollide = false
  2313. rng.FormFactor = 3
  2314. rng.Name = "Ring"
  2315. rng.Size = Vector3.new(1, 1, 1)
  2316. rng.Transparency = 0
  2317. rng.TopSurface = 0
  2318. rng.BottomSurface = 0
  2319. rng.CFrame = pos
  2320. local rngm = Instance.new("SpecialMesh", rng)
  2321. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2322. rngm.Scale = scale
  2323. local scaler2 = 1
  2324. if type == "Add" then
  2325. scaler2 = 1 * value
  2326. elseif type == "Divide" then
  2327. scaler2 = 1 / value
  2328. end
  2329. coroutine.resume(coroutine.create(function()
  2330. for i = 0, 10, 0.1 do
  2331. swait()
  2332. if type == "Add" then
  2333. scaler2 = scaler2 - 0.01 * value
  2334. elseif type == "Divide" then
  2335. scaler2 = scaler2 - 0.01 / value
  2336. end
  2337. rng.Transparency = rng.Transparency + 0.01
  2338. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2339. end
  2340. rng:Destroy()
  2341. end))
  2342. end
  2343. function wind(type, pos, scale, value, speed)
  2344. local type = type
  2345. local rng = Instance.new("Part", char)
  2346. rng.Anchored = true
  2347. rng.BrickColor = origcolor
  2348. rng.CanCollide = false
  2349. rng.FormFactor = 3
  2350. rng.Name = "Ring"
  2351. rng.Size = Vector3.new(1, 1, 1)
  2352. rng.Transparency = 0
  2353. rng.TopSurface = 0
  2354. rng.BottomSurface = 0
  2355. rng.CFrame = pos
  2356. local rngm = Instance.new("SpecialMesh", rng)
  2357. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2358. rngm.Scale = scale
  2359. local scaler2 = 1
  2360. if type == "Add" then
  2361. scaler2 = 1 * value
  2362. elseif type == "Divide" then
  2363. scaler2 = 1 / value
  2364. end
  2365. coroutine.resume(coroutine.create(function()
  2366. for i = 0, 10, 0.1 do
  2367. swait()
  2368. if type == "Add" then
  2369. scaler2 = scaler2 - 0.01 * value
  2370. elseif type == "Divide" then
  2371. scaler2 = scaler2 - 0.01 / value
  2372. end
  2373. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  2374. rng.Transparency = rng.Transparency + 0.01
  2375. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2376. end
  2377. rng:Destroy()
  2378. end))
  2379. end
  2380. function groundwind(type, pos, scale, value, speed)
  2381. local type = type
  2382. local rng = Instance.new("Part", char)
  2383. rng.Anchored = true
  2384. rng.BrickColor = origcolor
  2385. rng.CanCollide = false
  2386. rng.FormFactor = 3
  2387. rng.Name = "Ring"
  2388. rng.Size = Vector3.new(1, 1, 1)
  2389. rng.Transparency = 0
  2390. rng.TopSurface = 0
  2391. rng.BottomSurface = 0
  2392. rng.CFrame = pos
  2393. local rngm = Instance.new("SpecialMesh", rng)
  2394. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2395. rngm.Scale = scale
  2396. local scaler2 = 1
  2397. if type == "Add" then
  2398. scaler2 = 1 * value
  2399. elseif type == "Divide" then
  2400. scaler2 = 1 / value
  2401. end
  2402. coroutine.resume(coroutine.create(function()
  2403. for i = 0, 10, 0.1 do
  2404. swait()
  2405. if type == "Add" then
  2406. scaler2 = scaler2 - 0.01 * value
  2407. elseif type == "Divide" then
  2408. scaler2 = scaler2 - 0.01 / value
  2409. end
  2410. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  2411. rng.Transparency = rng.Transparency + 0.01
  2412. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
  2413. end
  2414. rng:Destroy()
  2415. end))
  2416. end
  2417. function CameraManager()
  2418. if TwoD and not CamInterrupt then
  2419. if Humanoid.Health > 0 then
  2420. Camera.CameraSubject = Humanoid
  2421. Camera.CameraType = "Scriptable"
  2422. Humanoid.AutoRotate = false
  2423. if Booleans.GyroUse then
  2424. Directer.MaxTorque = Vec3(0, huge, 0)
  2425. else
  2426. Directer.MaxTorque = Vec3(0, 0, 0)
  2427. end
  2428. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2429. if Booleans.CamFollow then
  2430. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2431. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2432. else
  2433. CPart.Position = RootPart.Position
  2434. end
  2435. else
  2436. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2437. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2438. end
  2439. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2440. else
  2441. Camera.CameraSubject = Humanoid
  2442. Camera.CameraType = "Custom"
  2443. Controller.Disabled = false
  2444. end
  2445. end
  2446. end
  2447. function sphere(bonuspeed, type, pos, scale, value, color)
  2448. local type = type
  2449. local rng = Instance.new("Part", char)
  2450. rng.Anchored = true
  2451. rng.BrickColor = color
  2452. rng.CanCollide = false
  2453. rng.FormFactor = 3
  2454. rng.Name = "Ring"
  2455. rng.Material = "Neon"
  2456. rng.Size = Vector3.new(1, 1, 1)
  2457. rng.Transparency = 0
  2458. rng.TopSurface = 0
  2459. rng.BottomSurface = 0
  2460. rng.CFrame = pos
  2461. local rngm = Instance.new("SpecialMesh", rng)
  2462. rngm.MeshType = "Sphere"
  2463. rngm.Scale = scale
  2464. if rainbowmode == true then
  2465. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2466. end
  2467. local scaler2 = 1
  2468. if type == "Add" then
  2469. scaler2 = 1 * value
  2470. elseif type == "Divide" then
  2471. scaler2 = 1 / value
  2472. end
  2473. coroutine.resume(coroutine.create(function()
  2474. for i = 0, 10 / bonuspeed, 0.1 do
  2475. swait()
  2476. if rainbowmode == true then
  2477. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2478. end
  2479. if type == "Add" then
  2480. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2481. elseif type == "Divide" then
  2482. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2483. end
  2484. if chaosmode == true then
  2485. rng.BrickColor = BrickColor.random()
  2486. end
  2487. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2488. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  2489. end
  2490. rng:Destroy()
  2491. end))
  2492. end
  2493. function sphereMK(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 = 0
  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 sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  2544. local type = type
  2545. local rng = Instance.new("Part", char)
  2546. rng.Anchored = true
  2547. rng.BrickColor = color
  2548. rng.CanCollide = false
  2549. rng.FormFactor = 3
  2550. rng.Name = "Ring"
  2551. rng.Material = "Neon"
  2552. rng.Size = Vector3.new(1, 1, 1)
  2553. rng.Transparency = 1
  2554. rng.TopSurface = 0
  2555. rng.BottomSurface = 0
  2556. rng.CFrame = pos
  2557. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2558. local rngm = Instance.new("SpecialMesh", rng)
  2559. rngm.MeshType = "Sphere"
  2560. rngm.Scale = vt(x1, y1, z1)
  2561. if rainbowmode == true then
  2562. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2563. end
  2564. local scaler2 = 1
  2565. local speeder = FastSpeed
  2566. if type == "Add" then
  2567. scaler2 = 1 * value
  2568. elseif type == "Divide" then
  2569. scaler2 = 1 / value
  2570. end
  2571. coroutine.resume(coroutine.create(function()
  2572. for i = 0, 10 / bonuspeed, 0.1 do
  2573. swait()
  2574. if rainbowmode == true then
  2575. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2576. end
  2577. if type == "Add" then
  2578. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2579. elseif type == "Divide" then
  2580. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2581. end
  2582. if chaosmode == true then
  2583. rng.BrickColor = BrickColor.random()
  2584. end
  2585. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2586. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2587. rng.Transparency = rng.Transparency - 0.01 * bonuspeed
  2588. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2589. end
  2590. rng:Destroy()
  2591. end))
  2592. end
  2593. function dmg(dude)
  2594. if dude.Name ~= Character then
  2595. local bgf = Instance.new("BodyGyro", dude.Head)
  2596. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  2597. local val = Instance.new("BoolValue", dude)
  2598. val.Name = "IsHit"
  2599. local ds = coroutine.wrap(function()
  2600. dude:WaitForChild("Head"):BreakJoints()
  2601. wait(0.5)
  2602. targetted = nil
  2603. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  2604. coroutine.resume(coroutine.create(function()
  2605. for i, v in pairs(dude:GetChildren()) do
  2606. if v:IsA("Accessory") then
  2607. v:Destroy()
  2608. end
  2609. if v:IsA("Humanoid") then
  2610. v:Destroy()
  2611. end
  2612. if v:IsA("CharacterMesh") then
  2613. v:Destroy()
  2614. end
  2615. if v:IsA("Model") then
  2616. v:Destroy()
  2617. end
  2618. if v:IsA("Part") or v:IsA("MeshPart") then
  2619. for x, o in pairs(v:GetChildren()) do
  2620. if o:IsA("Decal") then
  2621. o:Destroy()
  2622. end
  2623. end
  2624. coroutine.resume(coroutine.create(function()
  2625. v.Material = "Neon"
  2626. v.CanCollide = false
  2627. local bld = Instance.new("ParticleEmitter", v)
  2628. bld.LightEmission = 1
  2629. bld.Texture = "rbxassetid://284205403"
  2630. bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
  2631. bld.Rate = 50
  2632. bld.Lifetime = NumberRange.new(1)
  2633. bld.Size = NumberSequence.new({
  2634. NumberSequenceKeypoint.new(0, 0.75, 0),
  2635. NumberSequenceKeypoint.new(1, 0, 0)
  2636. })
  2637. bld.Transparency = NumberSequence.new({
  2638. NumberSequenceKeypoint.new(0, 0, 0),
  2639. NumberSequenceKeypoint.new(1, 1, 0)
  2640. })
  2641. bld.Speed = NumberRange.new(0, 0)
  2642. bld.VelocitySpread = 50000
  2643. bld.Rotation = NumberRange.new(-500, 500)
  2644. bld.RotSpeed = NumberRange.new(-500, 500)
  2645. local sbs = Instance.new("BodyPosition", v)
  2646. sbs.P = 3000
  2647. sbs.D = 1000
  2648. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2649. sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  2650. v.Color = Color3.new(1, 1, 1)
  2651. coroutine.resume(coroutine.create(function()
  2652. for i = 0, 49 do
  2653. swait(1)
  2654. v.Transparency = v.Transparency + 0.02
  2655. end
  2656. CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
  2657. bld.Speed = NumberRange.new(1, 5)
  2658. bld.Acceleration = vt(0, 10, 0)
  2659. wait(0.5)
  2660. bld.Enabled = false
  2661. wait(3)
  2662. v:Destroy()
  2663. dude:Destroy()
  2664. end))
  2665. end))
  2666. end
  2667. end
  2668. end))
  2669. end)
  2670. ds()
  2671. end
  2672. end
  2673. function FindNearestHead(Position, Distance, SinglePlayer)
  2674. if SinglePlayer then
  2675. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  2676. end
  2677. local List = {}
  2678. for i, v in pairs(workspace:GetChildren()) do
  2679. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  2680. table.insert(List, v)
  2681. end
  2682. end
  2683. return List
  2684. end
  2685. function FaceMouse()
  2686. Cam = workspace.CurrentCamera
  2687. return {
  2688. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2689. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2690. }
  2691. end
  2692. function FaceMouse2()
  2693. Cam = workspace.CurrentCamera
  2694. return {
  2695. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2696. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2697. }
  2698. end
  2699. local ModeOfGlitch = 1
  2700. local storehumanoidWS = 16
  2701. function ExtinctiveHeartbreak()
  2702. local targetted
  2703. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2704. targetted = mouse.Target.Parent
  2705. end
  2706. if targetted ~= nil then
  2707. attack = true
  2708. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  2709. for i = 0, 9 do
  2710. 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 black"), 0)
  2711. end
  2712. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  2713. local originalpos = root.CFrame
  2714. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
  2715. for i = 0, 9 do
  2716. 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 black"), 0)
  2717. end
  2718. hum.WalkSpeed = 0
  2719. targetted.Head.Anchored = true
  2720. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  2721. for i = 0, 2, 0.1 do
  2722. swait()
  2723. 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)
  2724. 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)
  2725. 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)
  2726. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  2727. 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)
  2728. 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)
  2729. end
  2730. coroutine.resume(coroutine.create(function()
  2731. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
  2732. bld.LightEmission = 0.1
  2733. bld.Texture = "rbxassetid://284205403"
  2734. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  2735. bld.Rate = 500
  2736. bld.Lifetime = NumberRange.new(1)
  2737. bld.Size = NumberSequence.new({
  2738. NumberSequenceKeypoint.new(0, 2, 0),
  2739. NumberSequenceKeypoint.new(1, 0, 0)
  2740. })
  2741. bld.Acceleration = vt(0, -25, 0)
  2742. bld.Transparency = NumberSequence.new({
  2743. NumberSequenceKeypoint.new(0, 0, 0),
  2744. NumberSequenceKeypoint.new(1, 0, 0)
  2745. })
  2746. bld.Speed = NumberRange.new(10, 50)
  2747. bld.EmissionDirection = "Front"
  2748. bld.VelocitySpread = 25
  2749. bld.Rotation = NumberRange.new(-500, 500)
  2750. bld.RotSpeed = NumberRange.new(-500, 500)
  2751. end))
  2752. coroutine.resume(coroutine.create(function()
  2753. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
  2754. bld.LightEmission = 0.1
  2755. bld.Texture = "rbxassetid://284205403"
  2756. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  2757. bld.Rate = 500
  2758. bld.Lifetime = NumberRange.new(1)
  2759. bld.Size = NumberSequence.new({
  2760. NumberSequenceKeypoint.new(0, 2, 0),
  2761. NumberSequenceKeypoint.new(1, 0, 0)
  2762. })
  2763. bld.Acceleration = vt(0, -25, 0)
  2764. bld.Transparency = NumberSequence.new({
  2765. NumberSequenceKeypoint.new(0, 0, 0),
  2766. NumberSequenceKeypoint.new(1, 0, 0)
  2767. })
  2768. bld.Speed = NumberRange.new(10, 50)
  2769. bld.EmissionDirection = "Front"
  2770. bld.VelocitySpread = 25
  2771. bld.Rotation = NumberRange.new(-500, 500)
  2772. bld.RotSpeed = NumberRange.new(-500, 500)
  2773. end))
  2774. CameraEnshaking(5, 5)
  2775. game:GetService("Debris"):AddItem(bld, 3)
  2776. dmg(targetted)
  2777. CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
  2778. for i = 0, 1, 0.1 do
  2779. swait()
  2780. 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)
  2781. 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)
  2782. 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)
  2783. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
  2784. 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)
  2785. 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)
  2786. end
  2787. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  2788. for i = 0, 9 do
  2789. 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 black"), 0)
  2790. end
  2791. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  2792. root.CFrame = originalpos
  2793. for i = 0, 9 do
  2794. 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 black"), 0)
  2795. end
  2796. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  2797. bld.Enabled = false
  2798. attack = false
  2799. hum.WalkSpeed = storehumanoidWS
  2800. end
  2801. end
  2802. function PureBomb()
  2803. attack = true
  2804. local orb = Instance.new("Part", char)
  2805. orb.Anchored = true
  2806. orb.BrickColor = BrickColor.new("Toothpaste")
  2807. orb.CanCollide = false
  2808. orb.FormFactor = 3
  2809. orb.Name = "Ring"
  2810. orb.Material = "Neon"
  2811. orb.Size = Vector3.new(1, 1, 1)
  2812. orb.Transparency = 0
  2813. orb.TopSurface = 0
  2814. orb.BottomSurface = 0
  2815. local orbm = Instance.new("SpecialMesh", orb)
  2816. orbm.MeshType = "Sphere"
  2817. orbm.Name = "SizeMesh"
  2818. orbm.Scale = vt(0, 0, 0)
  2819. local scaled = 0.1
  2820. local posid = 0
  2821. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  2822. for i = 0, 5, 0.1 do
  2823. swait()
  2824. scaled = scaled - 0.001
  2825. posid = posid - scaled
  2826. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  2827. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  2828. 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)
  2829. 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)
  2830. 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)
  2831. 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)
  2832. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2833. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  2834. 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)
  2835. end
  2836. for i = 0, 2, 0.1 do
  2837. swait()
  2838. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  2839. 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)
  2840. 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)
  2841. 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)
  2842. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  2843. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  2844. 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)
  2845. end
  2846. coroutine.resume(coroutine.create(function()
  2847. orb.Anchored = false
  2848. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  2849. local a = Instance.new("Part", workspace)
  2850. a.Name = "Direction"
  2851. a.Anchored = true
  2852. a.BrickColor = bc("Bright red")
  2853. a.Material = "Neon"
  2854. a.Transparency = 1
  2855. a.CanCollide = false
  2856. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  2857. local ignore = orb
  2858. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2859. a.BottomSurface = 10
  2860. a.TopSurface = 10
  2861. local distance = (orb.CFrame.p - position).magnitude
  2862. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2863. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2864. orb.CFrame = a.CFrame
  2865. a:Destroy()
  2866. local bv = Instance.new("BodyVelocity")
  2867. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  2868. bv.velocity = orb.CFrame.lookVector * 125
  2869. bv.Parent = orb
  2870. local hitted = false
  2871. game:GetService("Debris"):AddItem(orb, 15)
  2872. wait()
  2873. local hit = orb.Touched:connect(function(hit)
  2874. if hitted == false then
  2875. hitted = true
  2876. CameraEnshaking(10, 2.5)
  2877. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  2878. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  2879. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  2880. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  2881. for i = 0, 9 do
  2882. 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)
  2883. 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)
  2884. end
  2885. orb.Anchored = true
  2886. orb.Transparency = 1
  2887. wait(8)
  2888. orb:Destroy()
  2889. end
  2890. end)
  2891. end))
  2892. for i = 0, 1, 0.1 do
  2893. swait()
  2894. 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)
  2895. 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)
  2896. 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)
  2897. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  2898. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  2899. 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)
  2900. end
  2901. attack = false
  2902. end
  2903. function MegaPureBomb()
  2904. attack = true
  2905. local orb = Instance.new("Part", char)
  2906. orb.Anchored = true
  2907. orb.BrickColor = BrickColor.new("Toothpaste")
  2908. orb.CanCollide = false
  2909. orb.FormFactor = 3
  2910. orb.Name = "Ring"
  2911. orb.Material = "Neon"
  2912. orb.Size = Vector3.new(-30, -30, -30)
  2913. orb.Transparency = 0
  2914. orb.TopSurface = 0
  2915. orb.BottomSurface = 0
  2916. local orbm = Instance.new("SpecialMesh", orb)
  2917. orbm.MeshType = "Sphere"
  2918. orbm.Name = "SizeMesh"
  2919. orbm.Scale = vt(200, 200, 200)
  2920. local scaled = 0.1
  2921. local posid = 0
  2922. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  2923. for i = 0, 5, 0.1 do
  2924. swait()
  2925. scaled = scaled - 0.001
  2926. posid = posid - scaled
  2927. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  2928. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  2929. 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)
  2930. 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)
  2931. 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)
  2932. 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)
  2933. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2934. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  2935. 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)
  2936. end
  2937. for i = 0, 2, 0.1 do
  2938. swait()
  2939. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  2940. 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)
  2941. 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)
  2942. 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)
  2943. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  2944. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  2945. 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)
  2946. end
  2947. coroutine.resume(coroutine.create(function()
  2948. orb.Anchored = false
  2949. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  2950. local a = Instance.new("Part", workspace)
  2951. a.Name = "Direction"
  2952. a.Anchored = true
  2953. a.BrickColor = bc("Bright red")
  2954. a.Material = "Neon"
  2955. a.Transparency = 1
  2956. a.CanCollide = false
  2957. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  2958. local ignore = orb
  2959. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2960. a.BottomSurface = 10
  2961. a.TopSurface = 10
  2962. local distance = (orb.CFrame.p - position).magnitude
  2963. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2964. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2965. orb.CFrame = a.CFrame
  2966. a:Destroy()
  2967. local bv = Instance.new("BodyVelocity")
  2968. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  2969. bv.velocity = orb.CFrame.lookVector * 125
  2970. bv.Parent = orb
  2971. local hitted = false
  2972. game:GetService("Debris"):AddItem(orb, 15)
  2973. wait()
  2974. local hit = orb.Touched:connect(function(hit)
  2975. if hitted == false then
  2976. hitted = true
  2977. CameraEnshaking(10, 2.5)
  2978. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  2979. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  2980. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  2981. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  2982. for i = 0, 9 do
  2983. 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)
  2984. 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)
  2985. end
  2986. orb.Anchored = true
  2987. orb.Transparency = 1
  2988. wait(8)
  2989. orb:Destroy()
  2990. end
  2991. end)
  2992. end))
  2993. for i = 0, 1, 0.1 do
  2994. swait()
  2995. 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)
  2996. 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)
  2997. 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)
  2998. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  2999. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  3000. 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)
  3001. end
  3002. attack = false
  3003. end
  3004. function ChaosGroundStrike()
  3005. attack = true
  3006. for i = 0, 2, 0.1 do
  3007. swait()
  3008. 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)
  3009. 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)
  3010. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3011. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3012. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  3013. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  3014. end
  3015. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  3016. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  3017. CameraEnshaking(4, 12)
  3018. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3019. if v:FindFirstChild("Head") then
  3020. dmg(v)
  3021. end
  3022. end
  3023. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  3024. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  3025. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  3026. for i = 0, 2, 0.1 do
  3027. swait()
  3028. 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)
  3029. 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)
  3030. 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)
  3031. 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)
  3032. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3033. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3034. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  3035. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  3036. end
  3037. attack = false
  3038. end
  3039. function ChaosBegone()
  3040. attack = true
  3041. chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color)
  3042. for i = 0, 10, 0.1 do
  3043. swait()
  3044. 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)
  3045. 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)
  3046. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3047. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3048. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  3049. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  3050. end
  3051. chatfunc("DIE!!", BrickColor.random().Color)
  3052. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  3053. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  3054. CameraEnshaking(5, 25)
  3055. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3056. if v:FindFirstChild("Head") then
  3057. dmg(v)
  3058. end
  3059. end
  3060. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  3061. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  3062. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  3063. for i = 0, 3, 0.1 do
  3064. swait()
  3065. 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)
  3066. 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)
  3067. 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)
  3068. 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)
  3069. 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)
  3070. 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)
  3071. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3072. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3073. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  3074. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  3075. end
  3076. attack = false
  3077. end
  3078. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  3079. local orb = Instance.new("Part", char)
  3080. orb.Anchored = true
  3081. orb.BrickColor = color
  3082. orb.CanCollide = false
  3083. orb.FormFactor = 3
  3084. orb.Name = "Ring"
  3085. orb.Material = "Neon"
  3086. orb.Size = Vector3.new(1, 1, 1)
  3087. orb.Transparency = 0
  3088. orb.TopSurface = 0
  3089. orb.BottomSurface = 0
  3090. local orbm = Instance.new("SpecialMesh", orb)
  3091. orbm.MeshType = "Sphere"
  3092. orb.CFrame = positted
  3093. orbm.Name = "SizeMesh"
  3094. orbm.Scale = vt(1, 1, 1)
  3095. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  3096. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  3097. coroutine.resume(coroutine.create(function()
  3098. wait(timer)
  3099. CameraEnshaking(3, ShakePower)
  3100. orb.Transparency = 1
  3101. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  3102. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  3103. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  3104. wait(3)
  3105. orb:Destroy()
  3106. end))
  3107. end
  3108. function orb_spawn(positted, timer)
  3109. local randomcol = math.random(1, 2)
  3110. local orb = Instance.new("Part", char)
  3111. orb.Anchored = true
  3112. if randomcol == 1 then
  3113. orb.BrickColor = BrickColor.new("White")
  3114. elseif randomcol == 2 then
  3115. orb.BrickColor = BrickColor.new("Really black")
  3116. end
  3117. orb.CanCollide = false
  3118. orb.FormFactor = 3
  3119. orb.Name = "Ring"
  3120. orb.Material = "Neon"
  3121. orb.Size = Vector3.new(1, 1, 1)
  3122. orb.Transparency = 0
  3123. orb.TopSurface = 0
  3124. orb.BottomSurface = 0
  3125. local orbm = Instance.new("SpecialMesh", orb)
  3126. orbm.MeshType = "Sphere"
  3127. orb.CFrame = positted
  3128. orbm.Name = "SizeMesh"
  3129. orbm.Scale = vt(1, 1, 1)
  3130. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  3131. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  3132. for i = 0, 2 do
  3133. 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)
  3134. end
  3135. coroutine.resume(coroutine.create(function()
  3136. wait(timer)
  3137. CameraEnshaking(3, 2)
  3138. orb.Transparency = 1
  3139. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  3140. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  3141. for i = 0, 4 do
  3142. 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)
  3143. end
  3144. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  3145. wait(3)
  3146. orb:Destroy()
  3147. end))
  3148. end
  3149. function scattercorrupt()
  3150. attack = true
  3151. local rot = 0
  3152. local randomrotations = math.random(1, 2)
  3153. local lookv = 2.5
  3154. local power = 5
  3155. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  3156. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  3157. for i = 0, 9 do
  3158. 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)
  3159. end
  3160. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  3161. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  3162. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  3163. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  3164. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  3165. local hite = Instance.new("Part", char)
  3166. hite.Anchored = true
  3167. hite.CanCollide = false
  3168. hite.FormFactor = 3
  3169. hite.Name = "Ring"
  3170. hite.Material = "Neon"
  3171. hite.Size = Vector3.new(1, 1, 1)
  3172. hite.Transparency = 1
  3173. hite.TopSurface = 0
  3174. hite.BottomSurface = 0
  3175. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  3176. local rem = Instance.new("Part", char)
  3177. rem.Anchored = true
  3178. rem.CanCollide = false
  3179. rem.FormFactor = 3
  3180. rem.Name = "Ring"
  3181. rem.Material = "Neon"
  3182. rem.Size = Vector3.new(1, 1, 1)
  3183. rem.Transparency = 1
  3184. rem.TopSurface = 0
  3185. rem.BottomSurface = 0
  3186. rem.CFrame = hite.CFrame
  3187. local rem2 = rem:Clone()
  3188. rem2.Parent = char
  3189. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3190. local rem3 = rem:Clone()
  3191. rem3.Parent = char
  3192. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3193. local rem4 = rem:Clone()
  3194. rem4.Parent = char
  3195. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3196. hite:Destroy()
  3197. coroutine.resume(coroutine.create(function()
  3198. for i = 0, 24 do
  3199. swait(1)
  3200. if randomrotations == 1 then
  3201. rot = rot + 1
  3202. elseif randomrotations == 2 then
  3203. rot = rot - 1
  3204. end
  3205. power = power + 0.5
  3206. lookv = lookv + 7.5
  3207. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  3208. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3209. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3210. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3211. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3212. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3213. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3214. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3215. end
  3216. end))
  3217. attack = false
  3218. end
  3219. function RavagingOverthrower()
  3220. ATTACK = true
  3221. Rooted = true
  3222. for i=0, 1, 0.1 / Animation_Speed do
  3223. swait()
  3224. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * cFrame(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3225. Neck.C0 = Clerp(Neck.C0, NECKC0 * cFrame(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3226. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3227. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  3228. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3229. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3230. end
  3231. CreateSound("348663022", Torso, 5, 1)
  3232. local StartPos = RootPart.CFrame * CF(0,10,0).p
  3233. for i = 1, 5 do
  3234. MagicSphere2(25,25,CF(StartPos),"Royal purple")
  3235. Swait(15)
  3236. end
  3237. local soundeffect = IT("Sound",Torso)
  3238. soundeffect.SoundId = "rbxassetid://487186990"
  3239. soundeffect.Looped = true
  3240. soundeffect.Volume = 10
  3241. soundeffect.Playing = true
  3242. repeat
  3243. turnto(Mouse.Hit.p)
  3244. MagicSphere2(25,25,CF(StartPos),"Royal purple")
  3245. MagicSphere(25/10,25,CF(StartPos),"Royal purple")
  3246. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false)
  3247. local distance = (StartPos - RayPos).magnitude
  3248. local RayBeam = IT("Part",Effects)
  3249. RayBeam.Material = "Neon"
  3250. RayBeam.Anchored = true
  3251. RayBeam.BrickColor = BRICKC"Royal purple"
  3252. local mesh = IT("SpecialMesh",RayBeam)
  3253. mesh.MeshType = "Cylinder"
  3254. RayBeam.Size = Vector3.new(distance+10, 5, 5)
  3255. RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0))
  3256. MagicSphere(15,5,CF(RayPos),"Royal purple")
  3257. killnearest(RayPos,15,100)
  3258. for i = 1, 3 do
  3259. CreateSwirl(0,25,true,-0.2,5,CF(RayPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black")
  3260. end
  3261. Swait()
  3262. if KEYHOLD == false then
  3263. coroutine.resume(coroutine.create(function()
  3264. for i = 1, 5 do
  3265. RayBeam.Transparency = RayBeam.Transparency + 1/5
  3266. Swait()
  3267. end
  3268. RayBeam:remove()
  3269. end))
  3270. else
  3271. RayBeam:remove()
  3272. end
  3273. until KEYHOLD == false
  3274. soundeffect:remove()
  3275. ATTACK = false
  3276. Rooted = false
  3277. end
  3278. function deadworld()
  3279. hum.WalkSpeed = 0
  3280. attack = true
  3281. chatfunc("You... you will regret this!",Color3.new(0.5,0,0))
  3282. for i = 0,10,0.1 do
  3283. swait()
  3284. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  3285. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  3286. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
  3287. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1)
  3288. RW.C0=clerp(RW.C0,cf(1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.1)
  3289. LW.C0=clerp(LW.C0,cf(-1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(50 - 5 * math.cos(sine / 1))),.1)
  3290. end
  3291. coroutine.resume(coroutine.create(function()
  3292. CFuncs["Sound"].Create("rbxassetid://1213175909", char, 1,1)
  3293. sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3294. sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3295. sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3296. coroutine.resume(coroutine.create(function()
  3297. for i = 0, 9 do
  3298. swait(3)
  3299. sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red"))
  3300. end
  3301. end))
  3302. CFuncs["Sound"].Create("rbxassetid://579687077", char, 5,1)
  3303. CFuncs["Sound"].Create("rbxassetid://239000203", char, 1,1)
  3304. local blastpitch = 1
  3305. for i = 0,2 do
  3306. wait(1.5)
  3307. sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3308. sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3309. sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3310. coroutine.resume(coroutine.create(function()
  3311. for i = 0, 9 do
  3312. swait(3)
  3313. sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red"))
  3314. end
  3315. end))
  3316. blastpitch = blastpitch - 0.15
  3317. CFuncs["Sound"].Create("rbxassetid://579687077", char, 1,blastpitch)
  3318. end
  3319. wait(2)
  3320. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 250000000)) do
  3321. hum.Health = math.huge
  3322. if v:FindFirstChild("Head") then
  3323. dmg(v)
  3324. end
  3325. end
  3326. CFuncs["Sound"].Create("rbxassetid://239000203", char, 2,0.75)
  3327. CFuncs["Sound"].Create("rbxassetid://579687077", char, 2,0.5)
  3328. sphere(1,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
  3329. sphere(2,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
  3330. sphere(3,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
  3331. coroutine.resume(coroutine.create(function()
  3332. for i = 0, 49 do
  3333. swait(3)
  3334. sphere(1,"Add",root.CFrame*CFrame.new(math.random(-175,175),math.random(-175,175),math.random(-175,175)),vt(0,0,0),2,BrickColor.new("Really red"))
  3335. sphere(1,"Add",root.CFrame*CFrame.new(math.random(-375,375),math.random(-375,375),math.random(-375,375)),vt(0,0,0),8,BrickColor.new("Really red"))
  3336. end
  3337. end))
  3338. end))
  3339. attack = false
  3340. hum.WalkSpeed = 30
  3341. end
  3342. function yinyangi()
  3343. attack = true
  3344. for i = 0, 2, 0.1 do
  3345. swait()
  3346. 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)
  3347. 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)
  3348. 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)
  3349. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3350. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  3351. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  3352. end
  3353. local bv = Instance.new("BodyVelocity")
  3354. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  3355. bv.velocity = root.CFrame.lookVector * 175
  3356. bv.Parent = root
  3357. for Rotations = 0, 9 do
  3358. for i = 0, 1, 0.5 do
  3359. swait()
  3360. bv.velocity = root.CFrame.lookVector * 175
  3361. 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)
  3362. 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)
  3363. 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)
  3364. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3365. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3366. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3367. end
  3368. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3369. for i = 0, 1, 0.5 do
  3370. swait()
  3371. bv.velocity = root.CFrame.lookVector * 175
  3372. 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)
  3373. 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)
  3374. 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)
  3375. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3376. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3377. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3378. end
  3379. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3380. for i = 0, 1, 0.5 do
  3381. swait()
  3382. bv.velocity = root.CFrame.lookVector * 175
  3383. 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)
  3384. 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)
  3385. 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)
  3386. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3387. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3388. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3389. end
  3390. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3391. for i = 0, 1, 0.5 do
  3392. swait()
  3393. bv.velocity = root.CFrame.lookVector * 175
  3394. 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)
  3395. 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)
  3396. 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)
  3397. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3398. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3399. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3400. end
  3401. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3402. end
  3403. bv:Destroy()
  3404. attack = false
  3405. end
  3406. function Wip()
  3407. attack = true
  3408. local rngb = Instance.new("Part", char)
  3409. rngb.Anchored = true
  3410. rngb.BrickColor = origcolor
  3411. rngb.CanCollide = false
  3412. rngb.FormFactor = 3
  3413. rngb.Name = "Ring"
  3414. rngb.Material = "Neon"
  3415. rngb.Size = Vector3.new(1, 0.05, 1)
  3416. rngb.Transparency = 1
  3417. rngb.TopSurface = 0
  3418. rngb.BottomSurface = 0
  3419. local rngmb = Instance.new("SpecialMesh", rngb)
  3420. rngmb.MeshType = "Brick"
  3421. rngmb.Name = "SizeMesh"
  3422. rngmb.Scale = vt(0, 1, 0)
  3423. local orb = rngb:Clone()
  3424. orb.Parent = char
  3425. orb.Transparency = 0
  3426. orb.BrickColor = BrickColor.new("White")
  3427. orb.Size = vt(1, 1, 1)
  3428. local orbmish = orb.SizeMesh
  3429. orbmish.Scale = vt(0, 0, 0)
  3430. orbmish.MeshType = "Sphere"
  3431. local orbe = rngb:Clone()
  3432. orbe.Parent = char
  3433. orbe.Transparency = 0.5
  3434. orbe.BrickColor = BrickColor.new("New Yeller")
  3435. orbe.Size = vt(1, 1, 1)
  3436. local orbmish2 = orbe.SizeMesh
  3437. orbmish2.Scale = vt(0, 0, 0)
  3438. orbmish2.MeshType = "Sphere"
  3439. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3440. rngb:Destroy()
  3441. for i = 0, 5, 0.1 do
  3442. swait()
  3443. if rainbowmode == true then
  3444. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3445. end
  3446. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3447. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3448. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3449. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3450. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  3451. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3452. 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)
  3453. 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)
  3454. RootPart.CFrame = FaceMouse()[1]
  3455. end
  3456. orbe.Transparency = 1
  3457. orb.Transparency = 1
  3458. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3459. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  3460. local a = Instance.new("Part", Character)
  3461. a.Name = "Direction"
  3462. a.Anchored = true
  3463. a.BrickColor = bc("White")
  3464. a.Material = "Neon"
  3465. a.Transparency = 0
  3466. a.Shape = "Cylinder"
  3467. a.CanCollide = false
  3468. local a2 = Instance.new("Part", Character)
  3469. a2.Name = "Direction"
  3470. a2.Anchored = true
  3471. a2.BrickColor = bc("New Yeller")
  3472. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  3473. a2.Material = "Neon"
  3474. a2.Transparency = 0.5
  3475. a2.Shape = "Cylinder"
  3476. a2.CanCollide = false
  3477. local ba = Instance.new("Part", Character)
  3478. ba.Name = "HitDirect"
  3479. ba.Anchored = true
  3480. ba.BrickColor = bc("Really black")
  3481. ba.Material = "Neon"
  3482. ba.Transparency = 1
  3483. ba.CanCollide = false
  3484. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3485. local ignore = Character
  3486. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3487. a.BottomSurface = 10
  3488. a.TopSurface = 10
  3489. a2.BottomSurface = 10
  3490. a2.TopSurface = 10
  3491. local distance = (orb.CFrame.p - position).magnitude
  3492. a.Size = Vector3.new(distance, 1, 1)
  3493. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3494. a2.Size = Vector3.new(distance, 1, 1)
  3495. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3496. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3497. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3498. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3499. game:GetService("Debris"):AddItem(a, 20)
  3500. game:GetService("Debris"):AddItem(a2, 20)
  3501. game:GetService("Debris"):AddItem(ba, 20)
  3502. local msh = Instance.new("SpecialMesh", a)
  3503. msh.MeshType = "Cylinder"
  3504. msh.Scale = vt(1, 25, 25)
  3505. local msh2 = Instance.new("SpecialMesh", a2)
  3506. msh2.MeshType = "Cylinder"
  3507. msh2.Scale = vt(1, 30, 30)
  3508. for i = 0, 10, 0.1 do
  3509. swait()
  3510. CameraEnshaking(1, 5)
  3511. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  3512. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3513. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3514. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3515. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3516. distance = (orb.CFrame.p - position).magnitude
  3517. if typrot == 1 then
  3518. rotation = rotation + 2.5
  3519. elseif typrot == 2 then
  3520. rotation = rotation - 2.5
  3521. end
  3522. RootPart.CFrame = FaceMouse()[1]
  3523. a.Size = Vector3.new(distance, 1, 1)
  3524. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3525. a2.Size = Vector3.new(distance, 1, 1)
  3526. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3527. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3528. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3529. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3530. msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
  3531. msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
  3532. 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)
  3533. 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)
  3534. MagniDamage(ba, 30, 500, 60000, 0, "Normal")
  3535. end
  3536. a:Destroy()
  3537. a2:Destroy()
  3538. ba:Destroy()
  3539. orb:Destroy()
  3540. orbe:Destroy()
  3541. attack = false
  3542. end
  3543. function UniversalSpark()
  3544. attack = true
  3545. local rngb = Instance.new("Part", char)
  3546. rngb.Anchored = true
  3547. rngb.BrickColor = origcolor
  3548. rngb.CanCollide = false
  3549. rngb.FormFactor = 3
  3550. rngb.Name = "Ring"
  3551. rngb.Material = "Neon"
  3552. rngb.Size = Vector3.new(1, 0.05, 1)
  3553. rngb.Transparency = 1
  3554. rngb.TopSurface = 0
  3555. rngb.BottomSurface = 0
  3556. local rngmb = Instance.new("SpecialMesh", rngb)
  3557. rngmb.MeshType = "Brick"
  3558. rngmb.Name = "SizeMesh"
  3559. rngmb.Scale = vt(0, 1, 0)
  3560. local orb = rngb:Clone()
  3561. orb.Parent = char
  3562. orb.Transparency = 0
  3563. orb.BrickColor = BrickColor.new("White")
  3564. orb.Size = vt(1, 1, 1)
  3565. local orbmish = orb.SizeMesh
  3566. orbmish.Scale = vt(0, 0, 0)
  3567. orbmish.MeshType = "Sphere"
  3568. local orbe = rngb:Clone()
  3569. orbe.Parent = char
  3570. orbe.Transparency = 0.5
  3571. orbe.BrickColor = BrickColor.new("New Yeller")
  3572. orbe.Size = vt(1, 1, 1)
  3573. local orbmish2 = orbe.SizeMesh
  3574. orbmish2.Scale = vt(0, 0, 0)
  3575. orbmish2.MeshType = "Sphere"
  3576. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3577. rngb:Destroy()
  3578. for i = 0, 5, 0.1 do
  3579. swait()
  3580. if rainbowmode == true then
  3581. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3582. end
  3583. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3584. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3585. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3586. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3587. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  3588. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3589. 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)
  3590. 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)
  3591. RootPart.CFrame = FaceMouse()[1]
  3592. end
  3593. orbe.Transparency = 1
  3594. orb.Transparency = 1
  3595. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3596. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  3597. CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
  3598. CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
  3599. CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
  3600. CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
  3601. CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
  3602. CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
  3603. local xd = Instance.new("Sound", char)
  3604. xd.SoundId = "rbxassetid://445796828"
  3605. xd.Pitch = 0.75
  3606. xd.Looped = true
  3607. xd.Volume = 1.25
  3608. xd:Play()
  3609. local a = Instance.new("Part", Character)
  3610. a.Name = "Direction"
  3611. a.Anchored = true
  3612. a.BrickColor = bc("Alder")
  3613. a.Color = MAINRUINCOLOR.Color
  3614. a.Material = "Neon"
  3615. a.Transparency = 0.5
  3616. a.Shape = "Cylinder"
  3617. a.CanCollide = false
  3618. local a2 = Instance.new("Part", Character)
  3619. a2.Name = "Direction"
  3620. a2.Anchored = true
  3621. a2.BrickColor = bc("New Yeller")
  3622. a2.Color = MAINRUINCOLOR.Color
  3623. a2.Material = "Neon"
  3624. a2.Transparency = 0.5
  3625. a2.Shape = "Cylinder"
  3626. a2.CanCollide = false
  3627. local ba = Instance.new("Part", Character)
  3628. ba.Name = "HitDirect"
  3629. ba.Anchored = true
  3630. ba.BrickColor = bc("Really black")
  3631. ba.Material = "Neon"
  3632. ba.Transparency = 1
  3633. ba.CanCollide = false
  3634. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3635. local ignore = Character
  3636. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3637. a.BottomSurface = 10
  3638. a.TopSurface = 10
  3639. a2.BottomSurface = 10
  3640. a2.TopSurface = 10
  3641. local distance = (orb.CFrame.p - position).magnitude
  3642. a.Size = Vector3.new(distance, 1, 1)
  3643. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3644. a2.Size = Vector3.new(distance, 1, 1)
  3645. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3646. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3647. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3648. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3649. game:GetService("Debris"):AddItem(a, 60)
  3650. game:GetService("Debris"):AddItem(a2, 60)
  3651. game:GetService("Debris"):AddItem(ba, 60)
  3652. local outerscale = 0
  3653. local msh = Instance.new("SpecialMesh", a)
  3654. msh.MeshType = "Cylinder"
  3655. msh.Scale = vt(1, 0, 0)
  3656. local msh2 = Instance.new("SpecialMesh", a2)
  3657. msh2.MeshType = "Cylinder"
  3658. msh2.Scale = vt(1, 0, 0)
  3659. for i = 0, 2, 0.1 do
  3660. swait()
  3661. CameraEnshaking(1, 1)
  3662. msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
  3663. msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
  3664. outerscale = outerscale - 0.015
  3665. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3666. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3667. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3668. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3669. distance = (orb.CFrame.p - position).magnitude
  3670. if typrot == 1 then
  3671. rotation = rotation + 2.5
  3672. elseif typrot == 2 then
  3673. rotation = rotation - 2.5
  3674. end
  3675. RootPart.CFrame = FaceMouse()[1]
  3676. a.Size = Vector3.new(distance, 1, 1)
  3677. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3678. a2.Size = Vector3.new(distance, 1, 1)
  3679. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3680. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3681. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3682. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3683. 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)
  3684. 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)
  3685. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3686. end
  3687. for z = 0, 2 do
  3688. for i = 0, 4, 0.1 do
  3689. swait()
  3690. CameraEnshaking(1, 1)
  3691. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3692. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3693. outerscale = outerscale + 0.015
  3694. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3695. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3696. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3697. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3698. distance = (orb.CFrame.p - position).magnitude
  3699. if typrot == 1 then
  3700. rotation = rotation + 2.5
  3701. elseif typrot == 2 then
  3702. rotation = rotation - 2.5
  3703. end
  3704. RootPart.CFrame = FaceMouse()[1]
  3705. a.Size = Vector3.new(distance, 1, 1)
  3706. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3707. a2.Size = Vector3.new(distance, 1, 1)
  3708. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3709. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3710. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3711. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3712. 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)
  3713. 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)
  3714. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3715. end
  3716. for i = 0, 4, 0.1 do
  3717. swait()
  3718. CameraEnshaking(1, 1)
  3719. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3720. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3721. outerscale = outerscale - 0.015
  3722. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3723. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3724. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3725. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3726. distance = (orb.CFrame.p - position).magnitude
  3727. if typrot == 1 then
  3728. rotation = rotation + 2.5
  3729. elseif typrot == 2 then
  3730. rotation = rotation - 2.5
  3731. end
  3732. RootPart.CFrame = FaceMouse()[1]
  3733. a.Size = Vector3.new(distance, 1, 1)
  3734. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3735. a2.Size = Vector3.new(distance, 1, 1)
  3736. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3737. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3738. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3739. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3740. 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)
  3741. 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)
  3742. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3743. end
  3744. end
  3745. for i = 0, 4, 0.1 do
  3746. swait()
  3747. CameraEnshaking(1, 1)
  3748. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3749. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3750. xd.Volume = xd.Volume - 0.025
  3751. a.Transparency = a.Transparency + 0.025
  3752. a2.Transparency = a2.Transparency + 0.025
  3753. outerscale = outerscale - 0.015
  3754. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3755. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3756. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3757. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3758. distance = (orb.CFrame.p - position).magnitude
  3759. if typrot == 1 then
  3760. rotation = rotation + 2.5
  3761. elseif typrot == 2 then
  3762. rotation = rotation - 2.5
  3763. end
  3764. RootPart.CFrame = FaceMouse()[1]
  3765. a.Size = Vector3.new(distance, 1, 1)
  3766. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3767. a2.Size = Vector3.new(distance, 1, 1)
  3768. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3769. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3770. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3771. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3772. 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)
  3773. 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)
  3774. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3775. end
  3776. xd:Destroy()
  3777. a:Destroy()
  3778. a2:Destroy()
  3779. ba:Destroy()
  3780. orb:Destroy()
  3781. orbe:Destroy()
  3782. attack = false
  3783. end
  3784. function resetmode()
  3785. rainbowmode = false
  3786. chaosmode = false
  3787. RecolorTextAndRename("Singularity", Color3.new(0, 0, 0), Color3.new(1, 0, 0))
  3788. ModeOfGlitch = 1
  3789. storehumanoidWS = 16
  3790. for i, v in pairs(mw2:GetChildren()) do
  3791. if v:IsA("Part") then
  3792. v.BrickColor = BrickColor.new("Really red")
  3793. v.Material = "Neon"
  3794. end
  3795. end
  3796. for i, v in pairs(mw1:GetChildren()) do
  3797. if v:IsA("Part") then
  3798. v.Transparency = 1
  3799. v.BrickColor = BrickColor.new("Really red")
  3800. v.Material = "Neon"
  3801. end
  3802. end
  3803. MAINRUINCOLOR = BrickColor.new("Really red")
  3804. hum.WalkSpeed = 16
  3805. newTheme("rbxassetid://415898123", 0, 1, 10)
  3806. for i, v in pairs(m:GetChildren()) do
  3807. if v:IsA("Part") then
  3808. v.BrickColor = BrickColor.new("Really black")
  3809. v.Material = "Glass"
  3810. end
  3811. end
  3812. for i, v in pairs(m2:GetChildren()) do
  3813. if v:IsA("Part") then
  3814. v.BrickColor = BrickColor.new("Crimson")
  3815. v.Material = "Granite"
  3816. end
  3817. end
  3818. for i, v in pairs(m3:GetChildren()) do
  3819. if v:IsA("Part") then
  3820. v.BrickColor = BrickColor.new("Really red")
  3821. v.Material = "Neon"
  3822. end
  3823. end
  3824. for i, v in pairs(extrawingmod1:GetChildren()) do
  3825. if v:IsA("Part") then
  3826. v.Transparency = 1
  3827. v.BrickColor = BrickColor.new("White")
  3828. v.Material = "Neon"
  3829. end
  3830. end
  3831. for i, v in pairs(extrawingmod2:GetChildren()) do
  3832. if v:IsA("Part") then
  3833. v.Transparency = 1
  3834. v.BrickColor = BrickColor.new("White")
  3835. v.Material = "Neon"
  3836. end
  3837. end
  3838. end
  3839. function attackone()
  3840. attack = true
  3841. for i = 0, 1, 0.1 do
  3842. swait()
  3843. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
  3844. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
  3845. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  3846. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  3847. 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)
  3848. 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)
  3849. end
  3850. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
  3851. local hitb = Instance.new("Part", char)
  3852. hitb.Anchored = true
  3853. hitb.CanCollide = false
  3854. hitb.FormFactor = 3
  3855. hitb.Name = "Ring"
  3856. hitb.Material = "Neon"
  3857. hitb.Size = Vector3.new(1, 1, 1)
  3858. hitb.Transparency = 1
  3859. hitb.TopSurface = 0
  3860. hitb.BottomSurface = 0
  3861. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  3862. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  3863. hitb:Destroy()
  3864. for i = 0, 1, 0.1 do
  3865. swait()
  3866. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
  3867. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
  3868. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  3869. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  3870. 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)
  3871. 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)
  3872. end
  3873. attack = false
  3874. end
  3875. function attacktwo()
  3876. attack = true
  3877. for i = 0, 1, 0.1 do
  3878. swait()
  3879. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
  3880. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  3881. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  3882. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  3883. 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)
  3884. 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)
  3885. end
  3886. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
  3887. local hitb = Instance.new("Part", char)
  3888. hitb.Anchored = true
  3889. hitb.CanCollide = false
  3890. hitb.FormFactor = 3
  3891. hitb.Name = "Ring"
  3892. hitb.Material = "Neon"
  3893. hitb.Size = Vector3.new(1, 1, 1)
  3894. hitb.Transparency = 1
  3895. hitb.TopSurface = 0
  3896. hitb.BottomSurface = 0
  3897. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  3898. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  3899. hitb:Destroy()
  3900. for i = 0, 1, 0.1 do
  3901. swait()
  3902. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
  3903. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
  3904. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  3905. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  3906. 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)
  3907. 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)
  3908. end
  3909. attack = false
  3910. end
  3911. function attackthree()
  3912. attack = true
  3913. for i = 0, 1, 0.1 do
  3914. swait()
  3915. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  3916. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  3917. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  3918. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3919. 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)
  3920. 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)
  3921. end
  3922. local distlook = 5
  3923. for i = 0, 4 do
  3924. swait(2)
  3925. CameraEnshaking(2, 3)
  3926. local hite = Instance.new("Part", char)
  3927. hite.Anchored = true
  3928. hite.CanCollide = false
  3929. hite.FormFactor = 3
  3930. hite.Name = "Ring"
  3931. hite.Material = "Neon"
  3932. hite.Size = Vector3.new(1, 1, 1)
  3933. hite.Transparency = 1
  3934. hite.TopSurface = 0
  3935. hite.BottomSurface = 0
  3936. hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
  3937. sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
  3938. sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
  3939. MagniDamage(hite, 10, 15, 35, 0, "Normal")
  3940. for i = 0, 2 do
  3941. 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)
  3942. 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)
  3943. 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)
  3944. end
  3945. CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
  3946. CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
  3947. game:GetService("Debris"):AddItem(hite, 5)
  3948. distlook = distlook + 10
  3949. end
  3950. attack = false
  3951. end
  3952. local attacktype = 1
  3953. mouse.Button1Down:connect(function()
  3954. if attack == false and attacktype == 1 then
  3955. attacktype = 2
  3956. attackone()
  3957. elseif attack == false and attacktype == 2 then
  3958. attacktype = 3
  3959. attacktwo()
  3960. elseif attack == false and attacktype == 3 then
  3961. attacktype = 1
  3962. attackthree()
  3963. elseif attack == false and attacktype == 4 then
  3964. attacktype = 1
  3965. end
  3966. end)
  3967. mouse.KeyDown:connect(function(k)
  3968. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  3969. ModeOfGlitch = 2
  3970. storehumanoidWS = 16
  3971. hum.WalkSpeed = 16
  3972. rainbowmode = false
  3973. chaosmode = false
  3974. RecolorTextAndRename("Purity", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
  3975. newTheme("rbxassetid://1119453744", 20.25, 1, 1)
  3976. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  3977. for i, v in pairs(mw2:GetChildren()) do
  3978. if v:IsA("Part") then
  3979. v.BrickColor = MAINRUINCOLOR
  3980. v.Material = "Neon"
  3981. end
  3982. end
  3983. for i, v in pairs(mw1:GetChildren()) do
  3984. if v:IsA("Part") then
  3985. v.Transparency = 1
  3986. v.BrickColor = MAINRUINCOLOR
  3987. v.Material = "Neon"
  3988. end
  3989. end
  3990. for i, v in pairs(m:GetChildren()) do
  3991. if v:IsA("Part") then
  3992. v.BrickColor = BrickColor.new("White")
  3993. v.Material = "Ice"
  3994. end
  3995. end
  3996. for i, v in pairs(m2:GetChildren()) do
  3997. if v:IsA("Part") then
  3998. v.BrickColor = BrickColor.new("Pastel light blue")
  3999. v.Material = "Glass"
  4000. end
  4001. end
  4002. for i, v in pairs(m3:GetChildren()) do
  4003. if v:IsA("Part") then
  4004. v.BrickColor = BrickColor.new("Toothpaste")
  4005. v.Material = "Neon"
  4006. end
  4007. end
  4008. for i, v in pairs(extrawingmod1:GetChildren()) do
  4009. if v:IsA("Part") then
  4010. v.Transparency = 1
  4011. v.BrickColor = BrickColor.new("White")
  4012. v.Material = "Neon"
  4013. end
  4014. end
  4015. for i, v in pairs(extrawingmod2:GetChildren()) do
  4016. if v:IsA("Part") then
  4017. v.Transparency = 1
  4018. v.BrickColor = BrickColor.new("White")
  4019. v.Material = "Neon"
  4020. end
  4021. end
  4022. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  4023. resetmode()
  4024. end
  4025. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  4026. ModeOfGlitch = 3
  4027. storehumanoidWS = 16
  4028. hum.WalkSpeed = 16
  4029. rainbowmode = false
  4030. chaosmode = false
  4031. RecolorTextAndRename("Corruption", Color3.new(0, 0, 0), Color3.new(0.35, 0, 1))
  4032. newTheme("rbxassetid://1509634377", 58.15, 1,2)
  4033. MAINRUINCOLOR = BrickColor.new("Royal purple")
  4034. for i, v in pairs(mw2:GetChildren()) do
  4035. if v:IsA("Part") then
  4036. v.BrickColor = MAINRUINCOLOR
  4037. v.Material = "Neon"
  4038. end
  4039. end
  4040. for i, v in pairs(mw1:GetChildren()) do
  4041. if v:IsA("Part") then
  4042. v.Transparency = 1
  4043. v.BrickColor = MAINRUINCOLOR
  4044. v.Material = "Neon"
  4045. end
  4046. end
  4047. for i, v in pairs(m:GetChildren()) do
  4048. if v:IsA("Part") then
  4049. v.BrickColor = BrickColor.new("Black")
  4050. v.Material = "Ice"
  4051. end
  4052. end
  4053. for i, v in pairs(m2:GetChildren()) do
  4054. if v:IsA("Part") then
  4055. v.BrickColor = BrickColor.new("Dark indigo")
  4056. v.Material = "Glass"
  4057. end
  4058. end
  4059. for i, v in pairs(m3:GetChildren()) do
  4060. if v:IsA("Part") then
  4061. v.BrickColor = BrickColor.new("Royal purple")
  4062. v.Material = "Neon"
  4063. end
  4064. end
  4065. for i, v in pairs(extrawingmod1:GetChildren()) do
  4066. if v:IsA("Part") then
  4067. v.Transparency = 1
  4068. v.BrickColor = BrickColor.new("White")
  4069. v.Material = "Neon"
  4070. end
  4071. end
  4072. for i, v in pairs(extrawingmod2:GetChildren()) do
  4073. if v:IsA("Part") then
  4074. v.Transparency = 1
  4075. v.BrickColor = BrickColor.new("White")
  4076. v.Material = "Neon"
  4077. end
  4078. end
  4079. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  4080. resetmode()
  4081. end
  4082. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  4083. ModeOfGlitch = 4
  4084. storehumanoidWS = 16
  4085. hum.WalkSpeed = 16
  4086. rainbowmode = false
  4087. chaosmode = true
  4088. RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
  4089. newTheme("rbxassetid://415898123", 0, 1, 10)
  4090. MAINRUINCOLOR = BrickColor.new("Black")
  4091. for i, v in pairs(mw2:GetChildren()) do
  4092. if v:IsA("Part") then
  4093. v.BrickColor = MAINRUINCOLOR
  4094. v.Material = "Neon"
  4095. end
  4096. end
  4097. for i, v in pairs(mw1:GetChildren()) do
  4098. if v:IsA("Part") then
  4099. v.Transparency = 0.75
  4100. v.BrickColor = BrickColor.random()
  4101. v.Material = "Neon"
  4102. end
  4103. end
  4104. for i, v in pairs(m:GetChildren()) do
  4105. if v:IsA("Part") then
  4106. v.BrickColor = BrickColor.new("Black")
  4107. v.Material = "Neon"
  4108. end
  4109. end
  4110. for i, v in pairs(m2:GetChildren()) do
  4111. if v:IsA("Part") then
  4112. v.BrickColor = BrickColor.random()
  4113. v.Material = "Neon"
  4114. end
  4115. end
  4116. for i, v in pairs(m3:GetChildren()) do
  4117. if v:IsA("Part") then
  4118. v.BrickColor = BrickColor.new("Black")
  4119. v.Material = "Neon"
  4120. end
  4121. end
  4122. for i, v in pairs(extrawingmod1:GetChildren()) do
  4123. if v:IsA("Part") then
  4124. v.Transparency = 1
  4125. v.BrickColor = BrickColor.new("White")
  4126. v.Material = "Neon"
  4127. end
  4128. end
  4129. for i, v in pairs(extrawingmod2:GetChildren()) do
  4130. if v:IsA("Part") then
  4131. v.Transparency = 1
  4132. v.BrickColor = BrickColor.new("White")
  4133. v.Material = "Neon"
  4134. end
  4135. end
  4136. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  4137. resetmode()
  4138. end
  4139. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  4140. ModeOfGlitch = 5
  4141.  
  4142. storehumanoidWS = 16
  4143. hum.WalkSpeed = 16
  4144. rainbowmode = false
  4145. chaosmode = false
  4146. RecolorTextAndRename("Solitude", Color3.new(0, 0, 0), Color3.new(255, 255, 255))
  4147. newTheme("rbxassetid://723652641", 10, 1, 3.2)
  4148. ModeOfGlitch = 1
  4149. MAINRUINCOLOR = BrickColor.new("Really black")
  4150. for i, v in pairs(mw2:GetChildren()) do
  4151. if v:IsA("Part") then
  4152. v.BrickColor = MAINRUINCOLOR
  4153. v.Material = "Neon"
  4154. end
  4155. end
  4156. for i, v in pairs(mw1:GetChildren()) do
  4157. if v:IsA("Part") then
  4158. v.Transparency = 0
  4159. v.BrickColor = MAINRUINCOLOR
  4160. v.Material = "Neon"
  4161. end
  4162. end
  4163. for i, v in pairs(m:GetChildren()) do
  4164. if v:IsA("Part") then
  4165. v.BrickColor = BrickColor.new("Really black")
  4166. v.Material = "Ice"
  4167. end
  4168. end
  4169. for i, v in pairs(m2:GetChildren()) do
  4170. if v:IsA("Part") then
  4171. v.BrickColor = BrickColor.new("Really black")
  4172. v.Material = "Ice"
  4173. end
  4174. end
  4175. for i, v in pairs(m3:GetChildren()) do
  4176. if v:IsA("Part") then
  4177. v.BrickColor = BrickColor.new("Really black")
  4178. v.Material = "Neon"
  4179. end
  4180. end
  4181. for i, v in pairs(extrawingmod1:GetChildren()) do
  4182. if v:IsA("Part") then
  4183. v.Transparency = 1
  4184. v.BrickColor = BrickColor.new("White")
  4185. v.Material = "Neon"
  4186. end
  4187. end
  4188. for i, v in pairs(extrawingmod2:GetChildren()) do
  4189. if v:IsA("Part") then
  4190. v.Transparency = 1
  4191. v.BrickColor = BrickColor.new("White")
  4192. v.Material = "Neon"
  4193. end
  4194. end
  4195. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  4196. resetmode()
  4197. end
  4198. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  4199. ModeOfGlitch = 6
  4200. storehumanoidWS = 75
  4201. hum.WalkSpeed = 75
  4202. rainbowmode = false
  4203. chaosmode = false
  4204. RecolorTextAndRename("Equality", Color3.new(0, 0, 0), Color3.new(1, 1, 1))
  4205. newTheme("rbxassetid://519067542", 0, 1, 1)
  4206. MAINRUINCOLOR = BrickColor.new("Really black")
  4207. for i, v in pairs(mw2:GetChildren()) do
  4208. if v:IsA("Part") then
  4209. v.BrickColor = BrickColor.new("White")
  4210. v.Material = "Neon"
  4211. end
  4212. end
  4213. for i, v in pairs(mw1:GetChildren()) do
  4214. if v:IsA("Part") then
  4215. v.Transparency = 0
  4216. v.BrickColor = BrickColor.new("Really black")
  4217. v.Material = "Neon"
  4218. end
  4219. end
  4220. for i, v in pairs(m:GetChildren()) do
  4221. if v:IsA("Part") then
  4222. v.BrickColor = BrickColor.new("White")
  4223. v.Material = "Ice"
  4224. end
  4225. end
  4226. for i, v in pairs(m2:GetChildren()) do
  4227. if v:IsA("Part") then
  4228. v.BrickColor = BrickColor.new("Really black")
  4229. v.Material = "Ice"
  4230. end
  4231. end
  4232. for i, v in pairs(m3:GetChildren()) do
  4233. if v:IsA("Part") then
  4234. v.BrickColor = BrickColor.new("White")
  4235. v.Material = "Neon"
  4236. end
  4237. end
  4238. for i, v in pairs(extrawingmod1:GetChildren()) do
  4239. if v:IsA("Part") then
  4240. v.Transparency = 1
  4241. v.BrickColor = BrickColor.new("White")
  4242. v.Material = "Neon"
  4243. end
  4244. end
  4245. for i, v in pairs(extrawingmod2:GetChildren()) do
  4246. if v:IsA("Part") then
  4247. v.Transparency = 1
  4248. v.BrickColor = BrickColor.new("White")
  4249. v.Material = "Neon"
  4250. end
  4251. end
  4252.  
  4253.  
  4254. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  4255. resetmode()
  4256. end
  4257. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  4258. ModeOfGlitch = 6127843
  4259. storehumanoidWS = 50
  4260. hum.WalkSpeed = 50
  4261. rainbowmode = true
  4262. chaosmode = false
  4263. RecolorTextAndRename("StarLight", Color3.new(1, 1, 1), Color3.new(1, 1, 1))
  4264. newTheme("rbxassetid://152539141", 0, 1, 1)
  4265. MAINRUINCOLOR = BrickColor.new("White")
  4266. for i, v in pairs(mw2:GetChildren()) do
  4267. if v:IsA("Part") then
  4268. v.BrickColor = MAINRUINCOLOR
  4269. v.Material = "Neon"
  4270. end
  4271. end
  4272. for i, v in pairs(mw1:GetChildren()) do
  4273. if v:IsA("Part") then
  4274. v.Transparency = 0
  4275. v.BrickColor = MAINRUINCOLOR
  4276. v.Material = "Neon"
  4277. end
  4278. end
  4279. for i, v in pairs(m:GetChildren()) do
  4280. if v:IsA("Part") then
  4281. v.BrickColor = BrickColor.new("White")
  4282. v.Material = "Neon"
  4283. end
  4284. end
  4285. for i, v in pairs(m2:GetChildren()) do
  4286. if v:IsA("Part") then
  4287. v.BrickColor = BrickColor.new("White")
  4288. v.Material = "Neon"
  4289. end
  4290. end
  4291. for i, v in pairs(m3:GetChildren()) do
  4292. if v:IsA("Part") then
  4293. v.BrickColor = BrickColor.new("White")
  4294. v.Material = "Neon"
  4295. end
  4296. end
  4297. for i, v in pairs(extrawingmod1:GetChildren()) do
  4298. if v:IsA("Part") then
  4299. v.Transparency = 1
  4300. v.BrickColor = BrickColor.new("White")
  4301. v.Material = "Neon"
  4302. end
  4303. end
  4304. for i, v in pairs(extrawingmod2:GetChildren()) do
  4305. if v:IsA("Part") then
  4306. v.Transparency = 1
  4307. v.BrickColor = BrickColor.new("White")
  4308. v.Material = "Neon"
  4309. end
  4310. end
  4311. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  4312. resetmode()
  4313. end
  4314. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  4315. ModeOfGlitch = 1000000
  4316. storehumanoidWS = 100
  4317. hum.WalkSpeed = 100
  4318. rainbowmode = false
  4319. chaosmode = false
  4320. RecolorTextAndRename("True Starlight", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
  4321. newTheme("rbxassetid://614032233", 0, 1, 1)
  4322. MAINRUINCOLOR = BrickColor.new("Bright violet")
  4323. for i, v in pairs(mw2:GetChildren()) do
  4324. if v:IsA("Part") then
  4325. v.BrickColor = MAINRUINCOLOR
  4326. v.Material = "Neon"
  4327. end
  4328. end
  4329. for i, v in pairs(mw1:GetChildren()) do
  4330. if v:IsA("Part") then
  4331. v.Transparency = 0
  4332. v.BrickColor = MAINRUINCOLOR
  4333. v.Material = "Neon"
  4334. end
  4335. end
  4336. for i, v in pairs(m:GetChildren()) do
  4337. if v:IsA("Part") then
  4338. v.Color = Color3.new(0.5, 0, 1)
  4339. v.Material = "Neon"
  4340. end
  4341. end
  4342. for i, v in pairs(m2:GetChildren()) do
  4343. if v:IsA("Part") then
  4344. v.Color = Color3.new(0.25, 0, 1)
  4345. v.Material = "Neon"
  4346. end
  4347. end
  4348. for i, v in pairs(m3:GetChildren()) do
  4349. if v:IsA("Part") then
  4350. v.Color = Color3.new(0.45, 0, 1)
  4351. v.Material = "Neon"
  4352. end
  4353. end
  4354. for i, v in pairs(extrawingmod1:GetChildren()) do
  4355. if v:IsA("Part") then
  4356. v.Transparency = 0
  4357. v.Color = Color3.new(0.25, 0, 1)
  4358. v.Material = "Neon"
  4359. end
  4360. end
  4361. for i, v in pairs(extrawingmod2:GetChildren()) do
  4362. if v:IsA("Part") then
  4363. v.Transparency = 0
  4364. v.Color = Color3.new(0.5, 0, 1)
  4365. v.Material = "Neon"
  4366. end
  4367. end
  4368. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  4369. resetmode()
  4370. end
  4371. if k == "b" and toggleTag == false then
  4372. toggleTag = true
  4373. text.TextTransparency = 0
  4374. text.TextStrokeTransparency = 0
  4375. elseif k == "b" and toggleTag == true then
  4376. toggleTag = false
  4377. text.TextTransparency = 1
  4378. text.TextStrokeTransparency = 1
  4379. end
  4380. if k == "z" and attack == false and ModeOfGlitch == 1 then
  4381. ExtinctiveHeartbreak()
  4382. elseif k == "l" and attack == false and ModeOfGlitch == 1 then
  4383. deadworld()
  4384. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  4385. PureBomb()
  4386. elseif k == "l" and attack == false and ModeOfGlitch == 2 then
  4387. MegaPureBomb()
  4388. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  4389. scattercorrupt()
  4390. elseif k == "l" and attack == false and ModeOfGlitch == 3 then
  4391. RavagingOverthrower()
  4392. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  4393. ChaosGroundStrike()
  4394. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  4395. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  4396. UniversalSpark()
  4397. elseif k == "l" and attack == false and ModeOfGlitch == 1000000 then
  4398. scattercorrupt()
  4399. wait(1)
  4400. yinyangi()
  4401. elseif k == "l" and attack == false and ModeOfGlitch == 5 then
  4402. scattercorrupt()
  4403. scattercorrupt()
  4404. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  4405. yinyangi()
  4406. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  4407. Wip()
  4408. end
  4409. if k == "l" and attack == false and ModeOfGlitch == 4 then
  4410. ChaosBegone()
  4411. end
  4412. end)
  4413. coroutine.resume(coroutine.create(function()
  4414. while true do
  4415. swait(2)
  4416. if rainbowmode == true or ModeOfGlitch == 6 then
  4417. 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)
  4418. end
  4419. end
  4420. end))
  4421. coroutine.resume(coroutine.create(function()
  4422. while true do
  4423. swait(0.5)
  4424. if ModeOfGlitch == 1000000 then
  4425. 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)
  4426. end
  4427. end
  4428. end))
  4429. coroutine.resume(coroutine.create(function()
  4430. while true do
  4431. swait(2)
  4432. if chaosmode == true then
  4433. RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
  4434. for i, v in pairs(mw1:GetChildren()) do
  4435. if v:IsA("Part") then
  4436. v.Transparency = 0.75
  4437. v.BrickColor = BrickColor.random()
  4438. v.Material = "Neon"
  4439. end
  4440. end
  4441. for i, v in pairs(m2:GetChildren()) do
  4442. if v:IsA("Part") then
  4443. v.BrickColor = BrickColor.random()
  4444. v.Material = "Neon"
  4445. end
  4446. end
  4447. end
  4448. end
  4449. end))
  4450. Humanoid.Name = "STARGLITCHER"
  4451. Humanoid.MaxHealth = math.huge
  4452. Humanoid.Health = math.huge
  4453. Instance.new("ForceField", char).Visible = false
  4454. Humanoid.Animator.Parent = nil
  4455. idleanim = 0.4
  4456. while true do
  4457. if rainbowmode == true then
  4458. RecolorTextAndRename("StarLight", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500))
  4459. MAINRUINCOLOR = BrickColor.new("White")
  4460. for i, v in pairs(m:GetChildren()) do
  4461. if v:IsA("Part") then
  4462. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4463. end
  4464. end
  4465. for i, v in pairs(m2:GetChildren()) do
  4466. if v:IsA("Part") then
  4467. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4468. end
  4469. end
  4470. for i, v in pairs(m3:GetChildren()) do
  4471. if v:IsA("Part") then
  4472. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4473. end
  4474. end
  4475. for i, v in pairs(mw1:GetChildren()) do
  4476. if v:IsA("Part") then
  4477. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4478. v.Material = "Neon"
  4479. end
  4480. end
  4481. for i, v in pairs(mw2:GetChildren()) do
  4482. if v:IsA("Part") then
  4483. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4484. v.Material = "Neon"
  4485. end
  4486. end
  4487. end
  4488. CameraManager()
  4489. swait()
  4490. 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)
  4491. 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)
  4492. 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)
  4493. 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)
  4494. 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)
  4495. 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)
  4496. 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)
  4497. 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)
  4498. 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)
  4499. 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)
  4500. 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)
  4501. 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)
  4502. sine = sine + change
  4503. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  4504. local velderp = RootPart.Velocity.y
  4505. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  4506. if equipped == true or equipped == false then
  4507. if attack == false then
  4508. idle = idle + 1
  4509. else
  4510. idle = 0
  4511. end
  4512. if not (idle >= 500) or attack == false then
  4513. end
  4514. if RootPart.Velocity.y > 1 and hitfloor == nil then
  4515. Anim = "Jump"
  4516. if attack == false then
  4517. 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)
  4518. 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)
  4519. 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)
  4520. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1)
  4521. 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)
  4522. 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)
  4523. end
  4524. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  4525. Anim = "Fall"
  4526. if attack == false then
  4527. 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)
  4528. 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)
  4529. 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)
  4530. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4531. 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)
  4532. 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)
  4533. end
  4534. elseif torvel < 1 and hitfloor ~= nil then
  4535. Anim = "Idle"
  4536. if attack == false then
  4537. if ModeOfGlitch == 1 then
  4538. 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)
  4539. 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)
  4540. 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)
  4541. 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)
  4542. 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)
  4543. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
  4544. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  4545. 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)
  4546. 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)
  4547. 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)
  4548. 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)
  4549. 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)
  4550. 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)
  4551. elseif ModeOfGlitch == 3 then
  4552. 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)
  4553. 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)
  4554. 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)
  4555. 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)
  4556. 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)
  4557. LW.C0 = clerp(LW.C0, cf(-1.5, 0.75, 0) * angles(math.rad(170), math.rad(-20), math.rad(20)), 0.1)
  4558. elseif ModeOfGlitch == 4 then
  4559. 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)
  4560. 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)
  4561. 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)
  4562. 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)
  4563. 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)
  4564. 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)
  4565. elseif ModeOfGlitch == 5 then
  4566. 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)
  4567. 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)
  4568. 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)
  4569. 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)
  4570. 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)
  4571. 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)
  4572. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  4573. 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)
  4574. 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)
  4575. 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)
  4576. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
  4577. 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)
  4578. 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)
  4579. end
  4580. end
  4581. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  4582. Anim = "Walk"
  4583. if attack == false then
  4584. if ModeOfGlitch == 1 then
  4585. 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)
  4586. 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)
  4587. 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)
  4588. 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)
  4589. 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)
  4590. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
  4591. elseif ModeOfGlitch == 4 then
  4592. 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)
  4593. 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)
  4594. 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)
  4595. 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)
  4596. 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)
  4597. 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)
  4598. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then
  4599. 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)
  4600. 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)
  4601. 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)
  4602. 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)
  4603. 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)
  4604. 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)
  4605. end
  4606. end
  4607. elseif torvel >= 22 and hitfloor ~= nil then
  4608. Anim = "Run"
  4609. if attack == false then
  4610. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then
  4611. 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)
  4612. 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)
  4613. 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)
  4614. 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)
  4615. 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)
  4616. 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)
  4617. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  4618. 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)
  4619. 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)
  4620. 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)
  4621. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4622. 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)
  4623. 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)
  4624. end
  4625. end
  4626. end
  4627. end
  4628. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement