Advertisement
thegameplayer

Untitled

Jun 1st, 2023
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.66 KB | None | 0 0
  1. local readfile = function(file)
  2. return readfile(file, "syn.protect_funcs_from_overwrite")
  3. end
  4. local writefile = function(file, data)
  5. return writefile(file, data, "syn.protect_funcs_from_overwrite")
  6. end
  7. local isfile = function(file)
  8. return isfile(file, "syn.protect_funcs_from_overwrite")
  9. end
  10. local delfile = function(file)
  11. return delfile(file, "syn.protect_funcs_from_overwrite")
  12. end
  13. local isfolder = function(folder)
  14. return isfolder(folder, "syn.protect_funcs_from_overwrite")
  15. end
  16. local makefolder = function(folder)
  17. return makefolder(folder, "syn.protect_funcs_from_overwrite")
  18. end
  19. local delfolder = function(folder)
  20. return delfolder(folder, "syn.protect_funcs_from_overwrite")
  21. end
  22. local listfiles = function(path)
  23. return listfiles(path, "syn.protect_funcs_from_overwrite")
  24. end
  25.  
  26. local api = {
  27. ["PreLoad"] = {
  28. "filtergc",
  29. "mathutils",
  30. "positionutils",
  31. "stringutils",
  32. "tableutils",
  33. "betterhookfunction",
  34. "printtable",
  35. "functionutils",
  36. "SecureApi",
  37. "bettergithub",
  38. "sha",
  39. --"AntiScreenshotLogs.lua"
  40. },
  41. ["PostLoad"] = {
  42. "globalservices",
  43. ["entity"] = "character",
  44. "Utils"
  45. },
  46. }
  47.  
  48. local gameapi = {
  49. [6872274481] = {
  50. "Utils",
  51. "KnitFabric"
  52. },
  53. }
  54.  
  55. getgenv().MeteorAnticheat = {
  56. Chat = { ["A"] = false, },
  57. Scaffold = { ["A"] = true, },
  58. KillAura = { ["A"] = true, ["B"] = true, ["C"] = true, ["D"] = true, },
  59. Projectiles = { ["A"] = true, ["B"] = false, ["C"] = true, },
  60. NoFall = { ["A"] = true, ["B"] = true, },
  61. NoSlow = { ["A"] = true, ["B"] = true, },
  62. AntiVoid = { ["A"] = true, },
  63. AutoBank = { ["A"] = true, },
  64. Nuker = { ["A"] = true, },
  65. InfiniteFly = { ["A"] = true, },
  66. ShopTierBypass = { ["A"] = false, },
  67. RavenTP = { ["A"] = true, },
  68. NoNametag = { ["A"] = true, },
  69. }
  70.  
  71. --[[
  72. Meteor Anticheat
  73. Chat (A) - Flags certain messages
  74. Scaffold (A) - Hand check
  75. KillAura (A) - Old chargeRatio check
  76. KillAura (B) - Old hand check
  77. KillAura (C) - Nothing
  78. KillAura (D) - Nothing
  79. Projectiles (A) - nan damage check
  80. Projectiles (B) - Nothing
  81. Projectiles (C) - Nothing
  82. NoFall (A) - Nothing
  83. NoFall (B) - Nothing
  84. NoSlow (A) - Nothing
  85. NoSlow (B) - Nothing
  86. AntiVoid (A) - Detects when a player is using the Classic mode antivoid
  87. AutoBank (A) - Detects unallowed personal chest item transfer
  88. Nuker (A) - Hand check
  89. InfiniteFly (A) - Simple position check
  90. ShopTierBypass (A) - Checks all items added to a player inventory and flags items bought with ShopTierBypass
  91. RavenTP (A) - Nothing
  92. NoNametag (A) - Checks if the player has a nametag
  93. ]]
  94.  
  95. local function debugrun(func, useloadstr, str, strargs, ...)
  96. local args = {...}
  97. strargs = strargs or {}
  98. if func then
  99. local res = table.pack(xpcall(function(...)
  100. return func(...)
  101. end, function(err)
  102. warn(err)
  103. warn(debug.traceback())
  104. end, unpack(args)))
  105. table.remove(res, 1)
  106. return table.unpack(res)
  107. elseif useloadstr and str then
  108. local res = table.pack(xpcall(function(str2, ...)
  109. return loadstring(str2)(...)
  110. end, function(err)
  111. warn(err)
  112. warn(debug.traceback())
  113. end, str, table.unpack(strargs)))
  114. table.remove(res, 1)
  115. return table.unpack(res)
  116. end
  117. end
  118.  
  119. setreadonly(debug, false)
  120. debug.run = debugrun
  121. setreadonly(debug, true)
  122.  
  123. local function launchfile(file, id)
  124. if isfile(file) then
  125. if id then
  126. getgenv()[id] = debug.run(nil, true, readfile(file))
  127. else
  128. debug.run(nil, true, readfile(file))
  129. end
  130. else
  131. warn(string.format("[MeteorApi] unable to load %s as it does not exist or is protected", file))
  132. end
  133. end
  134.  
  135. launchfile("Meteor/Core/ImportServices/import.lua", "import")
  136.  
  137. for i, file in pairs(api.PreLoad) do
  138. import(string.format("%s.lua", file), type(i) == "string" and i or file)
  139. end
  140.  
  141. repeat task.wait() until game:IsLoaded()
  142. getgenv().loadtick = tick()
  143.  
  144. for i, file in pairs(api.PostLoad) do
  145. import(string.format("%s.lua", file), type(i) == "string" and i or file)
  146. end
  147.  
  148. shared.MeteorVersion = "4.22 DEV"
  149.  
  150. local queueteleport = syn and syn.queue_on_teleport or queue_on_teleport or fluxus and fluxus.queue_on_teleport or function() end
  151.  
  152. local function checkloaded()
  153. local suc, res = pcall(function() return lplr and lplr.Character and lplr.Character.Head and lplr.Character.Humanoid and lplr.Character.HumanoidRootPart and true or false end)
  154. if suc then
  155. return res
  156. else
  157. return false
  158. end
  159. end
  160.  
  161. local teleported = false
  162.  
  163. task.spawn(function()
  164. repeat task.wait() until checkloaded()
  165. if shared.queueconnection then
  166. shared.queueconnection:Disconnect()
  167. end
  168. shared.queueconnection = lplr.OnTeleport:Connect(function(State)
  169. if not teleported then
  170. teleported = true
  171. if shared.MeteorGuiLibrary.UninjectFlag then
  172. return
  173. end
  174. local loader = string.format("shared.RedMeteor = %s shared.AutoKickVape = %s shared.StreamerMode = %s loadstring(readfile('Meteor/Loader.lua', 'syn.protect_funcs_from_overwrite'))()", tostring(shared.RedMeteor), tostring(shared.AutoKickVape), tostring(shared.StreamerMode))
  175. queueteleport(loader)
  176. end
  177. end)
  178. end)
  179.  
  180. local customSaves = {
  181. [6872274481] = 6872274481,
  182. [8444591321] = 6872274481,
  183. [8560631822] = 6872274481,
  184. }
  185.  
  186. if customSaves[game.PlaceId] then
  187. shared.CustomSave = customSaves[game.PlaceId]
  188. end
  189.  
  190. local gameApiSaves = {
  191. [6872274481] = "Bedwars",
  192. [8444591321] = "Bedwars",
  193. [8560631822] = "Bedwars",
  194. }
  195.  
  196. local newgameid = shared.CustomSave or game.PlaceId
  197. if gameapi[newgameid] then
  198. for i, file in pairs(gameapi[newgameid]) do
  199. launchfile(string.format("Meteor/Core/GameApi/%s/%s.lua", gameApiSaves[newgameid], file), file)
  200. end
  201. end
  202.  
  203. if shared.RedMeteor then
  204. shared.MeteorGuiLibrary = debug.run(nil, true, readfile("Meteor/Core/GuiLibrary/RedGuiLibrary.lua"))
  205. else
  206. shared.MeteorGuiLibrary = debug.run(nil, true, readfile("Meteor/Core/GuiLibrary/GuiLibrary.lua"))
  207. end
  208.  
  209. local suc, err = pcall(function() return launchfile(string.format("Meteor/Core/GameScripts/%s.lua", newgameid)) end)
  210.  
  211. shared.MeteorLaunched = suc
  212. shared.LaunchError = nil
  213. if not suc then
  214. shared.LaunchError = err
  215. end
  216.  
  217. local ScriptIds = {
  218. [6872274481] = "Bedwars",
  219. [8444591321] = "Bedwars",
  220. [8560631822] = "Bedwars",
  221. }
  222.  
  223. local newgameid = shared.CustomSave or game.PlaceId
  224. local path = string.format("Meteor/Core/Scripts/%s", ScriptIds[newgameid] or newgameid)
  225. if isfolder(path) then
  226. for i, file in pairs(listfiles(path)) do
  227. local function func()
  228. debug.run(nil, true, readfile(file))
  229. end
  230. setfenv(func, scriptapienv or getfenv())
  231. func()
  232. end
  233. end
  234.  
  235. if suc then
  236. shared.MeteorGuiLibrary.FinishLoading()
  237. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement