Advertisement
Gummi_Shark

Untitled

May 22nd, 2018
90
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("Minor 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. chatfunc("Your mine...", BrickColor.random().Color)
  2676. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  2677. for i = 0, 9 do
  2678. 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)
  2679. end
  2680. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  2681. local originalpos = root.CFrame
  2682. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
  2683. for i = 0, 9 do
  2684. 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)
  2685. end
  2686. hum.WalkSpeed = 0
  2687. targetted.Head.Anchored = true
  2688. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  2689. for i = 0, 2, 0.1 do
  2690. swait()
  2691. 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)
  2692. 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)
  2693. 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)
  2694. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  2695. 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)
  2696. 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)
  2697. end
  2698. coroutine.resume(coroutine.create(function()
  2699. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
  2700. bld.LightEmission = 0.1
  2701. bld.Texture = "rbxassetid://284205403"
  2702. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  2703. bld.Rate = 500
  2704. bld.Lifetime = NumberRange.new(1)
  2705. bld.Size = NumberSequence.new({
  2706. NumberSequenceKeypoint.new(0, 2, 0),
  2707. NumberSequenceKeypoint.new(1, 0, 0)
  2708. })
  2709. bld.Acceleration = vt(0, -25, 0)
  2710. bld.Transparency = NumberSequence.new({
  2711. NumberSequenceKeypoint.new(0, 0, 0),
  2712. NumberSequenceKeypoint.new(1, 0, 0)
  2713. })
  2714. bld.Speed = NumberRange.new(10, 50)
  2715. bld.EmissionDirection = "Front"
  2716. bld.VelocitySpread = 25
  2717. bld.Rotation = NumberRange.new(-500, 500)
  2718. bld.RotSpeed = NumberRange.new(-500, 500)
  2719. end))
  2720. coroutine.resume(coroutine.create(function()
  2721. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
  2722. bld.LightEmission = 0.1
  2723. bld.Texture = "rbxassetid://284205403"
  2724. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  2725. bld.Rate = 500
  2726. bld.Lifetime = NumberRange.new(1)
  2727. bld.Size = NumberSequence.new({
  2728. NumberSequenceKeypoint.new(0, 2, 0),
  2729. NumberSequenceKeypoint.new(1, 0, 0)
  2730. })
  2731. bld.Acceleration = vt(0, -25, 0)
  2732. bld.Transparency = NumberSequence.new({
  2733. NumberSequenceKeypoint.new(0, 0, 0),
  2734. NumberSequenceKeypoint.new(1, 0, 0)
  2735. })
  2736. bld.Speed = NumberRange.new(10, 50)
  2737. bld.EmissionDirection = "Front"
  2738. bld.VelocitySpread = 25
  2739. bld.Rotation = NumberRange.new(-500, 500)
  2740. bld.RotSpeed = NumberRange.new(-500, 500)
  2741. end))
  2742. CameraEnshaking(5, 5)
  2743. game:GetService("Debris"):AddItem(bld, 3)
  2744. dmg(targetted)
  2745. CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
  2746. for i = 0, 1, 0.1 do
  2747. swait()
  2748. 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)
  2749. 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)
  2750. 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)
  2751. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
  2752. 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)
  2753. 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)
  2754. end
  2755. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  2756. for i = 0, 9 do
  2757. 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)
  2758. end
  2759. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  2760. root.CFrame = originalpos
  2761. for i = 0, 9 do
  2762. 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)
  2763. end
  2764. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  2765. bld.Enabled = false
  2766. attack = false
  2767. hum.WalkSpeed = storehumanoidWS
  2768. end
  2769. end
  2770. function PureBomb()
  2771. attack = true
  2772. chatfunc("Take this!", BrickColor.random().Color)
  2773. local orb = Instance.new("Part", char)
  2774. orb.Anchored = true
  2775. orb.BrickColor = BrickColor.new("Toothpaste")
  2776. orb.CanCollide = false
  2777. orb.FormFactor = 3
  2778. orb.Name = "Ring"
  2779. orb.Material = "Neon"
  2780. orb.Size = Vector3.new(1, 1, 1)
  2781. orb.Transparency = 0
  2782. orb.TopSurface = 0
  2783. orb.BottomSurface = 0
  2784. local orbm = Instance.new("SpecialMesh", orb)
  2785. orbm.MeshType = "Sphere"
  2786. orbm.Name = "SizeMesh"
  2787. orbm.Scale = vt(0, 0, 0)
  2788. local scaled = 0.1
  2789. local posid = 0
  2790. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  2791. for i = 0, 5, 0.1 do
  2792. swait()
  2793. scaled = scaled - 0.001
  2794. posid = posid - scaled
  2795. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  2796. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  2797. 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)
  2798. 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)
  2799. 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)
  2800. 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)
  2801. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2802. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  2803. 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)
  2804. end
  2805. for i = 0, 2, 0.1 do
  2806. swait()
  2807. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  2808. 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)
  2809. 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)
  2810. 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)
  2811. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  2812. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  2813. 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)
  2814. end
  2815. coroutine.resume(coroutine.create(function()
  2816. orb.Anchored = false
  2817. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  2818. local a = Instance.new("Part", workspace)
  2819. a.Name = "Direction"
  2820. a.Anchored = true
  2821. a.BrickColor = bc("Bright red")
  2822. a.Material = "Neon"
  2823. a.Transparency = 1
  2824. a.CanCollide = false
  2825. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  2826. local ignore = orb
  2827. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2828. a.BottomSurface = 10
  2829. a.TopSurface = 10
  2830. local distance = (orb.CFrame.p - position).magnitude
  2831. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2832. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2833. orb.CFrame = a.CFrame
  2834. a:Destroy()
  2835. local bv = Instance.new("BodyVelocity")
  2836. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  2837. bv.velocity = orb.CFrame.lookVector * 125
  2838. bv.Parent = orb
  2839. local hitted = false
  2840. game:GetService("Debris"):AddItem(orb, 15)
  2841. wait()
  2842. local hit = orb.Touched:connect(function(hit)
  2843. if hitted == false then
  2844. hitted = true
  2845. CameraEnshaking(10, 2.5)
  2846. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  2847. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  2848. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  2849. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  2850. for i = 0, 9 do
  2851. 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)
  2852. 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)
  2853. end
  2854. orb.Anchored = true
  2855. orb.Transparency = 1
  2856. wait(8)
  2857. orb:Destroy()
  2858. end
  2859. end)
  2860. end))
  2861. for i = 0, 1, 0.1 do
  2862. swait()
  2863. 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)
  2864. 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)
  2865. 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)
  2866. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  2867. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  2868. 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)
  2869. end
  2870. attack = false
  2871. end
  2872. function ChaosGroundStrike()
  2873. attack = true
  2874. chatfunc("Give in...", BrickColor.random().Color)
  2875. for i = 0, 2, 0.1 do
  2876. swait()
  2877. 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)
  2878. 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)
  2879. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  2880. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  2881. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  2882. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  2883. end
  2884. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  2885. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  2886. CameraEnshaking(4, 12)
  2887. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  2888. if v:FindFirstChild("Head") then
  2889. dmg(v)
  2890. end
  2891. end
  2892. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  2893. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  2894. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  2895. for i = 0, 2, 0.1 do
  2896. swait()
  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. 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)
  2899. 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)
  2900. 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)
  2901. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  2902. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  2903. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  2904. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  2905. end
  2906. attack = false
  2907. end
  2908. function ChaosBegone()
  2909. attack = true
  2910. chatfunc("Stop Resisting...", BrickColor.random().Color)
  2911. for i = 0, 10, 0.1 do
  2912. swait()
  2913. 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)
  2914. 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)
  2915. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  2916. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  2917. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  2918. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  2919. end
  2920. chatfunc("AND LET THE DARKNESS IN!!!", BrickColor.random().Color)
  2921. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  2922. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  2923. CameraEnshaking(5, 25)
  2924. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  2925. if v:FindFirstChild("Head") then
  2926. dmg(v)
  2927. end
  2928. end
  2929. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  2930. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  2931. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  2932. for i = 0, 3, 0.1 do
  2933. swait()
  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. 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)
  2938. 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)
  2939. 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)
  2940. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  2941. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  2942. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  2943. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  2944. end
  2945. attack = false
  2946. end
  2947. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  2948. local orb = Instance.new("Part", char)
  2949. orb.Anchored = true
  2950. orb.BrickColor = color
  2951. orb.CanCollide = false
  2952. orb.FormFactor = 3
  2953. orb.Name = "Ring"
  2954. orb.Material = "Neon"
  2955. orb.Size = Vector3.new(1, 1, 1)
  2956. orb.Transparency = 0
  2957. orb.TopSurface = 0
  2958. orb.BottomSurface = 0
  2959. local orbm = Instance.new("SpecialMesh", orb)
  2960. orbm.MeshType = "Sphere"
  2961. orb.CFrame = positted
  2962. orbm.Name = "SizeMesh"
  2963. orbm.Scale = vt(1, 1, 1)
  2964. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  2965. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  2966. coroutine.resume(coroutine.create(function()
  2967. wait(timer)
  2968. CameraEnshaking(3, ShakePower)
  2969. orb.Transparency = 1
  2970. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  2971. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  2972. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  2973. wait(3)
  2974. orb:Destroy()
  2975. end))
  2976. end
  2977. function orb_spawn(positted, timer)
  2978. local randomcol = math.random(1, 2)
  2979. local orb = Instance.new("Part", char)
  2980. orb.Anchored = true
  2981. if randomcol == 1 then
  2982. orb.BrickColor = BrickColor.new("White")
  2983. elseif randomcol == 2 then
  2984. orb.BrickColor = BrickColor.new("Really black")
  2985. end
  2986. orb.CanCollide = false
  2987. orb.FormFactor = 3
  2988. orb.Name = "Ring"
  2989. orb.Material = "Neon"
  2990. orb.Size = Vector3.new(1, 1, 1)
  2991. orb.Transparency = 0
  2992. orb.TopSurface = 0
  2993. orb.BottomSurface = 0
  2994. local orbm = Instance.new("SpecialMesh", orb)
  2995. orbm.MeshType = "Sphere"
  2996. orb.CFrame = positted
  2997. orbm.Name = "SizeMesh"
  2998. orbm.Scale = vt(1, 1, 1)
  2999. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  3000. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  3001. for i = 0, 2 do
  3002. 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)
  3003. end
  3004. coroutine.resume(coroutine.create(function()
  3005. wait(timer)
  3006. CameraEnshaking(3, 2)
  3007. orb.Transparency = 1
  3008. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  3009. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  3010. for i = 0, 4 do
  3011. 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)
  3012. end
  3013. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  3014. wait(3)
  3015. orb:Destroy()
  3016. end))
  3017. end
  3018. function scattercorrupt()
  3019. attack = true
  3020. chatfunc("Feel my pain...", BrickColor.random().Color)
  3021. local rot = 0
  3022. local randomrotations = math.random(1, 2)
  3023. local lookv = 2.5
  3024. local power = 5
  3025. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  3026. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  3027. for i = 0, 9 do
  3028. 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)
  3029. end
  3030. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  3031. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  3032. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  3033. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  3034. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  3035. local hite = Instance.new("Part", char)
  3036. hite.Anchored = true
  3037. hite.CanCollide = false
  3038. hite.FormFactor = 3
  3039. hite.Name = "Ring"
  3040. hite.Material = "Neon"
  3041. hite.Size = Vector3.new(1, 1, 1)
  3042. hite.Transparency = 1
  3043. hite.TopSurface = 0
  3044. hite.BottomSurface = 0
  3045. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  3046. local rem = Instance.new("Part", char)
  3047. rem.Anchored = true
  3048. rem.CanCollide = false
  3049. rem.FormFactor = 3
  3050. rem.Name = "Ring"
  3051. rem.Material = "Neon"
  3052. rem.Size = Vector3.new(1, 1, 1)
  3053. rem.Transparency = 1
  3054. rem.TopSurface = 0
  3055. rem.BottomSurface = 0
  3056. rem.CFrame = hite.CFrame
  3057. local rem2 = rem:Clone()
  3058. rem2.Parent = char
  3059. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3060. local rem3 = rem:Clone()
  3061. rem3.Parent = char
  3062. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3063. local rem4 = rem:Clone()
  3064. rem4.Parent = char
  3065. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3066. hite:Destroy()
  3067. coroutine.resume(coroutine.create(function()
  3068. for i = 0, 24 do
  3069. swait(1)
  3070. if randomrotations == 1 then
  3071. rot = rot + 1
  3072. elseif randomrotations == 2 then
  3073. rot = rot - 1
  3074. end
  3075. power = power + 0.5
  3076. lookv = lookv + 7.5
  3077. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  3078. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3079. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3080. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3081. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3082. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3083. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3084. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3085. end
  3086. end))
  3087. attack = false
  3088. end
  3089. function yinyangi()
  3090. attack = true
  3091. for i = 0, 2, 0.1 do
  3092. swait()
  3093. 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)
  3094. 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)
  3095. 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)
  3096. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3097. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  3098. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  3099. end
  3100. local bv = Instance.new("BodyVelocity")
  3101. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  3102. bv.velocity = root.CFrame.lookVector * 175
  3103. bv.Parent = root
  3104. for Rotations = 0, 9 do
  3105. for i = 0, 1, 0.5 do
  3106. swait()
  3107. bv.velocity = root.CFrame.lookVector * 175
  3108. 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)
  3109. 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)
  3110. 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)
  3111. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3112. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3113. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3114. end
  3115. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3116. for i = 0, 1, 0.5 do
  3117. swait()
  3118. bv.velocity = root.CFrame.lookVector * 175
  3119. 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)
  3120. 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)
  3121. 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)
  3122. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3123. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3124. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3125. end
  3126. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3127. for i = 0, 1, 0.5 do
  3128. swait()
  3129. bv.velocity = root.CFrame.lookVector * 175
  3130. 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)
  3131. 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)
  3132. 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)
  3133. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3134. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3135. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3136. end
  3137. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3138. for i = 0, 1, 0.5 do
  3139. swait()
  3140. bv.velocity = root.CFrame.lookVector * 175
  3141. 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)
  3142. 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)
  3143. 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)
  3144. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3145. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3146. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3147. end
  3148. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3149. end
  3150. bv:Destroy()
  3151. attack = false
  3152. end
  3153. function Wip()
  3154. attack = true
  3155. chatfunc("Become Stardust...", BrickColor.random().Color)
  3156. local rngb = Instance.new("Part", char)
  3157. rngb.Anchored = true
  3158. rngb.BrickColor = origcolor
  3159. rngb.CanCollide = false
  3160. rngb.FormFactor = 3
  3161. rngb.Name = "Ring"
  3162. rngb.Material = "Neon"
  3163. rngb.Size = Vector3.new(1, 0.05, 1)
  3164. rngb.Transparency = 1
  3165. rngb.TopSurface = 0
  3166. rngb.BottomSurface = 0
  3167. local rngmb = Instance.new("SpecialMesh", rngb)
  3168. rngmb.MeshType = "Brick"
  3169. rngmb.Name = "SizeMesh"
  3170. rngmb.Scale = vt(0, 1, 0)
  3171. local orb = rngb:Clone()
  3172. orb.Parent = char
  3173. orb.Transparency = 0
  3174. orb.BrickColor = BrickColor.new("White")
  3175. orb.Size = vt(1, 1, 1)
  3176. local orbmish = orb.SizeMesh
  3177. orbmish.Scale = vt(0, 0, 0)
  3178. orbmish.MeshType = "Sphere"
  3179. local orbe = rngb:Clone()
  3180. orbe.Parent = char
  3181. orbe.Transparency = 0.5
  3182. orbe.BrickColor = BrickColor.new("New Yeller")
  3183. orbe.Size = vt(1, 1, 1)
  3184. local orbmish2 = orbe.SizeMesh
  3185. orbmish2.Scale = vt(0, 0, 0)
  3186. orbmish2.MeshType = "Sphere"
  3187. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3188. rngb:Destroy()
  3189. for i = 0, 5, 0.1 do
  3190. swait()
  3191. if rainbowmode == true then
  3192. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3193. end
  3194. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3195. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3196. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3197. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3198. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  3199. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3200. 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)
  3201. 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)
  3202. RootPart.CFrame = FaceMouse()[1]
  3203. end
  3204. orbe.Transparency = 1
  3205. orb.Transparency = 1
  3206. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3207. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  3208. local a = Instance.new("Part", Character)
  3209. a.Name = "Direction"
  3210. a.Anchored = true
  3211. a.BrickColor = bc("White")
  3212. a.Material = "Neon"
  3213. a.Transparency = 0
  3214. a.Shape = "Cylinder"
  3215. a.CanCollide = false
  3216. local a2 = Instance.new("Part", Character)
  3217. a2.Name = "Direction"
  3218. a2.Anchored = true
  3219. a2.BrickColor = bc("New Yeller")
  3220. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  3221. a2.Material = "Neon"
  3222. a2.Transparency = 0.5
  3223. a2.Shape = "Cylinder"
  3224. a2.CanCollide = false
  3225. local ba = Instance.new("Part", Character)
  3226. ba.Name = "HitDirect"
  3227. ba.Anchored = true
  3228. ba.BrickColor = bc("Really black")
  3229. ba.Material = "Neon"
  3230. ba.Transparency = 1
  3231. ba.CanCollide = false
  3232. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3233. local ignore = Character
  3234. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3235. a.BottomSurface = 10
  3236. a.TopSurface = 10
  3237. a2.BottomSurface = 10
  3238. a2.TopSurface = 10
  3239. local distance = (orb.CFrame.p - position).magnitude
  3240. a.Size = Vector3.new(distance, 1, 1)
  3241. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3242. a2.Size = Vector3.new(distance, 1, 1)
  3243. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3244. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3245. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3246. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3247. game:GetService("Debris"):AddItem(a, 20)
  3248. game:GetService("Debris"):AddItem(a2, 20)
  3249. game:GetService("Debris"):AddItem(ba, 20)
  3250. local msh = Instance.new("SpecialMesh", a)
  3251. msh.MeshType = "Cylinder"
  3252. msh.Scale = vt(1, 25, 25)
  3253. local msh2 = Instance.new("SpecialMesh", a2)
  3254. msh2.MeshType = "Cylinder"
  3255. msh2.Scale = vt(1, 30, 30)
  3256. for i = 0, 10, 0.1 do
  3257. swait()
  3258. CameraEnshaking(1, 5)
  3259. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  3260. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3261. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3262. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3263. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3264. distance = (orb.CFrame.p - position).magnitude
  3265. if typrot == 1 then
  3266. rotation = rotation + 2.5
  3267. elseif typrot == 2 then
  3268. rotation = rotation - 2.5
  3269. end
  3270. RootPart.CFrame = FaceMouse()[1]
  3271. a.Size = Vector3.new(distance, 1, 1)
  3272. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3273. a2.Size = Vector3.new(distance, 1, 1)
  3274. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3275. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3276. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3277. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3278. msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
  3279. msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
  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. 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)
  3282. MagniDamage(ba, 30, 500, 60000, 0, "Normal")
  3283. end
  3284. a:Destroy()
  3285. a2:Destroy()
  3286. ba:Destroy()
  3287. orb:Destroy()
  3288. orbe:Destroy()
  3289. attack = false
  3290. end
  3291. function UniversalSpark()
  3292. attack = true
  3293. chatfunc("It's over...", BrickColor.random().Color)
  3294. local rngb = Instance.new("Part", char)
  3295. rngb.Anchored = true
  3296. rngb.BrickColor = origcolor
  3297. rngb.CanCollide = false
  3298. rngb.FormFactor = 3
  3299. rngb.Name = "Ring"
  3300. rngb.Material = "Neon"
  3301. rngb.Size = Vector3.new(1, 0.05, 1)
  3302. rngb.Transparency = 1
  3303. rngb.TopSurface = 0
  3304. rngb.BottomSurface = 0
  3305. local rngmb = Instance.new("SpecialMesh", rngb)
  3306. rngmb.MeshType = "Brick"
  3307. rngmb.Name = "SizeMesh"
  3308. rngmb.Scale = vt(0, 1, 0)
  3309. local orb = rngb:Clone()
  3310. orb.Parent = char
  3311. orb.Transparency = 0
  3312. orb.BrickColor = BrickColor.new("White")
  3313. orb.Size = vt(1, 1, 1)
  3314. local orbmish = orb.SizeMesh
  3315. orbmish.Scale = vt(0, 0, 0)
  3316. orbmish.MeshType = "Sphere"
  3317. local orbe = rngb:Clone()
  3318. orbe.Parent = char
  3319. orbe.Transparency = 0.5
  3320. orbe.BrickColor = BrickColor.new("New Yeller")
  3321. orbe.Size = vt(1, 1, 1)
  3322. local orbmish2 = orbe.SizeMesh
  3323. orbmish2.Scale = vt(0, 0, 0)
  3324. orbmish2.MeshType = "Sphere"
  3325. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3326. rngb:Destroy()
  3327. for i = 0, 5, 0.1 do
  3328. swait()
  3329. if rainbowmode == true then
  3330. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3331. end
  3332. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3333. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3334. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3335. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3336. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  3337. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3338. 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)
  3339. 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)
  3340. RootPart.CFrame = FaceMouse()[1]
  3341. end
  3342. orbe.Transparency = 1
  3343. orb.Transparency = 1
  3344. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3345. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  3346. CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
  3347. CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
  3348. CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
  3349. CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
  3350. CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
  3351. CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
  3352. local xd = Instance.new("Sound", char)
  3353. xd.SoundId = "rbxassetid://445796828"
  3354. xd.Pitch = 0.75
  3355. xd.Looped = true
  3356. xd.Volume = 1.25
  3357. xd:Play()
  3358. local a = Instance.new("Part", Character)
  3359. a.Name = "Direction"
  3360. a.Anchored = true
  3361. a.BrickColor = bc("Alder")
  3362. a.Color = MAINRUINCOLOR.Color
  3363. a.Material = "Neon"
  3364. a.Transparency = 0.5
  3365. a.Shape = "Cylinder"
  3366. a.CanCollide = false
  3367. local a2 = Instance.new("Part", Character)
  3368. a2.Name = "Direction"
  3369. a2.Anchored = true
  3370. a2.BrickColor = bc("New Yeller")
  3371. a2.Color = MAINRUINCOLOR.Color
  3372. a2.Material = "Neon"
  3373. a2.Transparency = 0.5
  3374. a2.Shape = "Cylinder"
  3375. a2.CanCollide = false
  3376. local ba = Instance.new("Part", Character)
  3377. ba.Name = "HitDirect"
  3378. ba.Anchored = true
  3379. ba.BrickColor = bc("Really black")
  3380. ba.Material = "Neon"
  3381. ba.Transparency = 1
  3382. ba.CanCollide = false
  3383. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3384. local ignore = Character
  3385. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3386. a.BottomSurface = 10
  3387. a.TopSurface = 10
  3388. a2.BottomSurface = 10
  3389. a2.TopSurface = 10
  3390. local distance = (orb.CFrame.p - position).magnitude
  3391. a.Size = Vector3.new(distance, 1, 1)
  3392. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3393. a2.Size = Vector3.new(distance, 1, 1)
  3394. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3395. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3396. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3397. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3398. game:GetService("Debris"):AddItem(a, 60)
  3399. game:GetService("Debris"):AddItem(a2, 60)
  3400. game:GetService("Debris"):AddItem(ba, 60)
  3401. local outerscale = 0
  3402. local msh = Instance.new("SpecialMesh", a)
  3403. msh.MeshType = "Cylinder"
  3404. msh.Scale = vt(1, 0, 0)
  3405. local msh2 = Instance.new("SpecialMesh", a2)
  3406. msh2.MeshType = "Cylinder"
  3407. msh2.Scale = vt(1, 0, 0)
  3408. for i = 0, 2, 0.1 do
  3409. swait()
  3410. CameraEnshaking(1, 1)
  3411. msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
  3412. msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
  3413. outerscale = outerscale - 0.015
  3414. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3415. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3416. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3417. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3418. distance = (orb.CFrame.p - position).magnitude
  3419. if typrot == 1 then
  3420. rotation = rotation + 2.5
  3421. elseif typrot == 2 then
  3422. rotation = rotation - 2.5
  3423. end
  3424. RootPart.CFrame = FaceMouse()[1]
  3425. a.Size = Vector3.new(distance, 1, 1)
  3426. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3427. a2.Size = Vector3.new(distance, 1, 1)
  3428. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3429. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3430. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3431. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 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. 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)
  3434. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3435. end
  3436. for z = 0, 2 do
  3437. for i = 0, 4, 0.1 do
  3438. swait()
  3439. CameraEnshaking(1, 1)
  3440. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3441. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3442. outerscale = outerscale + 0.015
  3443. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3444. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3445. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3446. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3447. distance = (orb.CFrame.p - position).magnitude
  3448. if typrot == 1 then
  3449. rotation = rotation + 2.5
  3450. elseif typrot == 2 then
  3451. rotation = rotation - 2.5
  3452. end
  3453. RootPart.CFrame = FaceMouse()[1]
  3454. a.Size = Vector3.new(distance, 1, 1)
  3455. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3456. a2.Size = Vector3.new(distance, 1, 1)
  3457. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3458. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3459. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3460. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 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. 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)
  3463. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3464. end
  3465. for i = 0, 4, 0.1 do
  3466. swait()
  3467. CameraEnshaking(1, 1)
  3468. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3469. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3470. outerscale = outerscale - 0.015
  3471. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3472. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3473. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3474. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3475. distance = (orb.CFrame.p - position).magnitude
  3476. if typrot == 1 then
  3477. rotation = rotation + 2.5
  3478. elseif typrot == 2 then
  3479. rotation = rotation - 2.5
  3480. end
  3481. RootPart.CFrame = FaceMouse()[1]
  3482. a.Size = Vector3.new(distance, 1, 1)
  3483. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3484. a2.Size = Vector3.new(distance, 1, 1)
  3485. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3486. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3487. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3488. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 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. 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)
  3491. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3492. end
  3493. end
  3494. for i = 0, 4, 0.1 do
  3495. swait()
  3496. CameraEnshaking(1, 1)
  3497. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3498. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3499. xd.Volume = xd.Volume - 0.025
  3500. a.Transparency = a.Transparency + 0.025
  3501. a2.Transparency = a2.Transparency + 0.025
  3502. outerscale = outerscale - 0.015
  3503. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3504. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3505. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3506. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3507. distance = (orb.CFrame.p - position).magnitude
  3508. if typrot == 1 then
  3509. rotation = rotation + 2.5
  3510. elseif typrot == 2 then
  3511. rotation = rotation - 2.5
  3512. end
  3513. RootPart.CFrame = FaceMouse()[1]
  3514. a.Size = Vector3.new(distance, 1, 1)
  3515. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3516. a2.Size = Vector3.new(distance, 1, 1)
  3517. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3518. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3519. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3520. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 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. 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)
  3523. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3524. end
  3525. xd:Destroy()
  3526. a:Destroy()
  3527. a2:Destroy()
  3528. ba:Destroy()
  3529. orb:Destroy()
  3530. orbe:Destroy()
  3531. attack = false
  3532. end
  3533. function resetmode()
  3534. rainbowmode = false
  3535. chaosmode = false
  3536. RecolorTextAndRename("Singularity", Color3.new(0, 0, 0), Color3.new(1, 0, 0))
  3537. ModeOfGlitch = 1
  3538. storehumanoidWS = 16
  3539. for i, v in pairs(mw2:GetChildren()) do
  3540. if v:IsA("Part") then
  3541. v.BrickColor = BrickColor.new("Really red")
  3542. v.Material = "Neon"
  3543. end
  3544. end
  3545. for i, v in pairs(mw1:GetChildren()) do
  3546. if v:IsA("Part") then
  3547. v.Transparency = 1
  3548. v.BrickColor = BrickColor.new("Really red")
  3549. v.Material = "Neon"
  3550. end
  3551. end
  3552. MAINRUINCOLOR = BrickColor.new("Really red")
  3553. hum.WalkSpeed = 16
  3554. newTheme("rbxassetid://"415898123", 0, 1, 10)
  3555. for i, v in pairs(m:GetChildren()) do
  3556. if v:IsA("Part") then
  3557. v.BrickColor = BrickColor.new("Really black")
  3558. v.Material = "Glass"
  3559. end
  3560. end
  3561. for i, v in pairs(m2:GetChildren()) do
  3562. if v:IsA("Part") then
  3563. v.BrickColor = BrickColor.new("Crimson")
  3564. v.Material = "Granite"
  3565. end
  3566. end
  3567. for i, v in pairs(m3:GetChildren()) do
  3568. if v:IsA("Part") then
  3569. v.BrickColor = BrickColor.new("Really red")
  3570. v.Material = "Neon"
  3571. end
  3572. end
  3573. for i, v in pairs(extrawingmod1:GetChildren()) do
  3574. if v:IsA("Part") then
  3575. v.Transparency = 1
  3576. v.BrickColor = BrickColor.new("White")
  3577. v.Material = "Neon"
  3578. end
  3579. end
  3580. for i, v in pairs(extrawingmod2:GetChildren()) do
  3581. if v:IsA("Part") then
  3582. v.Transparency = 1
  3583. v.BrickColor = BrickColor.new("White")
  3584. v.Material = "Neon"
  3585. end
  3586. end
  3587. end
  3588. function attackone()
  3589. attack = true
  3590. chatfunc("Take this!", BrickColor.random().Color)
  3591. for i = 0, 1, 0.1 do
  3592. swait()
  3593. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
  3594. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
  3595. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  3596. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  3597. 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)
  3598. 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)
  3599. end
  3600. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
  3601. local hitb = Instance.new("Part", char)
  3602. hitb.Anchored = true
  3603. hitb.CanCollide = false
  3604. hitb.FormFactor = 3
  3605. hitb.Name = "Ring"
  3606. hitb.Material = "Neon"
  3607. hitb.Size = Vector3.new(1, 1, 1)
  3608. hitb.Transparency = 1
  3609. hitb.TopSurface = 0
  3610. hitb.BottomSurface = 0
  3611. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  3612. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  3613. hitb:Destroy()
  3614. for i = 0, 1, 0.1 do
  3615. swait()
  3616. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
  3617. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
  3618. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  3619. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  3620. 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)
  3621. 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)
  3622. end
  3623. attack = false
  3624. end
  3625. function attacktwo()
  3626. attack = true
  3627. chatfunc("Take that!...", BrickColor.random().Color)
  3628. for i = 0, 1, 0.1 do
  3629. swait()
  3630. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
  3631. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  3632. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  3633. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  3634. 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)
  3635. 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)
  3636. end
  3637. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
  3638. local hitb = Instance.new("Part", char)
  3639. hitb.Anchored = true
  3640. hitb.CanCollide = false
  3641. hitb.FormFactor = 3
  3642. hitb.Name = "Ring"
  3643. hitb.Material = "Neon"
  3644. hitb.Size = Vector3.new(1, 1, 1)
  3645. hitb.Transparency = 1
  3646. hitb.TopSurface = 0
  3647. hitb.BottomSurface = 0
  3648. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  3649. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  3650. hitb:Destroy()
  3651. for i = 0, 1, 0.1 do
  3652. swait()
  3653. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
  3654. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
  3655. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  3656. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  3657. 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)
  3658. 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)
  3659. end
  3660. attack = false
  3661. end
  3662. function attackthree()
  3663. attack = true
  3664. chatfunc("It's over!", BrickColor.random().Color)
  3665. for i = 0, 1, 0.1 do
  3666. swait()
  3667. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  3668. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  3669. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  3670. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3671. 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)
  3672. 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)
  3673. end
  3674. local distlook = 5
  3675. for i = 0, 4 do
  3676. swait(2)
  3677. CameraEnshaking(2, 3)
  3678. local hite = Instance.new("Part", char)
  3679. hite.Anchored = true
  3680. hite.CanCollide = false
  3681. hite.FormFactor = 3
  3682. hite.Name = "Ring"
  3683. hite.Material = "Neon"
  3684. hite.Size = Vector3.new(1, 1, 1)
  3685. hite.Transparency = 1
  3686. hite.TopSurface = 0
  3687. hite.BottomSurface = 0
  3688. hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
  3689. sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
  3690. sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
  3691. MagniDamage(hite, 10, 15, 35, 0, "Normal")
  3692. for i = 0, 2 do
  3693. 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)
  3694. 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)
  3695. 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)
  3696. end
  3697. CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
  3698. CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
  3699. game:GetService("Debris"):AddItem(hite, 5)
  3700. distlook = distlook + 10
  3701. end
  3702. attack = false
  3703. end
  3704. local attacktype = 1
  3705. mouse.Button1Down:connect(function()
  3706. if attack == false and attacktype == 1 then
  3707. attacktype = 2
  3708. attackone()
  3709. elseif attack == false and attacktype == 2 then
  3710. attacktype = 3
  3711. attacktwo()
  3712. elseif attack == false and attacktype == 3 then
  3713. attacktype = 1
  3714. attackthree()
  3715. elseif attack == false and attacktype == 4 then
  3716. attacktype = 1
  3717. end
  3718. end)
  3719. mouse.KeyDown:connect(function(k)
  3720. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  3721. ModeOfGlitch = 2
  3722. storehumanoidWS = 16
  3723. hum.WalkSpeed = 16
  3724. rainbowmode = false
  3725. chaosmode = false
  3726. RecolorTextAndRename("Purity", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
  3727. newTheme("rbxassetid://226676710", 20.25, 1, 1)
  3728. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  3729. for i, v in pairs(mw2:GetChildren()) do
  3730. if v:IsA("Part") then
  3731. v.BrickColor = MAINRUINCOLOR
  3732. v.Material = "Neon"
  3733. end
  3734. end
  3735. for i, v in pairs(mw1:GetChildren()) do
  3736. if v:IsA("Part") then
  3737. v.Transparency = 1
  3738. v.BrickColor = MAINRUINCOLOR
  3739. v.Material = "Neon"
  3740. end
  3741. end
  3742. for i, v in pairs(m:GetChildren()) do
  3743. if v:IsA("Part") then
  3744. v.BrickColor = BrickColor.new("White")
  3745. v.Material = "Ice"
  3746. end
  3747. end
  3748. for i, v in pairs(m2:GetChildren()) do
  3749. if v:IsA("Part") then
  3750. v.BrickColor = BrickColor.new("Pastel light blue")
  3751. v.Material = "Glass"
  3752. end
  3753. end
  3754. for i, v in pairs(m3:GetChildren()) do
  3755. if v:IsA("Part") then
  3756. v.BrickColor = BrickColor.new("Toothpaste")
  3757. v.Material = "Neon"
  3758. end
  3759. end
  3760. for i, v in pairs(extrawingmod1:GetChildren()) do
  3761. if v:IsA("Part") then
  3762. v.Transparency = 1
  3763. v.BrickColor = BrickColor.new("White")
  3764. v.Material = "Neon"
  3765. end
  3766. end
  3767. for i, v in pairs(extrawingmod2:GetChildren()) do
  3768. if v:IsA("Part") then
  3769. v.Transparency = 1
  3770. v.BrickColor = BrickColor.new("White")
  3771. v.Material = "Neon"
  3772. end
  3773. end
  3774. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  3775. resetmode()
  3776. end
  3777. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  3778. ModeOfGlitch = 3
  3779. storehumanoidWS = 16
  3780. hum.WalkSpeed = 16
  3781. rainbowmode = false
  3782. chaosmode = false
  3783. RecolorTextAndRename("Corruption", Color3.new(0, 0, 0), Color3.new(0.35, 0, 1))
  3784. newTheme("rbxassetid://539228588", 58.15, 1,2)
  3785. MAINRUINCOLOR = BrickColor.new("Royal purple")
  3786. for i, v in pairs(mw2:GetChildren()) do
  3787. if v:IsA("Part") then
  3788. v.BrickColor = MAINRUINCOLOR
  3789. v.Material = "Neon"
  3790. end
  3791. end
  3792. for i, v in pairs(mw1:GetChildren()) do
  3793. if v:IsA("Part") then
  3794. v.Transparency = 1
  3795. v.BrickColor = MAINRUINCOLOR
  3796. v.Material = "Neon"
  3797. end
  3798. end
  3799. for i, v in pairs(m:GetChildren()) do
  3800. if v:IsA("Part") then
  3801. v.BrickColor = BrickColor.new("Black")
  3802. v.Material = "Ice"
  3803. end
  3804. end
  3805. for i, v in pairs(m2:GetChildren()) do
  3806. if v:IsA("Part") then
  3807. v.BrickColor = BrickColor.new("Dark indigo")
  3808. v.Material = "Glass"
  3809. end
  3810. end
  3811. for i, v in pairs(m3:GetChildren()) do
  3812. if v:IsA("Part") then
  3813. v.BrickColor = BrickColor.new("Royal purple")
  3814. v.Material = "Neon"
  3815. end
  3816. end
  3817. for i, v in pairs(extrawingmod1:GetChildren()) do
  3818. if v:IsA("Part") then
  3819. v.Transparency = 1
  3820. v.BrickColor = BrickColor.new("White")
  3821. v.Material = "Neon"
  3822. end
  3823. end
  3824. for i, v in pairs(extrawingmod2:GetChildren()) do
  3825. if v:IsA("Part") then
  3826. v.Transparency = 1
  3827. v.BrickColor = BrickColor.new("White")
  3828. v.Material = "Neon"
  3829. end
  3830. end
  3831. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  3832. resetmode()
  3833. end
  3834. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  3835. ModeOfGlitch = 4
  3836. storehumanoidWS = 16
  3837. hum.WalkSpeed = 16
  3838. rainbowmode = false
  3839. chaosmode = true
  3840. RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
  3841. newTheme("rbxassetid://1135122840", 0, 1, 10)
  3842. MAINRUINCOLOR = BrickColor.new("Black")
  3843. for i, v in pairs(mw2:GetChildren()) do
  3844. if v:IsA("Part") then
  3845. v.BrickColor = MAINRUINCOLOR
  3846. v.Material = "Neon"
  3847. end
  3848. end
  3849. for i, v in pairs(mw1:GetChildren()) do
  3850. if v:IsA("Part") then
  3851. v.Transparency = 0.75
  3852. v.BrickColor = BrickColor.random()
  3853. v.Material = "Neon"
  3854. end
  3855. end
  3856. for i, v in pairs(m:GetChildren()) do
  3857. if v:IsA("Part") then
  3858. v.BrickColor = BrickColor.new("Black")
  3859. v.Material = "Neon"
  3860. end
  3861. end
  3862. for i, v in pairs(m2:GetChildren()) do
  3863. if v:IsA("Part") then
  3864. v.BrickColor = BrickColor.random()
  3865. v.Material = "Neon"
  3866. end
  3867. end
  3868. for i, v in pairs(m3:GetChildren()) do
  3869. if v:IsA("Part") then
  3870. v.BrickColor = BrickColor.new("Black")
  3871. v.Material = "Neon"
  3872. end
  3873. end
  3874. for i, v in pairs(extrawingmod1:GetChildren()) do
  3875. if v:IsA("Part") then
  3876. v.Transparency = 1
  3877. v.BrickColor = BrickColor.new("White")
  3878. v.Material = "Neon"
  3879. end
  3880. end
  3881. for i, v in pairs(extrawingmod2:GetChildren()) do
  3882. if v:IsA("Part") then
  3883. v.Transparency = 1
  3884. v.BrickColor = BrickColor.new("White")
  3885. v.Material = "Neon"
  3886. end
  3887. end
  3888. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  3889. resetmode()
  3890. end
  3891. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  3892. ModeOfGlitch = 5
  3893.  
  3894. storehumanoidWS = 16
  3895. hum.WalkSpeed = 16
  3896. rainbowmode = false
  3897. chaosmode = false
  3898. RecolorTextAndRename("Solitude", Color3.new(0, 0, 0), Color3.new(255, 255, 255))
  3899. newTheme("rbxassetid://"259350580", 10, 1, 3.2)
  3900. ModeOfGlitch = 1
  3901. MAINRUINCOLOR = BrickColor.new("Really black")
  3902. for i, v in pairs(mw2:GetChildren()) do
  3903. if v:IsA("Part") then
  3904. v.BrickColor = MAINRUINCOLOR
  3905. v.Material = "Neon"
  3906. end
  3907. end
  3908. for i, v in pairs(mw1:GetChildren()) do
  3909. if v:IsA("Part") then
  3910. v.Transparency = 0
  3911. v.BrickColor = MAINRUINCOLOR
  3912. v.Material = "Neon"
  3913. end
  3914. end
  3915. for i, v in pairs(m:GetChildren()) do
  3916. if v:IsA("Part") then
  3917. v.BrickColor = BrickColor.new("Really black")
  3918. v.Material = "Ice"
  3919. end
  3920. end
  3921. for i, v in pairs(m2:GetChildren()) do
  3922. if v:IsA("Part") then
  3923. v.BrickColor = BrickColor.new("Really black")
  3924. v.Material = "Ice"
  3925. end
  3926. end
  3927. for i, v in pairs(m3:GetChildren()) do
  3928. if v:IsA("Part") then
  3929. v.BrickColor = BrickColor.new("Really black")
  3930. v.Material = "Neon"
  3931. end
  3932. end
  3933. for i, v in pairs(extrawingmod1:GetChildren()) do
  3934. if v:IsA("Part") then
  3935. v.Transparency = 1
  3936. v.BrickColor = BrickColor.new("White")
  3937. v.Material = "Neon"
  3938. end
  3939. end
  3940. for i, v in pairs(extrawingmod2:GetChildren()) do
  3941. if v:IsA("Part") then
  3942. v.Transparency = 1
  3943. v.BrickColor = BrickColor.new("White")
  3944. v.Material = "Neon"
  3945. end
  3946. end
  3947. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  3948. resetmode()
  3949. end
  3950. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  3951. ModeOfGlitch = 6
  3952. storehumanoidWS = 75
  3953. hum.WalkSpeed = 75
  3954. rainbowmode = false
  3955. chaosmode = false
  3956. RecolorTextAndRename("Equality", Color3.new(0, 0, 0), Color3.new(1, 1, 1))
  3957. newTheme("rbxassetid://1401829566", 0, 1, 1)
  3958. MAINRUINCOLOR = BrickColor.new("Really black")
  3959. for i, v in pairs(mw2:GetChildren()) do
  3960. if v:IsA("Part") then
  3961. v.BrickColor = BrickColor.new("White")
  3962. v.Material = "Neon"
  3963. end
  3964. end
  3965. for i, v in pairs(mw1:GetChildren()) do
  3966. if v:IsA("Part") then
  3967. v.Transparency = 0
  3968. v.BrickColor = BrickColor.new("Really black")
  3969. v.Material = "Neon"
  3970. end
  3971. end
  3972. for i, v in pairs(m:GetChildren()) do
  3973. if v:IsA("Part") then
  3974. v.BrickColor = BrickColor.new("White")
  3975. v.Material = "Ice"
  3976. end
  3977. end
  3978. for i, v in pairs(m2:GetChildren()) do
  3979. if v:IsA("Part") then
  3980. v.BrickColor = BrickColor.new("Really black")
  3981. v.Material = "Ice"
  3982. end
  3983. end
  3984. for i, v in pairs(m3:GetChildren()) do
  3985. if v:IsA("Part") then
  3986. v.BrickColor = BrickColor.new("White")
  3987. v.Material = "Neon"
  3988. end
  3989. end
  3990. for i, v in pairs(extrawingmod1:GetChildren()) do
  3991. if v:IsA("Part") then
  3992. v.Transparency = 1
  3993. v.BrickColor = BrickColor.new("White")
  3994. v.Material = "Neon"
  3995. end
  3996. end
  3997. for i, v in pairs(extrawingmod2:GetChildren()) do
  3998. if v:IsA("Part") then
  3999. v.Transparency = 1
  4000. v.BrickColor = BrickColor.new("White")
  4001. v.Material = "Neon"
  4002. end
  4003. end
  4004.  
  4005.  
  4006. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  4007. resetmode()
  4008. end
  4009. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  4010. ModeOfGlitch = 6127843
  4011. storehumanoidWS = 50
  4012. hum.WalkSpeed = 50
  4013. rainbowmode = true
  4014. chaosmode = false
  4015. RecolorTextAndRename("StarLight", Color3.new(1, 1, 1), Color3.new(1, 1, 1))
  4016. newTheme("rbxassetid://1302864848", 0, 1, 1)
  4017. MAINRUINCOLOR = BrickColor.new("White")
  4018. for i, v in pairs(mw2:GetChildren()) do
  4019. if v:IsA("Part") then
  4020. v.BrickColor = MAINRUINCOLOR
  4021. v.Material = "Neon"
  4022. end
  4023. end
  4024. for i, v in pairs(mw1:GetChildren()) do
  4025. if v:IsA("Part") then
  4026. v.Transparency = 0
  4027. v.BrickColor = MAINRUINCOLOR
  4028. v.Material = "Neon"
  4029. end
  4030. end
  4031. for i, v in pairs(m:GetChildren()) do
  4032. if v:IsA("Part") then
  4033. v.BrickColor = BrickColor.new("White")
  4034. v.Material = "Neon"
  4035. end
  4036. end
  4037. for i, v in pairs(m2:GetChildren()) do
  4038. if v:IsA("Part") then
  4039. v.BrickColor = BrickColor.new("White")
  4040. v.Material = "Neon"
  4041. end
  4042. end
  4043. for i, v in pairs(m3:GetChildren()) do
  4044. if v:IsA("Part") then
  4045. v.BrickColor = BrickColor.new("White")
  4046. v.Material = "Neon"
  4047. end
  4048. end
  4049. for i, v in pairs(extrawingmod1:GetChildren()) do
  4050. if v:IsA("Part") then
  4051. v.Transparency = 1
  4052. v.BrickColor = BrickColor.new("White")
  4053. v.Material = "Neon"
  4054. end
  4055. end
  4056. for i, v in pairs(extrawingmod2:GetChildren()) do
  4057. if v:IsA("Part") then
  4058. v.Transparency = 1
  4059. v.BrickColor = BrickColor.new("White")
  4060. v.Material = "Neon"
  4061. end
  4062. end
  4063. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  4064. resetmode()
  4065. end
  4066. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  4067. ModeOfGlitch = 1000000
  4068. storehumanoidWS = 100
  4069. hum.WalkSpeed = 100
  4070. rainbowmode = false
  4071. chaosmode = false
  4072. RecolorTextAndRename("True Starlight", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
  4073. newTheme("rbxassetid://153365666", 0, 1, 1)
  4074. MAINRUINCOLOR = BrickColor.new("Bright violet")
  4075. for i, v in pairs(mw2:GetChildren()) do
  4076. if v:IsA("Part") then
  4077. v.BrickColor = MAINRUINCOLOR
  4078. v.Material = "Neon"
  4079. end
  4080. end
  4081. for i, v in pairs(mw1:GetChildren()) do
  4082. if v:IsA("Part") then
  4083. v.Transparency = 0
  4084. v.BrickColor = MAINRUINCOLOR
  4085. v.Material = "Neon"
  4086. end
  4087. end
  4088. for i, v in pairs(m:GetChildren()) do
  4089. if v:IsA("Part") then
  4090. v.Color = Color3.new(0.5, 0, 1)
  4091. v.Material = "Neon"
  4092. end
  4093. end
  4094. for i, v in pairs(m2:GetChildren()) do
  4095. if v:IsA("Part") then
  4096. v.Color = Color3.new(0.25, 0, 1)
  4097. v.Material = "Neon"
  4098. end
  4099. end
  4100. for i, v in pairs(m3:GetChildren()) do
  4101. if v:IsA("Part") then
  4102. v.Color = Color3.new(0.45, 0, 1)
  4103. v.Material = "Neon"
  4104. end
  4105. end
  4106. for i, v in pairs(extrawingmod1:GetChildren()) do
  4107. if v:IsA("Part") then
  4108. v.Transparency = 0
  4109. v.Color = Color3.new(0.25, 0, 1)
  4110. v.Material = "Neon"
  4111. end
  4112. end
  4113. for i, v in pairs(extrawingmod2:GetChildren()) do
  4114. if v:IsA("Part") then
  4115. v.Transparency = 0
  4116. v.Color = Color3.new(0.5, 0, 1)
  4117. v.Material = "Neon"
  4118. end
  4119. end
  4120. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  4121. resetmode()
  4122. end
  4123. if k == "l" and toggleTag == false then
  4124. toggleTag = true
  4125. text.TextTransparency = 0
  4126. text.TextStrokeTransparency = 0
  4127. elseif k == "l" and toggleTag == true then
  4128. toggleTag = false
  4129. text.TextTransparency = 1
  4130. text.TextStrokeTransparency = 1
  4131. end
  4132. if k == "z" and attack == false and ModeOfGlitch == 1 then
  4133. ExtinctiveHeartbreak()
  4134. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  4135. PureBomb()
  4136. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  4137. scattercorrupt()
  4138. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  4139. ChaosGroundStrike()
  4140. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  4141. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  4142. UniversalSpark()
  4143. elseif k == "l" and attack == false and ModeOfGlitch == 1000000 then
  4144. scattercorrupt()
  4145. wait(1)
  4146. yinyangi()
  4147. elseif k == "l" and attack == false and ModeOfGlitch == 5 then
  4148. scattercorrupt()
  4149. scattercorrupt()
  4150. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  4151. yinyangi()
  4152. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  4153. Wip()
  4154. end
  4155. if k == "l" and attack == false and ModeOfGlitch == 4 then
  4156. ChaosBegone()
  4157. end
  4158. end)
  4159. coroutine.resume(coroutine.create(function()
  4160. while true do
  4161. swait(2)
  4162. if rainbowmode == true or ModeOfGlitch == 6 then
  4163. 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)
  4164. end
  4165. end
  4166. end))
  4167. coroutine.resume(coroutine.create(function()
  4168. while true do
  4169. swait(0.5)
  4170. if ModeOfGlitch == 1000000 then
  4171. 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)
  4172. end
  4173. end
  4174. end))
  4175. coroutine.resume(coroutine.create(function()
  4176. while true do
  4177. swait(2)
  4178. if chaosmode == true then
  4179. RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
  4180. for i, v in pairs(mw1:GetChildren()) do
  4181. if v:IsA("Part") then
  4182. v.Transparency = 0.75
  4183. v.BrickColor = BrickColor.random()
  4184. v.Material = "Neon"
  4185. end
  4186. end
  4187. for i, v in pairs(m2:GetChildren()) do
  4188. if v:IsA("Part") then
  4189. v.BrickColor = BrickColor.random()
  4190. v.Material = "Neon"
  4191. end
  4192. end
  4193. end
  4194. end
  4195. end))
  4196. Humanoid.Name = "STARGLITCHER"
  4197. Humanoid.MaxHealth = math.huge
  4198. Humanoid.Health = math.huge
  4199. Instance.new("ForceField", char).Visible = false
  4200. Humanoid.Animator.Parent = nil
  4201. idleanim = 0.4
  4202. while true do
  4203. if rainbowmode == true then
  4204. RecolorTextAndRename("StarLight", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500))
  4205. MAINRUINCOLOR = BrickColor.new("White")
  4206. for i, v in pairs(m:GetChildren()) do
  4207. if v:IsA("Part") then
  4208. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4209. end
  4210. end
  4211. for i, v in pairs(m2:GetChildren()) do
  4212. if v:IsA("Part") then
  4213. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4214. end
  4215. end
  4216. for i, v in pairs(m3:GetChildren()) do
  4217. if v:IsA("Part") then
  4218. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4219. end
  4220. end
  4221. for i, v in pairs(mw1:GetChildren()) do
  4222. if v:IsA("Part") then
  4223. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4224. v.Material = "Neon"
  4225. end
  4226. end
  4227. for i, v in pairs(mw2:GetChildren()) do
  4228. if v:IsA("Part") then
  4229. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4230. v.Material = "Neon"
  4231. end
  4232. end
  4233. end
  4234. CameraManager()
  4235. swait()
  4236. 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)
  4237. 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)
  4238. 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)
  4239. 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)
  4240. 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)
  4241. 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)
  4242. 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)
  4243. 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)
  4244. 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)
  4245. 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)
  4246. 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)
  4247. 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)
  4248. sine = sine + change
  4249. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  4250. local velderp = RootPart.Velocity.y
  4251. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  4252. if equipped == true or equipped == false then
  4253. if attack == false then
  4254. idle = idle + 1
  4255. else
  4256. idle = 0
  4257. end
  4258. if not (idle >= 500) or attack == false then
  4259. end
  4260. if RootPart.Velocity.y > 1 and hitfloor == nil then
  4261. Anim = "Jump"
  4262. if attack == false then
  4263. 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)
  4264. 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)
  4265. 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)
  4266. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1)
  4267. 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)
  4268. 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)
  4269. end
  4270. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  4271. Anim = "Fall"
  4272. if attack == false then
  4273. 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)
  4274. 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)
  4275. 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)
  4276. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4277. 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)
  4278. 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)
  4279. end
  4280. elseif torvel < 1 and hitfloor ~= nil then
  4281. Anim = "Idle"
  4282. if attack == false then
  4283. if ModeOfGlitch == 1 then
  4284. 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)
  4285. 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)
  4286. 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)
  4287. 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)
  4288. 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)
  4289. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
  4290. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  4291. 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)
  4292. 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)
  4293. 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)
  4294. 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)
  4295. 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)
  4296. 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)
  4297. elseif ModeOfGlitch == 3 then
  4298. 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)
  4299. 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)
  4300. 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)
  4301. 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)
  4302. 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)
  4303. LW.C0 = clerp(LW.C0, cf(-1.5, 0.75, 0) * angles(math.rad(170), math.rad(-20), math.rad(20)), 0.1)
  4304. elseif ModeOfGlitch == 4 then
  4305. 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)
  4306. 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)
  4307. 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)
  4308. 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)
  4309. 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)
  4310. 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)
  4311. elseif ModeOfGlitch == 5 then
  4312. 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)
  4313. 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)
  4314. 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)
  4315. 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)
  4316. 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)
  4317. 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)
  4318. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  4319. 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)
  4320. 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)
  4321. 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)
  4322. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
  4323. 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)
  4324. 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)
  4325. end
  4326. end
  4327. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  4328. Anim = "Walk"
  4329. if attack == false then
  4330. if ModeOfGlitch == 1 then
  4331. 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)
  4332. 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)
  4333. 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)
  4334. 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)
  4335. 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)
  4336. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
  4337. elseif ModeOfGlitch == 4 then
  4338. 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)
  4339. 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)
  4340. 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)
  4341. 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)
  4342. 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)
  4343. 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)
  4344. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then
  4345. 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)
  4346. 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)
  4347. 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)
  4348. 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)
  4349. 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)
  4350. 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)
  4351. end
  4352. end
  4353. elseif torvel >= 22 and hitfloor ~= nil then
  4354. Anim = "Run"
  4355. if attack == false then
  4356. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then
  4357. 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)
  4358. 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)
  4359. 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)
  4360. 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)
  4361. 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)
  4362. 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)
  4363. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  4364. 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)
  4365. 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)
  4366. 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)
  4367. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4368. 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)
  4369. 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)
  4370. end
  4371. end
  4372. end
  4373. end
  4374. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement