Advertisement
9Simplicity9

Untitled

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