Advertisement
Guest User

star glitcher edit nonfe

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