Advertisement
GojiGaming1337

Untitled

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