Advertisement
9Simplicity9

Untitled

Mar 25th, 2018
885
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. warn("Star Glitcher Loaded.")
  2. warn("All purpose switcher...")
  3. warn("Edit By Frepix.")
  4. warn("Moves Edited By UndeniableInfinity.")
  5. warn("Please Support The Original Creator Of This Script.")
  6. 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 = "Sweet Dreams"
  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 MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype)
  1734. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1735. prt.Anchored = true
  1736. prt.Material = "Neon"
  1737. prt.CFrame = cframe
  1738. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
  1739. game:GetService("Debris"):AddItem(prt, 5)
  1740. coroutine.resume(coroutine.create(function(Part, Mesh)
  1741. local rtype = rottype
  1742. for i = 0, 1, delay do
  1743. swait()
  1744. if rtype == 1 then
  1745. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0)
  1746. elseif rtype == 2 then
  1747. prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0)
  1748. end
  1749. prt.Transparency = i
  1750. Mesh.Scale = Mesh.Scale + vt(x3, 0, z3)
  1751. end
  1752. Part.Parent = nil
  1753. end), prt, msh)
  1754. end
  1755. function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype)
  1756. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1757. prt.Anchored = true
  1758. prt.Material = "Neon"
  1759. prt.CFrame = cframe
  1760. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1761. game:GetService("Debris"):AddItem(prt, 5)
  1762. coroutine.resume(coroutine.create(function(Part, Mesh)
  1763. local rtype = rottype
  1764. for i = 0, 1, delay do
  1765. swait()
  1766. if rtype == 1 then
  1767. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1768. elseif rtype == 2 then
  1769. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1770. end
  1771. prt.Transparency = i
  1772. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  1773. end
  1774. Part.Parent = nil
  1775. end), prt, msh)
  1776. end
  1777. function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1778. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1779. prt.Anchored = true
  1780. prt.Material = "Neon"
  1781. prt.CFrame = cframe
  1782. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1783. game:GetService("Debris"):AddItem(prt, 5)
  1784. coroutine.resume(coroutine.create(function(Part, Mesh)
  1785. local rtype = rottype
  1786. for i = 0, 1, delay do
  1787. swait()
  1788. if rtype == 1 then
  1789. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1790. elseif rtype == 2 then
  1791. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1792. end
  1793. prt.Transparency = i
  1794. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1795. end
  1796. Part.Parent = nil
  1797. end), prt, msh)
  1798. end
  1799. function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  1800. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1801. prt.Anchored = false
  1802. prt.CFrame = cframe
  1803. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1804. local wld = weld(prt, prt, Parent, cframe)
  1805. game:GetService("Debris"):AddItem(prt, 5)
  1806. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  1807. for i = 0, 1, delay do
  1808. wait()
  1809. Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe
  1810. Part.Transparency = i
  1811. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1812. end
  1813. Part.Parent = nil
  1814. end), prt, msh, wld)
  1815. end
  1816. function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  1817. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1818. prt.Anchored = false
  1819. prt.CFrame = cframe
  1820. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1821. local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0))
  1822. game:GetService("Debris"):AddItem(prt, 5)
  1823. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  1824. for i = 0, 1, delay do
  1825. wait()
  1826. Weld.C0 = euler(i * 20, 0, 0)
  1827. Part.Transparency = i
  1828. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1829. end
  1830. Part.Parent = nil
  1831. end), prt, msh, wld)
  1832. end
  1833. function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1834. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1835. prt.Anchored = true
  1836. prt.CFrame = cframe
  1837. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1838. game:GetService("Debris"):AddItem(prt, 2)
  1839. coroutine.resume(coroutine.create(function(Part, Mesh)
  1840. for i = 0, 1, delay do
  1841. wait()
  1842. Part.CFrame = Part.CFrame
  1843. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1844. local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1845. prt2.Anchored = true
  1846. prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1847. local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  1848. game:GetService("Debris"):AddItem(prt2, 2)
  1849. coroutine.resume(coroutine.create(function(Part, Mesh)
  1850. for i = 0, 1, 0.1 do
  1851. wait()
  1852. Part.CFrame = Part.CFrame * cf(0, 0.5, 0)
  1853. end
  1854. Part.Parent = nil
  1855. end), prt2, msh2)
  1856. end
  1857. for i = 0, 1, delay * 2 do
  1858. wait()
  1859. Part.CFrame = Part.CFrame
  1860. Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i)
  1861. end
  1862. Part.Parent = nil
  1863. end), prt, msh)
  1864. end
  1865. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1866. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1867. prt.Anchored = true
  1868. prt.CFrame = cframe
  1869. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1870. game:GetService("Debris"):AddItem(prt, 2)
  1871. coroutine.resume(coroutine.create(function(Part, Mesh)
  1872. for i = 0, 1, delay do
  1873. wait()
  1874. Part.CFrame = Part.CFrame
  1875. Part.Transparency = i
  1876. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1877. end
  1878. Part.Parent = nil
  1879. end), prt, msh)
  1880. end
  1881. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  1882. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1883. prt.Anchored = true
  1884. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1885. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1886. game:GetService("Debris"):AddItem(prt, 2)
  1887. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  1888. CF = Part.CFrame
  1889. Numbb = 0
  1890. randnumb = math.random() / 10
  1891. rand1 = math.random() / 10
  1892. for i = 0, 1, rand1 do
  1893. wait()
  1894. CF = CF * cf(0, math.random() / 2, 0)
  1895. Part.CFrame = CF * euler(Numbb, 0, 0)
  1896. Part.Transparency = i
  1897. Numbb = Numbb + randnumb
  1898. end
  1899. Part.Parent = nil
  1900. end), prt, CF, Numbb, randnumb)
  1901. end
  1902. function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1903. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1904. prt.Anchored = true
  1905. prt.CFrame = cframe
  1906. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
  1907. game:GetService("Debris"):AddItem(prt, 5)
  1908. coroutine.resume(coroutine.create(function(Part, Mesh)
  1909. for i = 0, 1, delay do
  1910. wait()
  1911. Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
  1912. Part.Transparency = i
  1913. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1914. end
  1915. Part.Parent = nil
  1916. end), prt, msh)
  1917. end
  1918. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1919. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1920. prt.Anchored = true
  1921. prt.CFrame = cframe
  1922. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1923. game:GetService("Debris"):AddItem(prt, 2)
  1924. coroutine.resume(coroutine.create(function(Part, Mesh)
  1925. for i = 0, 1, delay do
  1926. wait()
  1927. Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
  1928. Part.Transparency = i
  1929. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1930. end
  1931. Part.Parent = nil
  1932. end), prt, msh)
  1933. end
  1934. function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
  1935. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1936. prt.Anchored = true
  1937. prt.CFrame = cframe * cf(x, y, z)
  1938. msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
  1939. game:GetService("Debris"):AddItem(prt, 5)
  1940. coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
  1941. local num = math.random()
  1942. local num2 = math.random(-3, 2) + math.random()
  1943. local numm = 0
  1944. for i = 0, 1, delay * 2 do
  1945. swait()
  1946. Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
  1947. Part.Transparency = i
  1948. numm = numm + 0.01
  1949. end
  1950. Part.Parent = nil
  1951. Mesh.Parent = nil
  1952. end), prt, msh, x, y, z)
  1953. end
  1954. function dmgstart(dmg, what)
  1955. hitcon = what.Touched:connect(function(hit)
  1956. local hum = hit.Parent:FindFirstChild("Humanoid")
  1957. if hum and not hum:IsDescendantOf(Character) then
  1958. hum:TakeDamage(dmg)
  1959. end
  1960. end)
  1961. end
  1962. function dmgstop()
  1963. hitcon:disconnect()
  1964. end
  1965. function Cloak()
  1966. Face.Parent = nil
  1967. cloaked = true
  1968. for _, v in pairs(Torso.Parent:children()) do
  1969. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  1970. coroutine.resume(coroutine.create(function()
  1971. for i = 0, 1, 0.2 do
  1972. wait()
  1973. v.Transparency = i
  1974. end
  1975. v.Transparency = 1
  1976. end))
  1977. end
  1978. if v.className == "Hat" then
  1979. hatp = v.Handle
  1980. coroutine.resume(coroutine.create(function(derp)
  1981. for i = 0, 1, 0.2 do
  1982. wait()
  1983. derp.Transparency = i
  1984. end
  1985. derp.Transparency = 1
  1986. end), hatp)
  1987. end
  1988. end
  1989. for _, v in pairs(m:children()) do
  1990. if v.className == "Part" then
  1991. coroutine.resume(coroutine.create(function()
  1992. for i = 0, 1, 0.2 do
  1993. wait()
  1994. v.Transparency = i
  1995. end
  1996. v.Transparency = 1
  1997. end))
  1998. end
  1999. end
  2000. end
  2001. function UnCloak()
  2002. so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
  2003. Face.Parent = Head
  2004. cloaked = false
  2005. for _, v in pairs(Torso.Parent:children()) do
  2006. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2007. coroutine.resume(coroutine.create(function()
  2008. for i = 0, 1, 0.1 do
  2009. wait()
  2010. v.Transparency = v.Transparency - 0.1
  2011. end
  2012. v.Transparency = 0
  2013. end))
  2014. end
  2015. if v.className == "Hat" then
  2016. hatp = v.Handle
  2017. coroutine.resume(coroutine.create(function(derp)
  2018. for i = 0, 1, 0.1 do
  2019. wait()
  2020. derp.Transparency = derp.Transparency - 0.1
  2021. end
  2022. derp.Transparency = 0
  2023. end), hatp)
  2024. end
  2025. end
  2026. for _, v in pairs(m:children()) do
  2027. if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
  2028. coroutine.resume(coroutine.create(function()
  2029. for i = 0, 1, 0.1 do
  2030. wait()
  2031. v.Transparency = v.Transparency - 0.1
  2032. end
  2033. v.Transparency = 0
  2034. end))
  2035. v.Transparency = 0
  2036. end
  2037. end
  2038. end
  2039. local origcolor = BrickColor.new("Pastel light blue")
  2040. function Explode(rad, par, pitch, vol, mindam, maxdam)
  2041. local expart = Instance.new("Part", char)
  2042. local expart2 = Instance.new("Part", char)
  2043. local rin = Instance.new("Part", char)
  2044. local rin2 = Instance.new("Part", char)
  2045. local partMesh = Instance.new("SpecialMesh", expart)
  2046. partMesh.MeshType = "Sphere"
  2047. local partMesh2 = Instance.new("SpecialMesh", expart2)
  2048. partMesh2.MeshType = "Sphere"
  2049. local partMesh3 = Instance.new("SpecialMesh", rin)
  2050. partMesh3.MeshType = "Brick"
  2051. local partMesh4 = Instance.new("SpecialMesh", rin2)
  2052. partMesh4.MeshType = "Brick"
  2053. CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
  2054. partMesh.Scale = vt(rad, rad, rad)
  2055. expart.Size = vt(1, 1, 1)
  2056. expart.Transparency = 0
  2057. expart.Anchored = true
  2058. expart.Material = "Neon"
  2059. expart.BrickColor = bc("White")
  2060. expart.CFrame = par.CFrame
  2061. partMesh2.Scale = vt(rad, rad, rad)
  2062. expart2.Size = vt(1.15, 1.15, 1.15)
  2063. expart2.Transparency = 0.5
  2064. expart2.Anchored = true
  2065. expart2.Material = "Neon"
  2066. expart2.BrickColor = par.BrickColor
  2067. expart2.CFrame = par.CFrame
  2068. rin.Size = vt(1.15, 1.15, 1.15)
  2069. rin.Transparency = 1
  2070. rin.Anchored = true
  2071. rin.Material = "Neon"
  2072. rin.BrickColor = par.BrickColor
  2073. rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  2074. rin2.Size = vt(1.15, 1.15, 1.15)
  2075. rin2.Transparency = 1
  2076. rin2.Anchored = true
  2077. rin2.Material = "Neon"
  2078. rin2.BrickColor = par.BrickColor
  2079. rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  2080. partMesh3.Scale = vt(0, 1, 0)
  2081. partMesh4.Scale = vt(0, 1, 0)
  2082. local dec2 = Instance.new("Decal", rin)
  2083. dec2.Face = "Top"
  2084. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2085. dec2.Parent = rin
  2086. local dec2b = dec2:Clone()
  2087. dec2b.Face = "Bottom"
  2088. dec2b.Parent = rin
  2089. local dec2a = Instance.new("Decal", rin2)
  2090. dec2a.Face = "Top"
  2091. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2092. dec2a.Parent = rin2
  2093. local dec2ab = dec2a:Clone()
  2094. dec2ab.Face = "Bottom"
  2095. dec2ab.Parent = rin2
  2096. expart.CanCollide = false
  2097. expart2.CanCollide = false
  2098. rin.CanCollide = false
  2099. rin2.CanCollide = false
  2100. MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
  2101. local value = 1 * rad / 6.5
  2102. for i = 0, 199 do
  2103. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2104. expart.CFrame = expart.CFrame
  2105. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  2106. expart2.CFrame = expart.CFrame
  2107. value = value - 0.035 * rad / 30
  2108. if value < 7.5 then
  2109. partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
  2110. rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
  2111. partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
  2112. rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
  2113. end
  2114. if value < 0 then
  2115. dec2.Transparency = dec2.Transparency + 0.025
  2116. dec2a.Transparency = dec2a.Transparency + 0.025
  2117. dec2b.Transparency = dec2b.Transparency + 0.025
  2118. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2119. expart.Transparency = expart.Transparency + 0.025
  2120. expart2.Transparency = expart2.Transparency + 0.025
  2121. rin.Transparency = rin.Transparency + 0.025
  2122. rin2.Transparency = rin2.Transparency + 0.025
  2123. end
  2124. swait()
  2125. end
  2126. game:GetService("Debris"):AddItem(expart, 1)
  2127. game:GetService("Debris"):AddItem(expart2, 1)
  2128. game:GetService("Debris"):AddItem(rin, 1)
  2129. game:GetService("Debris"):AddItem(rin2, 1)
  2130. end
  2131. function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
  2132. local expart = Instance.new("Part", char)
  2133. local expart2 = Instance.new("Part", char)
  2134. local partMesh = Instance.new("SpecialMesh", expart)
  2135. partMesh.MeshType = "Sphere"
  2136. local partMesh2 = Instance.new("SpecialMesh", expart2)
  2137. partMesh2.MeshType = "Sphere"
  2138. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
  2139. partMesh.Scale = vt(rad, rad, rad)
  2140. expart.Size = vt(1, 1, 1)
  2141. expart.Transparency = 0
  2142. expart.Anchored = true
  2143. expart.Material = "Neon"
  2144. expart.BrickColor = bc("White")
  2145. expart.CFrame = par.CFrame
  2146. partMesh2.Scale = vt(rad, rad, rad)
  2147. expart2.Size = vt(1.15, 1.15, 1.15)
  2148. expart2.Transparency = 0.5
  2149. expart2.Anchored = true
  2150. expart2.Material = "Neon"
  2151. expart2.BrickColor = par.BrickColor
  2152. expart2.CFrame = par.CFrame
  2153. expart.CanCollide = false
  2154. expart2.CanCollide = false
  2155. MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
  2156. local value = 1 * rad / 6.5
  2157. for i = 0, 75 do
  2158. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2159. expart.CFrame = expart.CFrame
  2160. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  2161. expart2.CFrame = expart.CFrame
  2162. value = value - 0.035 * rad / 5
  2163. if value < 0 then
  2164. value = 0
  2165. expart.Transparency = expart.Transparency + 0.05
  2166. expart2.Transparency = expart2.Transparency + 0.05
  2167. end
  2168. swait()
  2169. end
  2170. game:GetService("Debris"):AddItem(expart, 1)
  2171. game:GetService("Debris"):AddItem(expart2, 1)
  2172. end
  2173. function AreaDanger(rad, par, mindam, maxdam)
  2174. local expart = Instance.new("Part", char)
  2175. local partMesh = Instance.new("SpecialMesh", expart)
  2176. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  2177. partMesh.MeshType = "Sphere"
  2178. partMesh.Scale = vt(rad, rad, rad)
  2179. expart.Size = vt(1, 1, 1)
  2180. expart.Transparency = 0.5
  2181. expart.Anchored = true
  2182. expart.Material = "Neon"
  2183. expart.CanCollide = false
  2184. expart.BrickColor = par.BrickColor
  2185. expart.CFrame = par.CFrame
  2186. local value = 1 * rad / 5
  2187. MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
  2188. for i = 0, 14 do
  2189. wait()
  2190. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2191. expart.CFrame = expart.CFrame
  2192. value = value - 0.035 * rad
  2193. if value < 0 then
  2194. value = 0
  2195. end
  2196. end
  2197. wait(0.25)
  2198. CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
  2199. wait(0.5)
  2200. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
  2201. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
  2202. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2203. MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
  2204. for i = 0, 14 do
  2205. wait()
  2206. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2207. expart.CFrame = expart.CFrame
  2208. value = value - 0.035 * rad / 2
  2209. end
  2210. expart.Transparency = 1
  2211. game:GetService("Debris"):AddItem(expart, 5)
  2212. end
  2213. function Swarmsplosions(negrad, rad, par, mindam, maxdam)
  2214. CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
  2215. CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
  2216. CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
  2217. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  2218. MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
  2219. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
  2220. for i = 0, 24 do
  2221. 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))
  2222. end
  2223. for i = 0, 24 do
  2224. local expart = Instance.new("Part", char)
  2225. expart.Transparency = 1
  2226. expart.Anchored = true
  2227. expart.CanCollide = false
  2228. expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
  2229. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
  2230. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  2231. MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
  2232. MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
  2233. for i = 0, 9 do
  2234. 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))
  2235. end
  2236. game:GetService("Debris"):AddItem(expart, 2)
  2237. wait(0.1)
  2238. end
  2239. end
  2240. function EXterPlosion(par)
  2241. CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
  2242. CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
  2243. CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
  2244. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  2245. MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
  2246. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
  2247. MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
  2248. for i = 0, 24 do
  2249. 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))
  2250. end
  2251. for i = 0, 24 do
  2252. 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))
  2253. end
  2254. end
  2255. function ring(type, pos, scale, value)
  2256. local type = type
  2257. local rng = Instance.new("Part", char)
  2258. rng.Anchored = true
  2259. rng.BrickColor = origcolor
  2260. rng.CanCollide = false
  2261. rng.FormFactor = 3
  2262. rng.Name = "Ring"
  2263. rng.Size = Vector3.new(1, 1, 1)
  2264. rng.Transparency = 0
  2265. rng.TopSurface = 0
  2266. rng.BottomSurface = 0
  2267. rng.CFrame = pos
  2268. local rngm = Instance.new("SpecialMesh", rng)
  2269. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2270. rngm.Scale = scale
  2271. local scaler2 = 1
  2272. if type == "Add" then
  2273. scaler2 = 1 * value
  2274. elseif type == "Divide" then
  2275. scaler2 = 1 / value
  2276. end
  2277. coroutine.resume(coroutine.create(function()
  2278. for i = 0, 10, 0.1 do
  2279. swait()
  2280. if type == "Add" then
  2281. scaler2 = scaler2 - 0.01 * value
  2282. elseif type == "Divide" then
  2283. scaler2 = scaler2 - 0.01 / value
  2284. end
  2285. rng.Transparency = rng.Transparency + 0.01
  2286. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2287. end
  2288. rng:Destroy()
  2289. end))
  2290. end
  2291. function wave(type, pos, scale, value)
  2292. local type = type
  2293. local rng = Instance.new("Part", char)
  2294. rng.Anchored = true
  2295. rng.BrickColor = origcolor
  2296. rng.CanCollide = false
  2297. rng.FormFactor = 3
  2298. rng.Name = "Ring"
  2299. rng.Size = Vector3.new(1, 1, 1)
  2300. rng.Transparency = 0
  2301. rng.TopSurface = 0
  2302. rng.BottomSurface = 0
  2303. rng.CFrame = pos
  2304. local rngm = Instance.new("SpecialMesh", rng)
  2305. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2306. rngm.Scale = scale
  2307. local scaler2 = 1
  2308. if type == "Add" then
  2309. scaler2 = 1 * value
  2310. elseif type == "Divide" then
  2311. scaler2 = 1 / value
  2312. end
  2313. coroutine.resume(coroutine.create(function()
  2314. for i = 0, 10, 0.1 do
  2315. swait()
  2316. if type == "Add" then
  2317. scaler2 = scaler2 - 0.01 * value
  2318. elseif type == "Divide" then
  2319. scaler2 = scaler2 - 0.01 / value
  2320. end
  2321. rng.Transparency = rng.Transparency + 0.01
  2322. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2323. end
  2324. rng:Destroy()
  2325. end))
  2326. end
  2327. function wind(type, pos, scale, value, speed)
  2328. local type = type
  2329. local rng = Instance.new("Part", char)
  2330. rng.Anchored = true
  2331. rng.BrickColor = origcolor
  2332. rng.CanCollide = false
  2333. rng.FormFactor = 3
  2334. rng.Name = "Ring"
  2335. rng.Size = Vector3.new(1, 1, 1)
  2336. rng.Transparency = 0
  2337. rng.TopSurface = 0
  2338. rng.BottomSurface = 0
  2339. rng.CFrame = pos
  2340. local rngm = Instance.new("SpecialMesh", rng)
  2341. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2342. rngm.Scale = scale
  2343. local scaler2 = 1
  2344. if type == "Add" then
  2345. scaler2 = 1 * value
  2346. elseif type == "Divide" then
  2347. scaler2 = 1 / value
  2348. end
  2349. coroutine.resume(coroutine.create(function()
  2350. for i = 0, 10, 0.1 do
  2351. swait()
  2352. if type == "Add" then
  2353. scaler2 = scaler2 - 0.01 * value
  2354. elseif type == "Divide" then
  2355. scaler2 = scaler2 - 0.01 / value
  2356. end
  2357. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  2358. rng.Transparency = rng.Transparency + 0.01
  2359. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2360. end
  2361. rng:Destroy()
  2362. end))
  2363. end
  2364. function groundwind(type, pos, scale, value, speed)
  2365. local type = type
  2366. local rng = Instance.new("Part", char)
  2367. rng.Anchored = true
  2368. rng.BrickColor = origcolor
  2369. rng.CanCollide = false
  2370. rng.FormFactor = 3
  2371. rng.Name = "Ring"
  2372. rng.Size = Vector3.new(1, 1, 1)
  2373. rng.Transparency = 0
  2374. rng.TopSurface = 0
  2375. rng.BottomSurface = 0
  2376. rng.CFrame = pos
  2377. local rngm = Instance.new("SpecialMesh", rng)
  2378. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2379. rngm.Scale = scale
  2380. local scaler2 = 1
  2381. if type == "Add" then
  2382. scaler2 = 1 * value
  2383. elseif type == "Divide" then
  2384. scaler2 = 1 / value
  2385. end
  2386. coroutine.resume(coroutine.create(function()
  2387. for i = 0, 10, 0.1 do
  2388. swait()
  2389. if type == "Add" then
  2390. scaler2 = scaler2 - 0.01 * value
  2391. elseif type == "Divide" then
  2392. scaler2 = scaler2 - 0.01 / value
  2393. end
  2394. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  2395. rng.Transparency = rng.Transparency + 0.01
  2396. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
  2397. end
  2398. rng:Destroy()
  2399. end))
  2400. end
  2401. function CameraManager()
  2402. if TwoD and not CamInterrupt then
  2403. if Humanoid.Health > 0 then
  2404. Camera.CameraSubject = Humanoid
  2405. Camera.CameraType = "Scriptable"
  2406. Humanoid.AutoRotate = false
  2407. if Booleans.GyroUse then
  2408. Directer.MaxTorque = Vec3(0, huge, 0)
  2409. else
  2410. Directer.MaxTorque = Vec3(0, 0, 0)
  2411. end
  2412. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2413. if Booleans.CamFollow then
  2414. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2415. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2416. else
  2417. CPart.Position = RootPart.Position
  2418. end
  2419. else
  2420. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2421. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2422. end
  2423. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2424. else
  2425. Camera.CameraSubject = Humanoid
  2426. Camera.CameraType = "Custom"
  2427. Controller.Disabled = false
  2428. end
  2429. end
  2430. end
  2431. function sphere(bonuspeed, type, pos, scale, value, color)
  2432. local type = type
  2433. local rng = Instance.new("Part", char)
  2434. rng.Anchored = true
  2435. rng.BrickColor = color
  2436. rng.CanCollide = false
  2437. rng.FormFactor = 3
  2438. rng.Name = "Ring"
  2439. rng.Material = "Neon"
  2440. rng.Size = Vector3.new(1, 1, 1)
  2441. rng.Transparency = 0
  2442. rng.TopSurface = 0
  2443. rng.BottomSurface = 0
  2444. rng.CFrame = pos
  2445. local rngm = Instance.new("SpecialMesh", rng)
  2446. rngm.MeshType = "Sphere"
  2447. rngm.Scale = scale
  2448. if rainbowmode == true then
  2449. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2450. end
  2451. local scaler2 = 1
  2452. if type == "Add" then
  2453. scaler2 = 1 * value
  2454. elseif type == "Divide" then
  2455. scaler2 = 1 / value
  2456. end
  2457. coroutine.resume(coroutine.create(function()
  2458. for i = 0, 10 / bonuspeed, 0.1 do
  2459. swait()
  2460. if rainbowmode == true then
  2461. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2462. end
  2463. if type == "Add" then
  2464. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2465. elseif type == "Divide" then
  2466. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2467. end
  2468. if chaosmode == true then
  2469. rng.BrickColor = BrickColor.random()
  2470. end
  2471. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2472. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  2473. end
  2474. rng:Destroy()
  2475. end))
  2476. end
  2477. function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  2478. local type = type
  2479. local rng = Instance.new("Part", char)
  2480. rng.Anchored = true
  2481. rng.BrickColor = color
  2482. rng.CanCollide = false
  2483. rng.FormFactor = 3
  2484. rng.Name = "Ring"
  2485. rng.Material = "Neon"
  2486. rng.Size = Vector3.new(1, 1, 1)
  2487. rng.Transparency = 0
  2488. rng.TopSurface = 0
  2489. rng.BottomSurface = 0
  2490. rng.CFrame = pos
  2491. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2492. local rngm = Instance.new("SpecialMesh", rng)
  2493. rngm.MeshType = "Sphere"
  2494. rngm.Scale = vt(x1, y1, z1)
  2495. if rainbowmode == true then
  2496. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2497. end
  2498. local scaler2 = 1
  2499. local speeder = FastSpeed
  2500. if type == "Add" then
  2501. scaler2 = 1 * value
  2502. elseif type == "Divide" then
  2503. scaler2 = 1 / value
  2504. end
  2505. coroutine.resume(coroutine.create(function()
  2506. for i = 0, 10 / bonuspeed, 0.1 do
  2507. swait()
  2508. if rainbowmode == true then
  2509. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2510. end
  2511. if type == "Add" then
  2512. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2513. elseif type == "Divide" then
  2514. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2515. end
  2516. if chaosmode == true then
  2517. rng.BrickColor = BrickColor.random()
  2518. end
  2519. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2520. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2521. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2522. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2523. end
  2524. rng:Destroy()
  2525. end))
  2526. end
  2527. function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  2528. local type = type
  2529. local rng = Instance.new("Part", char)
  2530. rng.Anchored = true
  2531. rng.BrickColor = color
  2532. rng.CanCollide = false
  2533. rng.FormFactor = 3
  2534. rng.Name = "Ring"
  2535. rng.Material = "Neon"
  2536. rng.Size = Vector3.new(1, 1, 1)
  2537. rng.Transparency = 1
  2538. rng.TopSurface = 0
  2539. rng.BottomSurface = 0
  2540. rng.CFrame = pos
  2541. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2542. local rngm = Instance.new("SpecialMesh", rng)
  2543. rngm.MeshType = "Sphere"
  2544. rngm.Scale = vt(x1, y1, z1)
  2545. if rainbowmode == true then
  2546. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2547. end
  2548. local scaler2 = 1
  2549. local speeder = FastSpeed
  2550. if type == "Add" then
  2551. scaler2 = 1 * value
  2552. elseif type == "Divide" then
  2553. scaler2 = 1 / value
  2554. end
  2555. coroutine.resume(coroutine.create(function()
  2556. for i = 0, 10 / bonuspeed, 0.1 do
  2557. swait()
  2558. if rainbowmode == true then
  2559. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2560. end
  2561. if type == "Add" then
  2562. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2563. elseif type == "Divide" then
  2564. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2565. end
  2566. if chaosmode == true then
  2567. rng.BrickColor = BrickColor.random()
  2568. end
  2569. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2570. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2571. rng.Transparency = rng.Transparency - 0.01 * bonuspeed
  2572. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2573. end
  2574. rng:Destroy()
  2575. end))
  2576. end
  2577. function dmg(dude)
  2578. if dude.Name ~= Character then
  2579. local bgf = Instance.new("BodyGyro", dude.Head)
  2580. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  2581. local val = Instance.new("BoolValue", dude)
  2582. val.Name = "IsHit"
  2583. local ds = coroutine.wrap(function()
  2584. dude:WaitForChild("Head"):BreakJoints()
  2585. wait(0.5)
  2586. targetted = nil
  2587. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  2588. coroutine.resume(coroutine.create(function()
  2589. for i, v in pairs(dude:GetChildren()) do
  2590. if v:IsA("Accessory") then
  2591. v:Destroy()
  2592. end
  2593. if v:IsA("Humanoid") then
  2594. v:Destroy()
  2595. end
  2596. if v:IsA("CharacterMesh") then
  2597. v:Destroy()
  2598. end
  2599. if v:IsA("Model") then
  2600. v:Destroy()
  2601. end
  2602. if v:IsA("Part") or v:IsA("MeshPart") then
  2603. for x, o in pairs(v:GetChildren()) do
  2604. if o:IsA("Decal") then
  2605. o:Destroy()
  2606. end
  2607. end
  2608. coroutine.resume(coroutine.create(function()
  2609. v.Material = "Neon"
  2610. v.CanCollide = false
  2611. local bld = Instance.new("ParticleEmitter", v)
  2612. bld.LightEmission = 1
  2613. bld.Texture = "rbxassetid://284205403"
  2614. bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
  2615. bld.Rate = 50
  2616. bld.Lifetime = NumberRange.new(1)
  2617. bld.Size = NumberSequence.new({
  2618. NumberSequenceKeypoint.new(0, 0.75, 0),
  2619. NumberSequenceKeypoint.new(1, 0, 0)
  2620. })
  2621. bld.Transparency = NumberSequence.new({
  2622. NumberSequenceKeypoint.new(0, 0, 0),
  2623. NumberSequenceKeypoint.new(1, 1, 0)
  2624. })
  2625. bld.Speed = NumberRange.new(0, 0)
  2626. bld.VelocitySpread = 50000
  2627. bld.Rotation = NumberRange.new(-500, 500)
  2628. bld.RotSpeed = NumberRange.new(-500, 500)
  2629. local sbs = Instance.new("BodyPosition", v)
  2630. sbs.P = 3000
  2631. sbs.D = 1000
  2632. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2633. sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  2634. v.Color = Color3.new(1, 1, 1)
  2635. coroutine.resume(coroutine.create(function()
  2636. for i = 0, 49 do
  2637. swait(1)
  2638. v.Transparency = v.Transparency + 0.02
  2639. end
  2640. CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
  2641. bld.Speed = NumberRange.new(1, 5)
  2642. bld.Acceleration = vt(0, 10, 0)
  2643. wait(0.5)
  2644. bld.Enabled = false
  2645. wait(3)
  2646. v:Destroy()
  2647. dude:Destroy()
  2648. end))
  2649. end))
  2650. end
  2651. end
  2652. end))
  2653. end)
  2654. ds()
  2655. end
  2656. end
  2657. function FindNearestHead(Position, Distance, SinglePlayer)
  2658. if SinglePlayer then
  2659. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  2660. end
  2661. local List = {}
  2662. for i, v in pairs(workspace:GetChildren()) do
  2663. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  2664. table.insert(List, v)
  2665. end
  2666. end
  2667. return List
  2668. end
  2669. function FaceMouse()
  2670. Cam = workspace.CurrentCamera
  2671. return {
  2672. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2673. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2674. }
  2675. end
  2676. function FaceMouse2()
  2677. Cam = workspace.CurrentCamera
  2678. return {
  2679. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2680. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2681. }
  2682. end
  2683. local ModeOfGlitch = 1
  2684. local storehumanoidWS = 16
  2685. function ExtinctiveHeartbreak()
  2686. local targetted
  2687. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2688. targetted = mouse.Target.Parent
  2689. end
  2690. if targetted ~= nil then
  2691. attack = true
  2692. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  2693. for i = 0, 9 do
  2694. 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)
  2695. end
  2696. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  2697. local originalpos = root.CFrame
  2698. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
  2699. for i = 0, 9 do
  2700. 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)
  2701. end
  2702. hum.WalkSpeed = 0
  2703. targetted.Head.Anchored = true
  2704. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  2705. for i = 0, 2, 0.1 do
  2706. swait()
  2707. 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)
  2708. 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)
  2709. 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)
  2710. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  2711. 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)
  2712. 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)
  2713. end
  2714. coroutine.resume(coroutine.create(function()
  2715. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
  2716. bld.LightEmission = 0.1
  2717. bld.Texture = "rbxassetid://284205403"
  2718. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  2719. bld.Rate = 500
  2720. bld.Lifetime = NumberRange.new(1)
  2721. bld.Size = NumberSequence.new({
  2722. NumberSequenceKeypoint.new(0, 2, 0),
  2723. NumberSequenceKeypoint.new(1, 0, 0)
  2724. })
  2725. bld.Acceleration = vt(0, -25, 0)
  2726. bld.Transparency = NumberSequence.new({
  2727. NumberSequenceKeypoint.new(0, 0, 0),
  2728. NumberSequenceKeypoint.new(1, 0, 0)
  2729. })
  2730. bld.Speed = NumberRange.new(10, 50)
  2731. bld.EmissionDirection = "Front"
  2732. bld.VelocitySpread = 25
  2733. bld.Rotation = NumberRange.new(-500, 500)
  2734. bld.RotSpeed = NumberRange.new(-500, 500)
  2735. end))
  2736. coroutine.resume(coroutine.create(function()
  2737. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
  2738. bld.LightEmission = 0.1
  2739. bld.Texture = "rbxassetid://284205403"
  2740. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  2741. bld.Rate = 500
  2742. bld.Lifetime = NumberRange.new(1)
  2743. bld.Size = NumberSequence.new({
  2744. NumberSequenceKeypoint.new(0, 2, 0),
  2745. NumberSequenceKeypoint.new(1, 0, 0)
  2746. })
  2747. bld.Acceleration = vt(0, -25, 0)
  2748. bld.Transparency = NumberSequence.new({
  2749. NumberSequenceKeypoint.new(0, 0, 0),
  2750. NumberSequenceKeypoint.new(1, 0, 0)
  2751. })
  2752. bld.Speed = NumberRange.new(10, 50)
  2753. bld.EmissionDirection = "Front"
  2754. bld.VelocitySpread = 25
  2755. bld.Rotation = NumberRange.new(-500, 500)
  2756. bld.RotSpeed = NumberRange.new(-500, 500)
  2757. end))
  2758. CameraEnshaking(5, 5)
  2759. game:GetService("Debris"):AddItem(bld, 3)
  2760. dmg(targetted)
  2761. CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
  2762. for i = 0, 1, 0.1 do
  2763. swait()
  2764. 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)
  2765. 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)
  2766. 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)
  2767. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
  2768. 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)
  2769. 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)
  2770. end
  2771. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  2772. for i = 0, 9 do
  2773. 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)
  2774. end
  2775. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  2776. root.CFrame = originalpos
  2777. for i = 0, 9 do
  2778. 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)
  2779. end
  2780. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  2781. bld.Enabled = false
  2782. attack = false
  2783. hum.WalkSpeed = storehumanoidWS
  2784. end
  2785. end
  2786. function PureBomb()
  2787. attack = true
  2788. local orb = Instance.new("Part", char)
  2789. orb.Anchored = true
  2790. orb.BrickColor = BrickColor.new("Toothpaste")
  2791. orb.CanCollide = false
  2792. orb.FormFactor = 3
  2793. orb.Name = "Ring"
  2794. orb.Material = "Neon"
  2795. orb.Size = Vector3.new(1, 1, 1)
  2796. orb.Transparency = 0
  2797. orb.TopSurface = 0
  2798. orb.BottomSurface = 0
  2799. local orbm = Instance.new("SpecialMesh", orb)
  2800. orbm.MeshType = "Sphere"
  2801. orbm.Name = "SizeMesh"
  2802. orbm.Scale = vt(0, 0, 0)
  2803. local scaled = 0.1
  2804. local posid = 0
  2805. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  2806. for i = 0, 5, 0.1 do
  2807. swait()
  2808. scaled = scaled - 0.001
  2809. posid = posid - scaled
  2810. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  2811. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  2812. 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)
  2813. 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)
  2814. 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)
  2815. 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)
  2816. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2817. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  2818. 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)
  2819. end
  2820. for i = 0, 2, 0.1 do
  2821. swait()
  2822. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  2823. 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)
  2824. 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)
  2825. 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)
  2826. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  2827. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  2828. 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)
  2829. end
  2830. coroutine.resume(coroutine.create(function()
  2831. orb.Anchored = false
  2832. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  2833. local a = Instance.new("Part", workspace)
  2834. a.Name = "Direction"
  2835. a.Anchored = true
  2836. a.BrickColor = bc("Bright red")
  2837. a.Material = "Neon"
  2838. a.Transparency = 1
  2839. a.CanCollide = false
  2840. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  2841. local ignore = orb
  2842. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2843. a.BottomSurface = 10
  2844. a.TopSurface = 10
  2845. local distance = (orb.CFrame.p - position).magnitude
  2846. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2847. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2848. orb.CFrame = a.CFrame
  2849. a:Destroy()
  2850. local bv = Instance.new("BodyVelocity")
  2851. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  2852. bv.velocity = orb.CFrame.lookVector * 125
  2853. bv.Parent = orb
  2854. local hitted = false
  2855. game:GetService("Debris"):AddItem(orb, 15)
  2856. wait()
  2857. local hit = orb.Touched:connect(function(hit)
  2858. if hitted == false then
  2859. hitted = true
  2860. CameraEnshaking(10, 2.5)
  2861. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  2862. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  2863. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  2864. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  2865. for i = 0, 9 do
  2866. 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)
  2867. 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)
  2868. end
  2869. orb.Anchored = true
  2870. orb.Transparency = 1
  2871. wait(8)
  2872. orb:Destroy()
  2873. end
  2874. end)
  2875. end))
  2876. for i = 0, 1, 0.1 do
  2877. swait()
  2878. 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)
  2879. 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)
  2880. 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)
  2881. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  2882. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  2883. 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)
  2884. end
  2885. attack = false
  2886. end
  2887. function MegaPureBomb()
  2888. attack = true
  2889. local orb = Instance.new("Part", char)
  2890. orb.Anchored = true
  2891. orb.BrickColor = BrickColor.new("Toothpaste")
  2892. orb.CanCollide = false
  2893. orb.FormFactor = 3
  2894. orb.Name = "Ring"
  2895. orb.Material = "Neon"
  2896. orb.Size = Vector3.new(-30, -30, -30)
  2897. orb.Transparency = 0
  2898. orb.TopSurface = 0
  2899. orb.BottomSurface = 0
  2900. local orbm = Instance.new("SpecialMesh", orb)
  2901. orbm.MeshType = "Sphere"
  2902. orbm.Name = "SizeMesh"
  2903. orbm.Scale = vt(200, 200, 200)
  2904. local scaled = 0.1
  2905. local posid = 0
  2906. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  2907. for i = 0, 5, 0.1 do
  2908. swait()
  2909. scaled = scaled - 0.001
  2910. posid = posid - scaled
  2911. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  2912. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  2913. 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)
  2914. 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)
  2915. 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)
  2916. 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)
  2917. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2918. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  2919. 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)
  2920. end
  2921. for i = 0, 2, 0.1 do
  2922. swait()
  2923. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  2924. 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)
  2925. 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)
  2926. 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)
  2927. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  2928. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  2929. 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)
  2930. end
  2931. coroutine.resume(coroutine.create(function()
  2932. orb.Anchored = false
  2933. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  2934. local a = Instance.new("Part", workspace)
  2935. a.Name = "Direction"
  2936. a.Anchored = true
  2937. a.BrickColor = bc("Bright red")
  2938. a.Material = "Neon"
  2939. a.Transparency = 1
  2940. a.CanCollide = false
  2941. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  2942. local ignore = orb
  2943. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2944. a.BottomSurface = 10
  2945. a.TopSurface = 10
  2946. local distance = (orb.CFrame.p - position).magnitude
  2947. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2948. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2949. orb.CFrame = a.CFrame
  2950. a:Destroy()
  2951. local bv = Instance.new("BodyVelocity")
  2952. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  2953. bv.velocity = orb.CFrame.lookVector * 125
  2954. bv.Parent = orb
  2955. local hitted = false
  2956. game:GetService("Debris"):AddItem(orb, 15)
  2957. wait()
  2958. local hit = orb.Touched:connect(function(hit)
  2959. if hitted == false then
  2960. hitted = true
  2961. CameraEnshaking(10, 2.5)
  2962. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  2963. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  2964. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  2965. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  2966. for i = 0, 9 do
  2967. 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)
  2968. 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)
  2969. end
  2970. orb.Anchored = true
  2971. orb.Transparency = 1
  2972. wait(8)
  2973. orb:Destroy()
  2974. end
  2975. end)
  2976. end))
  2977. for i = 0, 1, 0.1 do
  2978. swait()
  2979. 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)
  2980. 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)
  2981. 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)
  2982. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  2983. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  2984. 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)
  2985. end
  2986. attack = false
  2987. end
  2988. function ChaosGroundStrike()
  2989. attack = true
  2990. for i = 0, 2, 0.1 do
  2991. swait()
  2992. 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)
  2993. 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)
  2994. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  2995. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  2996. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  2997. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  2998. end
  2999. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  3000. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  3001. CameraEnshaking(4, 12)
  3002. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3003. if v:FindFirstChild("Head") then
  3004. dmg(v)
  3005. end
  3006. end
  3007. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  3008. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  3009. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  3010. for i = 0, 2, 0.1 do
  3011. swait()
  3012. 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)
  3013. 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)
  3014. 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)
  3015. 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)
  3016. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3017. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3018. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  3019. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  3020. end
  3021. attack = false
  3022. end
  3023. function ChaosBegone()
  3024. attack = true
  3025. chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color)
  3026. for i = 0, 10, 0.1 do
  3027. swait()
  3028. 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)
  3029. 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)
  3030. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3031. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3032. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  3033. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  3034. end
  3035. chatfunc("DIE!!", BrickColor.random().Color)
  3036. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  3037. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  3038. CameraEnshaking(5, 25)
  3039. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3040. if v:FindFirstChild("Head") then
  3041. dmg(v)
  3042. end
  3043. end
  3044. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  3045. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  3046. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  3047. for i = 0, 3, 0.1 do
  3048. swait()
  3049. 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)
  3050. 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)
  3051. 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)
  3052. 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)
  3053. 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)
  3054. 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)
  3055. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3056. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3057. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  3058. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  3059. end
  3060. attack = false
  3061. end
  3062. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  3063. local orb = Instance.new("Part", char)
  3064. orb.Anchored = true
  3065. orb.BrickColor = color
  3066. orb.CanCollide = false
  3067. orb.FormFactor = 3
  3068. orb.Name = "Ring"
  3069. orb.Material = "Neon"
  3070. orb.Size = Vector3.new(1, 1, 1)
  3071. orb.Transparency = 0
  3072. orb.TopSurface = 0
  3073. orb.BottomSurface = 0
  3074. local orbm = Instance.new("SpecialMesh", orb)
  3075. orbm.MeshType = "Sphere"
  3076. orb.CFrame = positted
  3077. orbm.Name = "SizeMesh"
  3078. orbm.Scale = vt(1, 1, 1)
  3079. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  3080. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  3081. coroutine.resume(coroutine.create(function()
  3082. wait(timer)
  3083. CameraEnshaking(3, ShakePower)
  3084. orb.Transparency = 1
  3085. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  3086. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  3087. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  3088. wait(3)
  3089. orb:Destroy()
  3090. end))
  3091. end
  3092. function orb_spawn(positted, timer)
  3093. local randomcol = math.random(1, 2)
  3094. local orb = Instance.new("Part", char)
  3095. orb.Anchored = true
  3096. if randomcol == 1 then
  3097. orb.BrickColor = BrickColor.new("White")
  3098. elseif randomcol == 2 then
  3099. orb.BrickColor = BrickColor.new("Really black")
  3100. end
  3101. orb.CanCollide = false
  3102. orb.FormFactor = 3
  3103. orb.Name = "Ring"
  3104. orb.Material = "Neon"
  3105. orb.Size = Vector3.new(1, 1, 1)
  3106. orb.Transparency = 0
  3107. orb.TopSurface = 0
  3108. orb.BottomSurface = 0
  3109. local orbm = Instance.new("SpecialMesh", orb)
  3110. orbm.MeshType = "Sphere"
  3111. orb.CFrame = positted
  3112. orbm.Name = "SizeMesh"
  3113. orbm.Scale = vt(1, 1, 1)
  3114. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  3115. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  3116. for i = 0, 2 do
  3117. 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)
  3118. end
  3119. coroutine.resume(coroutine.create(function()
  3120. wait(timer)
  3121. CameraEnshaking(3, 2)
  3122. orb.Transparency = 1
  3123. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  3124. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  3125. for i = 0, 4 do
  3126. 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)
  3127. end
  3128. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  3129. wait(3)
  3130. orb:Destroy()
  3131. end))
  3132. end
  3133. function scattercorrupt()
  3134. attack = true
  3135. local rot = 0
  3136. local randomrotations = math.random(1, 2)
  3137. local lookv = 2.5
  3138. local power = 5
  3139. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  3140. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  3141. for i = 0, 9 do
  3142. 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)
  3143. end
  3144. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  3145. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  3146. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  3147. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  3148. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  3149. local hite = Instance.new("Part", char)
  3150. hite.Anchored = true
  3151. hite.CanCollide = false
  3152. hite.FormFactor = 3
  3153. hite.Name = "Ring"
  3154. hite.Material = "Neon"
  3155. hite.Size = Vector3.new(1, 1, 1)
  3156. hite.Transparency = 1
  3157. hite.TopSurface = 0
  3158. hite.BottomSurface = 0
  3159. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  3160. local rem = Instance.new("Part", char)
  3161. rem.Anchored = true
  3162. rem.CanCollide = false
  3163. rem.FormFactor = 3
  3164. rem.Name = "Ring"
  3165. rem.Material = "Neon"
  3166. rem.Size = Vector3.new(1, 1, 1)
  3167. rem.Transparency = 1
  3168. rem.TopSurface = 0
  3169. rem.BottomSurface = 0
  3170. rem.CFrame = hite.CFrame
  3171. local rem2 = rem:Clone()
  3172. rem2.Parent = char
  3173. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3174. local rem3 = rem:Clone()
  3175. rem3.Parent = char
  3176. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3177. local rem4 = rem:Clone()
  3178. rem4.Parent = char
  3179. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3180. hite:Destroy()
  3181. coroutine.resume(coroutine.create(function()
  3182. for i = 0, 24 do
  3183. swait(1)
  3184. if randomrotations == 1 then
  3185. rot = rot + 1
  3186. elseif randomrotations == 2 then
  3187. rot = rot - 1
  3188. end
  3189. power = power + 0.5
  3190. lookv = lookv + 7.5
  3191. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  3192. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3193. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3194. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3195. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3196. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3197. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3198. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3199. end
  3200. end))
  3201. attack = false
  3202. end
  3203. function deadworld()
  3204. hum.WalkSpeed = 0
  3205. attack = true
  3206. chatfunc("You... you will regret this!",Color3.new(0.5,0,0))
  3207. for i = 0,10,0.1 do
  3208. swait()
  3209. 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)
  3210. 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)
  3211. 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)
  3212. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1)
  3213. 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)
  3214. 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)
  3215. end
  3216. coroutine.resume(coroutine.create(function()
  3217. CFuncs["Sound"].Create("rbxassetid://1213175909", char, 1,1)
  3218. sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3219. sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3220. sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3221. coroutine.resume(coroutine.create(function()
  3222. for i = 0, 9 do
  3223. swait(3)
  3224. 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"))
  3225. end
  3226. end))
  3227. CFuncs["Sound"].Create("rbxassetid://579687077", char, 5,1)
  3228. CFuncs["Sound"].Create("rbxassetid://239000203", char, 1,1)
  3229. local blastpitch = 1
  3230. for i = 0,2 do
  3231. wait(1.5)
  3232. sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3233. sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3234. sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3235. coroutine.resume(coroutine.create(function()
  3236. for i = 0, 9 do
  3237. swait(3)
  3238. 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"))
  3239. end
  3240. end))
  3241. blastpitch = blastpitch - 0.15
  3242. CFuncs["Sound"].Create("rbxassetid://579687077", char, 1,blastpitch)
  3243. end
  3244. wait(2)
  3245. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 250000000)) do
  3246. hum.Health = math.huge
  3247. if v:FindFirstChild("Head") then
  3248. dmg(v)
  3249. end
  3250. end
  3251. CFuncs["Sound"].Create("rbxassetid://239000203", char, 2,0.75)
  3252. CFuncs["Sound"].Create("rbxassetid://579687077", char, 2,0.5)
  3253. sphere(1,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
  3254. sphere(2,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
  3255. sphere(3,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
  3256. coroutine.resume(coroutine.create(function()
  3257. for i = 0, 49 do
  3258. swait(3)
  3259. 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"))
  3260. 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"))
  3261. end
  3262. end))
  3263. end))
  3264. attack = false
  3265. hum.WalkSpeed = 30
  3266. end
  3267. function yinyangi()
  3268. attack = true
  3269. for i = 0, 2, 0.1 do
  3270. swait()
  3271. 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)
  3272. 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)
  3273. 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)
  3274. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3275. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  3276. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  3277. end
  3278. local bv = Instance.new("BodyVelocity")
  3279. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  3280. bv.velocity = root.CFrame.lookVector * 175
  3281. bv.Parent = root
  3282. for Rotations = 0, 9 do
  3283. for i = 0, 1, 0.5 do
  3284. swait()
  3285. bv.velocity = root.CFrame.lookVector * 175
  3286. 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)
  3287. 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)
  3288. 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)
  3289. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3290. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3291. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3292. end
  3293. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3294. for i = 0, 1, 0.5 do
  3295. swait()
  3296. bv.velocity = root.CFrame.lookVector * 175
  3297. 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)
  3298. 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)
  3299. 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)
  3300. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3301. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3302. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3303. end
  3304. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3305. for i = 0, 1, 0.5 do
  3306. swait()
  3307. bv.velocity = root.CFrame.lookVector * 175
  3308. 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)
  3309. 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)
  3310. 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)
  3311. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3312. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3313. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3314. end
  3315. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3316. for i = 0, 1, 0.5 do
  3317. swait()
  3318. bv.velocity = root.CFrame.lookVector * 175
  3319. 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)
  3320. 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)
  3321. 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)
  3322. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3323. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3324. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3325. end
  3326. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3327. end
  3328. bv:Destroy()
  3329. attack = false
  3330. end
  3331. function Wip()
  3332. attack = true
  3333. local rngb = Instance.new("Part", char)
  3334. rngb.Anchored = true
  3335. rngb.BrickColor = origcolor
  3336. rngb.CanCollide = false
  3337. rngb.FormFactor = 3
  3338. rngb.Name = "Ring"
  3339. rngb.Material = "Neon"
  3340. rngb.Size = Vector3.new(1, 0.05, 1)
  3341. rngb.Transparency = 1
  3342. rngb.TopSurface = 0
  3343. rngb.BottomSurface = 0
  3344. local rngmb = Instance.new("SpecialMesh", rngb)
  3345. rngmb.MeshType = "Brick"
  3346. rngmb.Name = "SizeMesh"
  3347. rngmb.Scale = vt(0, 1, 0)
  3348. local orb = rngb:Clone()
  3349. orb.Parent = char
  3350. orb.Transparency = 0
  3351. orb.BrickColor = BrickColor.new("White")
  3352. orb.Size = vt(1, 1, 1)
  3353. local orbmish = orb.SizeMesh
  3354. orbmish.Scale = vt(0, 0, 0)
  3355. orbmish.MeshType = "Sphere"
  3356. local orbe = rngb:Clone()
  3357. orbe.Parent = char
  3358. orbe.Transparency = 0.5
  3359. orbe.BrickColor = BrickColor.new("New Yeller")
  3360. orbe.Size = vt(1, 1, 1)
  3361. local orbmish2 = orbe.SizeMesh
  3362. orbmish2.Scale = vt(0, 0, 0)
  3363. orbmish2.MeshType = "Sphere"
  3364. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3365. rngb:Destroy()
  3366. for i = 0, 5, 0.1 do
  3367. swait()
  3368. if rainbowmode == true then
  3369. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3370. end
  3371. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3372. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3373. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3374. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3375. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  3376. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3377. 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)
  3378. 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)
  3379. RootPart.CFrame = FaceMouse()[1]
  3380. end
  3381. orbe.Transparency = 1
  3382. orb.Transparency = 1
  3383. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3384. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  3385. local a = Instance.new("Part", Character)
  3386. a.Name = "Direction"
  3387. a.Anchored = true
  3388. a.BrickColor = bc("White")
  3389. a.Material = "Neon"
  3390. a.Transparency = 0
  3391. a.Shape = "Cylinder"
  3392. a.CanCollide = false
  3393. local a2 = Instance.new("Part", Character)
  3394. a2.Name = "Direction"
  3395. a2.Anchored = true
  3396. a2.BrickColor = bc("New Yeller")
  3397. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  3398. a2.Material = "Neon"
  3399. a2.Transparency = 0.5
  3400. a2.Shape = "Cylinder"
  3401. a2.CanCollide = false
  3402. local ba = Instance.new("Part", Character)
  3403. ba.Name = "HitDirect"
  3404. ba.Anchored = true
  3405. ba.BrickColor = bc("Really black")
  3406. ba.Material = "Neon"
  3407. ba.Transparency = 1
  3408. ba.CanCollide = false
  3409. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3410. local ignore = Character
  3411. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3412. a.BottomSurface = 10
  3413. a.TopSurface = 10
  3414. a2.BottomSurface = 10
  3415. a2.TopSurface = 10
  3416. local distance = (orb.CFrame.p - position).magnitude
  3417. a.Size = Vector3.new(distance, 1, 1)
  3418. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3419. a2.Size = Vector3.new(distance, 1, 1)
  3420. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3421. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3422. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3423. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3424. game:GetService("Debris"):AddItem(a, 20)
  3425. game:GetService("Debris"):AddItem(a2, 20)
  3426. game:GetService("Debris"):AddItem(ba, 20)
  3427. local msh = Instance.new("SpecialMesh", a)
  3428. msh.MeshType = "Cylinder"
  3429. msh.Scale = vt(1, 25, 25)
  3430. local msh2 = Instance.new("SpecialMesh", a2)
  3431. msh2.MeshType = "Cylinder"
  3432. msh2.Scale = vt(1, 30, 30)
  3433. for i = 0, 10, 0.1 do
  3434. swait()
  3435. CameraEnshaking(1, 5)
  3436. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  3437. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3438. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3439. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3440. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3441. distance = (orb.CFrame.p - position).magnitude
  3442. if typrot == 1 then
  3443. rotation = rotation + 2.5
  3444. elseif typrot == 2 then
  3445. rotation = rotation - 2.5
  3446. end
  3447. RootPart.CFrame = FaceMouse()[1]
  3448. a.Size = Vector3.new(distance, 1, 1)
  3449. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3450. a2.Size = Vector3.new(distance, 1, 1)
  3451. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3452. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3453. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3454. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3455. msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
  3456. msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
  3457. 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)
  3458. 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)
  3459. MagniDamage(ba, 30, 500, 60000, 0, "Normal")
  3460. end
  3461. a:Destroy()
  3462. a2:Destroy()
  3463. ba:Destroy()
  3464. orb:Destroy()
  3465. orbe:Destroy()
  3466. attack = false
  3467. end
  3468. function UniversalSpark()
  3469. attack = true
  3470. local rngb = Instance.new("Part", char)
  3471. rngb.Anchored = true
  3472. rngb.BrickColor = origcolor
  3473. rngb.CanCollide = false
  3474. rngb.FormFactor = 3
  3475. rngb.Name = "Ring"
  3476. rngb.Material = "Neon"
  3477. rngb.Size = Vector3.new(1, 0.05, 1)
  3478. rngb.Transparency = 1
  3479. rngb.TopSurface = 0
  3480. rngb.BottomSurface = 0
  3481. local rngmb = Instance.new("SpecialMesh", rngb)
  3482. rngmb.MeshType = "Brick"
  3483. rngmb.Name = "SizeMesh"
  3484. rngmb.Scale = vt(0, 1, 0)
  3485. local orb = rngb:Clone()
  3486. orb.Parent = char
  3487. orb.Transparency = 0
  3488. orb.BrickColor = BrickColor.new("White")
  3489. orb.Size = vt(1, 1, 1)
  3490. local orbmish = orb.SizeMesh
  3491. orbmish.Scale = vt(0, 0, 0)
  3492. orbmish.MeshType = "Sphere"
  3493. local orbe = rngb:Clone()
  3494. orbe.Parent = char
  3495. orbe.Transparency = 0.5
  3496. orbe.BrickColor = BrickColor.new("New Yeller")
  3497. orbe.Size = vt(1, 1, 1)
  3498. local orbmish2 = orbe.SizeMesh
  3499. orbmish2.Scale = vt(0, 0, 0)
  3500. orbmish2.MeshType = "Sphere"
  3501. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3502. rngb:Destroy()
  3503. for i = 0, 5, 0.1 do
  3504. swait()
  3505. if rainbowmode == true then
  3506. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3507. end
  3508. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3509. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3510. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3511. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3512. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  3513. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3514. 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)
  3515. 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)
  3516. RootPart.CFrame = FaceMouse()[1]
  3517. end
  3518. orbe.Transparency = 1
  3519. orb.Transparency = 1
  3520. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3521. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  3522. CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
  3523. CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
  3524. CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
  3525. CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
  3526. CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
  3527. CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
  3528. local xd = Instance.new("Sound", char)
  3529. xd.SoundId = "rbxassetid://445796828"
  3530. xd.Pitch = 0.75
  3531. xd.Looped = true
  3532. xd.Volume = 1.25
  3533. xd:Play()
  3534. local a = Instance.new("Part", Character)
  3535. a.Name = "Direction"
  3536. a.Anchored = true
  3537. a.BrickColor = bc("Alder")
  3538. a.Color = MAINRUINCOLOR.Color
  3539. a.Material = "Neon"
  3540. a.Transparency = 0.5
  3541. a.Shape = "Cylinder"
  3542. a.CanCollide = false
  3543. local a2 = Instance.new("Part", Character)
  3544. a2.Name = "Direction"
  3545. a2.Anchored = true
  3546. a2.BrickColor = bc("New Yeller")
  3547. a2.Color = MAINRUINCOLOR.Color
  3548. a2.Material = "Neon"
  3549. a2.Transparency = 0.5
  3550. a2.Shape = "Cylinder"
  3551. a2.CanCollide = false
  3552. local ba = Instance.new("Part", Character)
  3553. ba.Name = "HitDirect"
  3554. ba.Anchored = true
  3555. ba.BrickColor = bc("Really black")
  3556. ba.Material = "Neon"
  3557. ba.Transparency = 1
  3558. ba.CanCollide = false
  3559. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3560. local ignore = Character
  3561. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3562. a.BottomSurface = 10
  3563. a.TopSurface = 10
  3564. a2.BottomSurface = 10
  3565. a2.TopSurface = 10
  3566. local distance = (orb.CFrame.p - position).magnitude
  3567. a.Size = Vector3.new(distance, 1, 1)
  3568. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3569. a2.Size = Vector3.new(distance, 1, 1)
  3570. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3571. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3572. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3573. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3574. game:GetService("Debris"):AddItem(a, 60)
  3575. game:GetService("Debris"):AddItem(a2, 60)
  3576. game:GetService("Debris"):AddItem(ba, 60)
  3577. local outerscale = 0
  3578. local msh = Instance.new("SpecialMesh", a)
  3579. msh.MeshType = "Cylinder"
  3580. msh.Scale = vt(1, 0, 0)
  3581. local msh2 = Instance.new("SpecialMesh", a2)
  3582. msh2.MeshType = "Cylinder"
  3583. msh2.Scale = vt(1, 0, 0)
  3584. for i = 0, 2, 0.1 do
  3585. swait()
  3586. CameraEnshaking(1, 1)
  3587. msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
  3588. msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
  3589. outerscale = outerscale - 0.015
  3590. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3591. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3592. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3593. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3594. distance = (orb.CFrame.p - position).magnitude
  3595. if typrot == 1 then
  3596. rotation = rotation + 2.5
  3597. elseif typrot == 2 then
  3598. rotation = rotation - 2.5
  3599. end
  3600. RootPart.CFrame = FaceMouse()[1]
  3601. a.Size = Vector3.new(distance, 1, 1)
  3602. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3603. a2.Size = Vector3.new(distance, 1, 1)
  3604. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3605. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3606. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3607. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3608. 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)
  3609. 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)
  3610. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3611. end
  3612. for z = 0, 2 do
  3613. for i = 0, 4, 0.1 do
  3614. swait()
  3615. CameraEnshaking(1, 1)
  3616. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3617. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3618. outerscale = outerscale + 0.015
  3619. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3620. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3621. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3622. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3623. distance = (orb.CFrame.p - position).magnitude
  3624. if typrot == 1 then
  3625. rotation = rotation + 2.5
  3626. elseif typrot == 2 then
  3627. rotation = rotation - 2.5
  3628. end
  3629. RootPart.CFrame = FaceMouse()[1]
  3630. a.Size = Vector3.new(distance, 1, 1)
  3631. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3632. a2.Size = Vector3.new(distance, 1, 1)
  3633. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3634. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3635. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3636. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3637. 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)
  3638. 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)
  3639. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3640. end
  3641. for i = 0, 4, 0.1 do
  3642. swait()
  3643. CameraEnshaking(1, 1)
  3644. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3645. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3646. outerscale = outerscale - 0.015
  3647. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3648. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3649. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3650. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3651. distance = (orb.CFrame.p - position).magnitude
  3652. if typrot == 1 then
  3653. rotation = rotation + 2.5
  3654. elseif typrot == 2 then
  3655. rotation = rotation - 2.5
  3656. end
  3657. RootPart.CFrame = FaceMouse()[1]
  3658. a.Size = Vector3.new(distance, 1, 1)
  3659. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3660. a2.Size = Vector3.new(distance, 1, 1)
  3661. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3662. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3663. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3664. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3665. 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)
  3666. 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)
  3667. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3668. end
  3669. end
  3670. for i = 0, 4, 0.1 do
  3671. swait()
  3672. CameraEnshaking(1, 1)
  3673. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3674. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3675. xd.Volume = xd.Volume - 0.025
  3676. a.Transparency = a.Transparency + 0.025
  3677. a2.Transparency = a2.Transparency + 0.025
  3678. outerscale = outerscale - 0.015
  3679. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3680. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3681. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3682. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3683. distance = (orb.CFrame.p - position).magnitude
  3684. if typrot == 1 then
  3685. rotation = rotation + 2.5
  3686. elseif typrot == 2 then
  3687. rotation = rotation - 2.5
  3688. end
  3689. RootPart.CFrame = FaceMouse()[1]
  3690. a.Size = Vector3.new(distance, 1, 1)
  3691. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3692. a2.Size = Vector3.new(distance, 1, 1)
  3693. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3694. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3695. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3696. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3697. 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)
  3698. 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)
  3699. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3700. end
  3701. xd:Destroy()
  3702. a:Destroy()
  3703. a2:Destroy()
  3704. ba:Destroy()
  3705. orb:Destroy()
  3706. orbe:Destroy()
  3707. attack = false
  3708. end
  3709. function resetmode()
  3710. rainbowmode = false
  3711. chaosmode = false
  3712. RecolorTextAndRename("Singularity", Color3.new(0, 0, 0), Color3.new(1, 0, 0))
  3713. ModeOfGlitch = 1
  3714. storehumanoidWS = 16
  3715. for i, v in pairs(mw2:GetChildren()) do
  3716. if v:IsA("Part") then
  3717. v.BrickColor = BrickColor.new("Really red")
  3718. v.Material = "Neon"
  3719. end
  3720. end
  3721. for i, v in pairs(mw1:GetChildren()) do
  3722. if v:IsA("Part") then
  3723. v.Transparency = 1
  3724. v.BrickColor = BrickColor.new("Really red")
  3725. v.Material = "Neon"
  3726. end
  3727. end
  3728. MAINRUINCOLOR = BrickColor.new("Really red")
  3729. hum.WalkSpeed = 16
  3730. newTheme("rbxassetid://415898123", 0, 1, 10)
  3731. for i, v in pairs(m:GetChildren()) do
  3732. if v:IsA("Part") then
  3733. v.BrickColor = BrickColor.new("Really black")
  3734. v.Material = "Glass"
  3735. end
  3736. end
  3737. for i, v in pairs(m2:GetChildren()) do
  3738. if v:IsA("Part") then
  3739. v.BrickColor = BrickColor.new("Crimson")
  3740. v.Material = "Granite"
  3741. end
  3742. end
  3743. for i, v in pairs(m3:GetChildren()) do
  3744. if v:IsA("Part") then
  3745. v.BrickColor = BrickColor.new("Really red")
  3746. v.Material = "Neon"
  3747. end
  3748. end
  3749. for i, v in pairs(extrawingmod1:GetChildren()) do
  3750. if v:IsA("Part") then
  3751. v.Transparency = 1
  3752. v.BrickColor = BrickColor.new("White")
  3753. v.Material = "Neon"
  3754. end
  3755. end
  3756. for i, v in pairs(extrawingmod2:GetChildren()) do
  3757. if v:IsA("Part") then
  3758. v.Transparency = 1
  3759. v.BrickColor = BrickColor.new("White")
  3760. v.Material = "Neon"
  3761. end
  3762. end
  3763. end
  3764. function attackone()
  3765. attack = true
  3766. for i = 0, 1, 0.1 do
  3767. swait()
  3768. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
  3769. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
  3770. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  3771. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  3772. 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)
  3773. 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)
  3774. end
  3775. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
  3776. local hitb = Instance.new("Part", char)
  3777. hitb.Anchored = true
  3778. hitb.CanCollide = false
  3779. hitb.FormFactor = 3
  3780. hitb.Name = "Ring"
  3781. hitb.Material = "Neon"
  3782. hitb.Size = Vector3.new(1, 1, 1)
  3783. hitb.Transparency = 1
  3784. hitb.TopSurface = 0
  3785. hitb.BottomSurface = 0
  3786. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  3787. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  3788. hitb:Destroy()
  3789. for i = 0, 1, 0.1 do
  3790. swait()
  3791. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
  3792. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
  3793. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  3794. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  3795. 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)
  3796. 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)
  3797. end
  3798. attack = false
  3799. end
  3800. function attacktwo()
  3801. attack = true
  3802. for i = 0, 1, 0.1 do
  3803. swait()
  3804. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
  3805. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  3806. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  3807. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  3808. 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)
  3809. 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)
  3810. end
  3811. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
  3812. local hitb = Instance.new("Part", char)
  3813. hitb.Anchored = true
  3814. hitb.CanCollide = false
  3815. hitb.FormFactor = 3
  3816. hitb.Name = "Ring"
  3817. hitb.Material = "Neon"
  3818. hitb.Size = Vector3.new(1, 1, 1)
  3819. hitb.Transparency = 1
  3820. hitb.TopSurface = 0
  3821. hitb.BottomSurface = 0
  3822. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  3823. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  3824. hitb:Destroy()
  3825. for i = 0, 1, 0.1 do
  3826. swait()
  3827. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
  3828. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
  3829. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  3830. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  3831. 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)
  3832. 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)
  3833. end
  3834. attack = false
  3835. end
  3836. function attackthree()
  3837. attack = true
  3838. for i = 0, 1, 0.1 do
  3839. swait()
  3840. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  3841. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  3842. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  3843. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3844. 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)
  3845. 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)
  3846. end
  3847. local distlook = 5
  3848. for i = 0, 4 do
  3849. swait(2)
  3850. CameraEnshaking(2, 3)
  3851. local hite = Instance.new("Part", char)
  3852. hite.Anchored = true
  3853. hite.CanCollide = false
  3854. hite.FormFactor = 3
  3855. hite.Name = "Ring"
  3856. hite.Material = "Neon"
  3857. hite.Size = Vector3.new(1, 1, 1)
  3858. hite.Transparency = 1
  3859. hite.TopSurface = 0
  3860. hite.BottomSurface = 0
  3861. hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
  3862. sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
  3863. sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
  3864. MagniDamage(hite, 10, 15, 35, 0, "Normal")
  3865. for i = 0, 2 do
  3866. 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)
  3867. 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)
  3868. 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)
  3869. end
  3870. CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
  3871. CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
  3872. game:GetService("Debris"):AddItem(hite, 5)
  3873. distlook = distlook + 10
  3874. end
  3875. attack = false
  3876. end
  3877. local attacktype = 1
  3878. mouse.Button1Down:connect(function()
  3879. if attack == false and attacktype == 1 then
  3880. attacktype = 2
  3881. attackone()
  3882. elseif attack == false and attacktype == 2 then
  3883. attacktype = 3
  3884. attacktwo()
  3885. elseif attack == false and attacktype == 3 then
  3886. attacktype = 1
  3887. attackthree()
  3888. elseif attack == false and attacktype == 4 then
  3889. attacktype = 1
  3890. end
  3891. end)
  3892. mouse.KeyDown:connect(function(k)
  3893. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  3894. ModeOfGlitch = 2
  3895. storehumanoidWS = 16
  3896. hum.WalkSpeed = 16
  3897. rainbowmode = false
  3898. chaosmode = false
  3899. RecolorTextAndRename("Purity", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
  3900. newTheme("rbxassetid://1119453744", 20.25, 1, 1)
  3901. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  3902. for i, v in pairs(mw2:GetChildren()) do
  3903. if v:IsA("Part") then
  3904. v.BrickColor = MAINRUINCOLOR
  3905. v.Material = "Neon"
  3906. end
  3907. end
  3908. for i, v in pairs(mw1:GetChildren()) do
  3909. if v:IsA("Part") then
  3910. v.Transparency = 1
  3911. v.BrickColor = MAINRUINCOLOR
  3912. v.Material = "Neon"
  3913. end
  3914. end
  3915. for i, v in pairs(m:GetChildren()) do
  3916. if v:IsA("Part") then
  3917. v.BrickColor = BrickColor.new("White")
  3918. v.Material = "Ice"
  3919. end
  3920. end
  3921. for i, v in pairs(m2:GetChildren()) do
  3922. if v:IsA("Part") then
  3923. v.BrickColor = BrickColor.new("Pastel light blue")
  3924. v.Material = "Glass"
  3925. end
  3926. end
  3927. for i, v in pairs(m3:GetChildren()) do
  3928. if v:IsA("Part") then
  3929. v.BrickColor = BrickColor.new("Toothpaste")
  3930. v.Material = "Neon"
  3931. end
  3932. end
  3933. for i, v in pairs(extrawingmod1:GetChildren()) do
  3934. if v:IsA("Part") then
  3935. v.Transparency = 1
  3936. v.BrickColor = BrickColor.new("White")
  3937. v.Material = "Neon"
  3938. end
  3939. end
  3940. for i, v in pairs(extrawingmod2:GetChildren()) do
  3941. if v:IsA("Part") then
  3942. v.Transparency = 1
  3943. v.BrickColor = BrickColor.new("White")
  3944. v.Material = "Neon"
  3945. end
  3946. end
  3947. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  3948. resetmode()
  3949. end
  3950. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  3951. ModeOfGlitch = 3
  3952. storehumanoidWS = 16
  3953. hum.WalkSpeed = 16
  3954. rainbowmode = false
  3955. chaosmode = false
  3956. RecolorTextAndRename("Corruption", Color3.new(0, 0, 0), Color3.new(0.35, 0, 1))
  3957. newTheme("rbxassetid://1509634377", 58.15, 1,2)
  3958. MAINRUINCOLOR = BrickColor.new("Royal purple")
  3959. for i, v in pairs(mw2:GetChildren()) do
  3960. if v:IsA("Part") then
  3961. v.BrickColor = MAINRUINCOLOR
  3962. v.Material = "Neon"
  3963. end
  3964. end
  3965. for i, v in pairs(mw1:GetChildren()) do
  3966. if v:IsA("Part") then
  3967. v.Transparency = 1
  3968. v.BrickColor = MAINRUINCOLOR
  3969. v.Material = "Neon"
  3970. end
  3971. end
  3972. for i, v in pairs(m:GetChildren()) do
  3973. if v:IsA("Part") then
  3974. v.BrickColor = BrickColor.new("Black")
  3975. v.Material = "Ice"
  3976. end
  3977. end
  3978. for i, v in pairs(m2:GetChildren()) do
  3979. if v:IsA("Part") then
  3980. v.BrickColor = BrickColor.new("Dark indigo")
  3981. v.Material = "Glass"
  3982. end
  3983. end
  3984. for i, v in pairs(m3:GetChildren()) do
  3985. if v:IsA("Part") then
  3986. v.BrickColor = BrickColor.new("Royal purple")
  3987. v.Material = "Neon"
  3988. end
  3989. end
  3990. for i, v in pairs(extrawingmod1:GetChildren()) do
  3991. if v:IsA("Part") then
  3992. v.Transparency = 1
  3993. v.BrickColor = BrickColor.new("White")
  3994. v.Material = "Neon"
  3995. end
  3996. end
  3997. for i, v in pairs(extrawingmod2:GetChildren()) do
  3998. if v:IsA("Part") then
  3999. v.Transparency = 1
  4000. v.BrickColor = BrickColor.new("White")
  4001. v.Material = "Neon"
  4002. end
  4003. end
  4004. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  4005. resetmode()
  4006. end
  4007. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  4008. ModeOfGlitch = 4
  4009. storehumanoidWS = 16
  4010. hum.WalkSpeed = 16
  4011. rainbowmode = false
  4012. chaosmode = true
  4013. RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
  4014. newTheme("rbxassetid://415898123", 0, 1, 10)
  4015. MAINRUINCOLOR = BrickColor.new("Black")
  4016. for i, v in pairs(mw2:GetChildren()) do
  4017. if v:IsA("Part") then
  4018. v.BrickColor = MAINRUINCOLOR
  4019. v.Material = "Neon"
  4020. end
  4021. end
  4022. for i, v in pairs(mw1:GetChildren()) do
  4023. if v:IsA("Part") then
  4024. v.Transparency = 0.75
  4025. v.BrickColor = BrickColor.random()
  4026. v.Material = "Neon"
  4027. end
  4028. end
  4029. for i, v in pairs(m:GetChildren()) do
  4030. if v:IsA("Part") then
  4031. v.BrickColor = BrickColor.new("Black")
  4032. v.Material = "Neon"
  4033. end
  4034. end
  4035. for i, v in pairs(m2:GetChildren()) do
  4036. if v:IsA("Part") then
  4037. v.BrickColor = BrickColor.random()
  4038. v.Material = "Neon"
  4039. end
  4040. end
  4041. for i, v in pairs(m3:GetChildren()) do
  4042. if v:IsA("Part") then
  4043. v.BrickColor = BrickColor.new("Black")
  4044. v.Material = "Neon"
  4045. end
  4046. end
  4047. for i, v in pairs(extrawingmod1:GetChildren()) do
  4048. if v:IsA("Part") then
  4049. v.Transparency = 1
  4050. v.BrickColor = BrickColor.new("White")
  4051. v.Material = "Neon"
  4052. end
  4053. end
  4054. for i, v in pairs(extrawingmod2:GetChildren()) do
  4055. if v:IsA("Part") then
  4056. v.Transparency = 1
  4057. v.BrickColor = BrickColor.new("White")
  4058. v.Material = "Neon"
  4059. end
  4060. end
  4061. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  4062. resetmode()
  4063. end
  4064. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  4065. ModeOfGlitch = 5
  4066.  
  4067. storehumanoidWS = 16
  4068. hum.WalkSpeed = 16
  4069. rainbowmode = false
  4070. chaosmode = false
  4071. RecolorTextAndRename("Solitude", Color3.new(0, 0, 0), Color3.new(255, 255, 255))
  4072. newTheme("rbxassetid://723652641", 10, 1, 3.2)
  4073. ModeOfGlitch = 1
  4074. MAINRUINCOLOR = BrickColor.new("Really black")
  4075. for i, v in pairs(mw2:GetChildren()) do
  4076. if v:IsA("Part") then
  4077. v.BrickColor = MAINRUINCOLOR
  4078. v.Material = "Neon"
  4079. end
  4080. end
  4081. for i, v in pairs(mw1:GetChildren()) do
  4082. if v:IsA("Part") then
  4083. v.Transparency = 0
  4084. v.BrickColor = MAINRUINCOLOR
  4085. v.Material = "Neon"
  4086. end
  4087. end
  4088. for i, v in pairs(m:GetChildren()) do
  4089. if v:IsA("Part") then
  4090. v.BrickColor = BrickColor.new("Really black")
  4091. v.Material = "Ice"
  4092. end
  4093. end
  4094. for i, v in pairs(m2:GetChildren()) do
  4095. if v:IsA("Part") then
  4096. v.BrickColor = BrickColor.new("Really black")
  4097. v.Material = "Ice"
  4098. end
  4099. end
  4100. for i, v in pairs(m3:GetChildren()) do
  4101. if v:IsA("Part") then
  4102. v.BrickColor = BrickColor.new("Really black")
  4103. v.Material = "Neon"
  4104. end
  4105. end
  4106. for i, v in pairs(extrawingmod1:GetChildren()) do
  4107. if v:IsA("Part") then
  4108. v.Transparency = 1
  4109. v.BrickColor = BrickColor.new("White")
  4110. v.Material = "Neon"
  4111. end
  4112. end
  4113. for i, v in pairs(extrawingmod2:GetChildren()) do
  4114. if v:IsA("Part") then
  4115. v.Transparency = 1
  4116. v.BrickColor = BrickColor.new("White")
  4117. v.Material = "Neon"
  4118. end
  4119. end
  4120. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  4121. resetmode()
  4122. end
  4123. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  4124. ModeOfGlitch = 6
  4125. storehumanoidWS = 75
  4126. hum.WalkSpeed = 75
  4127. rainbowmode = false
  4128. chaosmode = false
  4129. RecolorTextAndRename("Equality", Color3.new(0, 0, 0), Color3.new(1, 1, 1))
  4130. newTheme("rbxassetid://519067542", 0, 1, 1)
  4131. MAINRUINCOLOR = BrickColor.new("Really black")
  4132. for i, v in pairs(mw2:GetChildren()) do
  4133. if v:IsA("Part") then
  4134. v.BrickColor = BrickColor.new("White")
  4135. v.Material = "Neon"
  4136. end
  4137. end
  4138. for i, v in pairs(mw1:GetChildren()) do
  4139. if v:IsA("Part") then
  4140. v.Transparency = 0
  4141. v.BrickColor = BrickColor.new("Really black")
  4142. v.Material = "Neon"
  4143. end
  4144. end
  4145. for i, v in pairs(m:GetChildren()) do
  4146. if v:IsA("Part") then
  4147. v.BrickColor = BrickColor.new("White")
  4148. v.Material = "Ice"
  4149. end
  4150. end
  4151. for i, v in pairs(m2:GetChildren()) do
  4152. if v:IsA("Part") then
  4153. v.BrickColor = BrickColor.new("Really black")
  4154. v.Material = "Ice"
  4155. end
  4156. end
  4157. for i, v in pairs(m3:GetChildren()) do
  4158. if v:IsA("Part") then
  4159. v.BrickColor = BrickColor.new("White")
  4160. v.Material = "Neon"
  4161. end
  4162. end
  4163. for i, v in pairs(extrawingmod1:GetChildren()) do
  4164. if v:IsA("Part") then
  4165. v.Transparency = 1
  4166. v.BrickColor = BrickColor.new("White")
  4167. v.Material = "Neon"
  4168. end
  4169. end
  4170. for i, v in pairs(extrawingmod2:GetChildren()) do
  4171. if v:IsA("Part") then
  4172. v.Transparency = 1
  4173. v.BrickColor = BrickColor.new("White")
  4174. v.Material = "Neon"
  4175. end
  4176. end
  4177.  
  4178.  
  4179. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  4180. resetmode()
  4181. end
  4182. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  4183. ModeOfGlitch = 6127843
  4184. storehumanoidWS = 50
  4185. hum.WalkSpeed = 50
  4186. rainbowmode = true
  4187. chaosmode = false
  4188. RecolorTextAndRename("StarLight", Color3.new(1, 1, 1), Color3.new(1, 1, 1))
  4189. newTheme("rbxassetid://152539141", 0, 1, 1)
  4190. MAINRUINCOLOR = BrickColor.new("White")
  4191. for i, v in pairs(mw2:GetChildren()) do
  4192. if v:IsA("Part") then
  4193. v.BrickColor = MAINRUINCOLOR
  4194. v.Material = "Neon"
  4195. end
  4196. end
  4197. for i, v in pairs(mw1:GetChildren()) do
  4198. if v:IsA("Part") then
  4199. v.Transparency = 0
  4200. v.BrickColor = MAINRUINCOLOR
  4201. v.Material = "Neon"
  4202. end
  4203. end
  4204. for i, v in pairs(m:GetChildren()) do
  4205. if v:IsA("Part") then
  4206. v.BrickColor = BrickColor.new("White")
  4207. v.Material = "Neon"
  4208. end
  4209. end
  4210. for i, v in pairs(m2:GetChildren()) do
  4211. if v:IsA("Part") then
  4212. v.BrickColor = BrickColor.new("White")
  4213. v.Material = "Neon"
  4214. end
  4215. end
  4216. for i, v in pairs(m3:GetChildren()) do
  4217. if v:IsA("Part") then
  4218. v.BrickColor = BrickColor.new("White")
  4219. v.Material = "Neon"
  4220. end
  4221. end
  4222. for i, v in pairs(extrawingmod1:GetChildren()) do
  4223. if v:IsA("Part") then
  4224. v.Transparency = 1
  4225. v.BrickColor = BrickColor.new("White")
  4226. v.Material = "Neon"
  4227. end
  4228. end
  4229. for i, v in pairs(extrawingmod2:GetChildren()) do
  4230. if v:IsA("Part") then
  4231. v.Transparency = 1
  4232. v.BrickColor = BrickColor.new("White")
  4233. v.Material = "Neon"
  4234. end
  4235. end
  4236. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  4237. resetmode()
  4238. end
  4239. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  4240. ModeOfGlitch = 1000000
  4241. storehumanoidWS = 100
  4242. hum.WalkSpeed = 100
  4243. rainbowmode = false
  4244. chaosmode = false
  4245. RecolorTextAndRename("True Starlight", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
  4246. newTheme("rbxassetid://614032233", 0, 1, 1)
  4247. MAINRUINCOLOR = BrickColor.new("Bright violet")
  4248. for i, v in pairs(mw2:GetChildren()) do
  4249. if v:IsA("Part") then
  4250. v.BrickColor = MAINRUINCOLOR
  4251. v.Material = "Neon"
  4252. end
  4253. end
  4254. for i, v in pairs(mw1:GetChildren()) do
  4255. if v:IsA("Part") then
  4256. v.Transparency = 0
  4257. v.BrickColor = MAINRUINCOLOR
  4258. v.Material = "Neon"
  4259. end
  4260. end
  4261. for i, v in pairs(m:GetChildren()) do
  4262. if v:IsA("Part") then
  4263. v.Color = Color3.new(0.5, 0, 1)
  4264. v.Material = "Neon"
  4265. end
  4266. end
  4267. for i, v in pairs(m2:GetChildren()) do
  4268. if v:IsA("Part") then
  4269. v.Color = Color3.new(0.25, 0, 1)
  4270. v.Material = "Neon"
  4271. end
  4272. end
  4273. for i, v in pairs(m3:GetChildren()) do
  4274. if v:IsA("Part") then
  4275. v.Color = Color3.new(0.45, 0, 1)
  4276. v.Material = "Neon"
  4277. end
  4278. end
  4279. for i, v in pairs(extrawingmod1:GetChildren()) do
  4280. if v:IsA("Part") then
  4281. v.Transparency = 0
  4282. v.Color = Color3.new(0.25, 0, 1)
  4283. v.Material = "Neon"
  4284. end
  4285. end
  4286. for i, v in pairs(extrawingmod2:GetChildren()) do
  4287. if v:IsA("Part") then
  4288. v.Transparency = 0
  4289. v.Color = Color3.new(0.5, 0, 1)
  4290. v.Material = "Neon"
  4291. end
  4292. end
  4293. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  4294. resetmode()
  4295. end
  4296. if k == "l" and toggleTag == false then
  4297. toggleTag = true
  4298. text.TextTransparency = 0
  4299. text.TextStrokeTransparency = 0
  4300. elseif k == "l" and toggleTag == true then
  4301. toggleTag = false
  4302. text.TextTransparency = 1
  4303. text.TextStrokeTransparency = 1
  4304. end
  4305. if k == "z" and attack == false and ModeOfGlitch == 1 then
  4306. ExtinctiveHeartbreak()
  4307. elseif k == "l" and attack == false and ModeOfGlitch == 1 then
  4308. deadworld()
  4309. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  4310. PureBomb()
  4311. elseif k == "l" and attack == false and ModeOfGlitch == 2 then
  4312. MegaPureBomb()
  4313. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  4314. scattercorrupt()
  4315. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  4316. ChaosGroundStrike()
  4317. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  4318. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  4319. UniversalSpark()
  4320. elseif k == "l" and attack == false and ModeOfGlitch == 1000000 then
  4321. scattercorrupt()
  4322. wait(1)
  4323. yinyangi()
  4324. elseif k == "l" and attack == false and ModeOfGlitch == 5 then
  4325. scattercorrupt()
  4326. scattercorrupt()
  4327. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  4328. yinyangi()
  4329. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  4330. Wip()
  4331. end
  4332. if k == "l" and attack == false and ModeOfGlitch == 4 then
  4333. ChaosBegone()
  4334. end
  4335. end)
  4336. coroutine.resume(coroutine.create(function()
  4337. while true do
  4338. swait(2)
  4339. if rainbowmode == true or ModeOfGlitch == 6 then
  4340. 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)
  4341. end
  4342. end
  4343. end))
  4344. coroutine.resume(coroutine.create(function()
  4345. while true do
  4346. swait(0.5)
  4347. if ModeOfGlitch == 1000000 then
  4348. 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)
  4349. end
  4350. end
  4351. end))
  4352. coroutine.resume(coroutine.create(function()
  4353. while true do
  4354. swait(2)
  4355. if chaosmode == true then
  4356. RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
  4357. for i, v in pairs(mw1:GetChildren()) do
  4358. if v:IsA("Part") then
  4359. v.Transparency = 0.75
  4360. v.BrickColor = BrickColor.random()
  4361. v.Material = "Neon"
  4362. end
  4363. end
  4364. for i, v in pairs(m2:GetChildren()) do
  4365. if v:IsA("Part") then
  4366. v.BrickColor = BrickColor.random()
  4367. v.Material = "Neon"
  4368. end
  4369. end
  4370. end
  4371. end
  4372. end))
  4373. Humanoid.Name = "STARGLITCHER"
  4374. Humanoid.MaxHealth = math.huge
  4375. Humanoid.Health = math.huge
  4376. Instance.new("ForceField", char).Visible = false
  4377. Humanoid.Animator.Parent = nil
  4378. idleanim = 0.4
  4379. while true do
  4380. if rainbowmode == true then
  4381. RecolorTextAndRename("StarLight", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500))
  4382. MAINRUINCOLOR = BrickColor.new("White")
  4383. for i, v in pairs(m:GetChildren()) do
  4384. if v:IsA("Part") then
  4385. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4386. end
  4387. end
  4388. for i, v in pairs(m2:GetChildren()) do
  4389. if v:IsA("Part") then
  4390. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4391. end
  4392. end
  4393. for i, v in pairs(m3:GetChildren()) do
  4394. if v:IsA("Part") then
  4395. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4396. end
  4397. end
  4398. for i, v in pairs(mw1:GetChildren()) do
  4399. if v:IsA("Part") then
  4400. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4401. v.Material = "Neon"
  4402. end
  4403. end
  4404. for i, v in pairs(mw2:GetChildren()) do
  4405. if v:IsA("Part") then
  4406. v.Color = Color3.new(r / 255, g / 255, b / 255)
  4407. v.Material = "Neon"
  4408. end
  4409. end
  4410. end
  4411. CameraManager()
  4412. swait()
  4413. 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)
  4414. 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)
  4415. 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)
  4416. 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)
  4417. 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)
  4418. 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)
  4419. 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)
  4420. 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)
  4421. 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)
  4422. 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)
  4423. 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)
  4424. 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)
  4425. sine = sine + change
  4426. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  4427. local velderp = RootPart.Velocity.y
  4428. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  4429. if equipped == true or equipped == false then
  4430. if attack == false then
  4431. idle = idle + 1
  4432. else
  4433. idle = 0
  4434. end
  4435. if not (idle >= 500) or attack == false then
  4436. end
  4437. if RootPart.Velocity.y > 1 and hitfloor == nil then
  4438. Anim = "Jump"
  4439. if attack == false then
  4440. 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)
  4441. 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)
  4442. 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)
  4443. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1)
  4444. 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)
  4445. 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)
  4446. end
  4447. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  4448. Anim = "Fall"
  4449. if attack == false then
  4450. 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)
  4451. 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)
  4452. 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)
  4453. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4454. 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)
  4455. 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)
  4456. end
  4457. elseif torvel < 1 and hitfloor ~= nil then
  4458. Anim = "Idle"
  4459. if attack == false then
  4460. if ModeOfGlitch == 1 then
  4461. 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)
  4462. 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)
  4463. 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)
  4464. 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)
  4465. 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)
  4466. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
  4467. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  4468. 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)
  4469. 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)
  4470. 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)
  4471. 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)
  4472. 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)
  4473. 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)
  4474. elseif ModeOfGlitch == 3 then
  4475. 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)
  4476. 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)
  4477. 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)
  4478. 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)
  4479. 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)
  4480. LW.C0 = clerp(LW.C0, cf(-1.5, 0.75, 0) * angles(math.rad(170), math.rad(-20), math.rad(20)), 0.1)
  4481. elseif ModeOfGlitch == 4 then
  4482. 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)
  4483. 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)
  4484. 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)
  4485. 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)
  4486. 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)
  4487. 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)
  4488. elseif ModeOfGlitch == 5 then
  4489. 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)
  4490. 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)
  4491. 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)
  4492. 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)
  4493. 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)
  4494. 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)
  4495. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  4496. 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)
  4497. 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)
  4498. 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)
  4499. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
  4500. 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)
  4501. 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)
  4502. end
  4503. end
  4504. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  4505. Anim = "Walk"
  4506. if attack == false then
  4507. if ModeOfGlitch == 1 then
  4508. 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)
  4509. 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)
  4510. 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)
  4511. 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)
  4512. 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)
  4513. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
  4514. elseif ModeOfGlitch == 4 then
  4515. 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)
  4516. 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)
  4517. 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)
  4518. 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)
  4519. 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)
  4520. 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)
  4521. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then
  4522. 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)
  4523. 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)
  4524. 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)
  4525. 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)
  4526. 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)
  4527. 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)
  4528. end
  4529. end
  4530. elseif torvel >= 22 and hitfloor ~= nil then
  4531. Anim = "Run"
  4532. if attack == false then
  4533. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then
  4534. 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)
  4535. 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)
  4536. 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)
  4537. 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)
  4538. 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)
  4539. 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)
  4540. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  4541. 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)
  4542. 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)
  4543. 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)
  4544. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4545. 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)
  4546. 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)
  4547. end
  4548. end
  4549. end
  4550. end
  4551. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement