Advertisement
plytalent

star glitch edit by plytalent

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