Advertisement
Guest User

Untitled

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