seamus2669

Untitled

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