Advertisement
Zebula_The_Scripter

New Star Glitcher

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