Advertisement
Gummi_Shark

Untitled

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