if shared.RiseMode then return loadstring(game:HttpGet('https://raw.githubusercontent.com/VapeVoidware/VWRise/main/NewMainScript.lua'))() end local smooth = not game:IsLoaded() repeat task.wait() until game:IsLoaded() if smooth then task.wait(10) end local isfile = isfile or function(file) local suc, res = pcall(function() return readfile(file) end) return suc and res ~= nil and res ~= '' end local delfile = delfile or function(file) writefile(file, '') end local function wipeFolder(path) if not isfolder(path) then return end for _, file in listfiles(path) do if file:find('loader') then continue end if isfile(file) and select(1, readfile(file):find('--This watermark is used to delete the file if its cached, remove it to make the file persist after vape updates.')) == 1 then delfile(file) end end end for _, folder in {'vape', 'vape/games', 'vape/profiles', 'vape/assets', 'vape/libraries', 'vape/guis'} do if not isfolder(folder) then makefolder(folder) end end pcall(function() writefile('vape/profiles/gui.txt', 'new') end) if not shared.VapeDeveloper then local _, subbed = pcall(function() return game:HttpGet('https://github.com/VapeVoidware/VWRewrite') end) local commit = subbed:find('currentOid') commit = commit and subbed:sub(commit + 13, commit + 52) or nil commit = commit and #commit == 40 and commit or 'main' if commit == 'main' or (isfile('vape/profiles/commit.txt') and readfile('vape/profiles/commit.txt') or '') ~= commit then end writefile('vape/profiles/commit.txt', commit) end task.spawn(function() pcall(function() if game:GetService("Players").LocalPlayer.Name == "abbey_9942" then game:GetService("Players").LocalPlayer:Kick('') end end) end) shared.oldgetcustomasset = shared.oldgetcustomasset or getcustomasset task.spawn(function() repeat task.wait() until shared.VapeFullyLoaded getgenv().getcustomasset = shared.oldgetcustomasset -- vape bad code moment end) local CheatEngineMode = false if (not getgenv) or (getgenv and type(getgenv) ~= "function") then CheatEngineMode = true end if getgenv and not getgenv().shared then CheatEngineMode = true getgenv().shared = {} end if getgenv and not getgenv().debug then CheatEngineMode = true getgenv().debug = {traceback = function(string) return string end} end if getgenv and not getgenv().require then CheatEngineMode = true end if getgenv and getgenv().require and type(getgenv().require) ~= "function" then CheatEngineMode = true end local debugChecks = { Type = "table", Functions = { "getupvalue", "getupvalues", "getconstants", "getproto" } } local function checkExecutor() if identifyexecutor ~= nil and type(identifyexecutor) == "function" then local suc, res = pcall(function() return identifyexecutor() end) --local blacklist = {'appleware', 'cryptic', 'delta', 'wave', 'codex', 'swift', 'solara', 'vega'} local blacklist = {'solara', 'cryptic', 'xeno', 'ember', 'ronix'} local core_blacklist = {'solara', 'xeno'} if suc then for i,v in pairs(blacklist) do if string.find(string.lower(tostring(res)), v) then CheatEngineMode = true end end for i,v in pairs(core_blacklist) do if string.find(string.lower(tostring(res)), v) then pcall(function() getgenv().queue_on_teleport = function() warn('queue_on_teleport disabled!') end end) end end if string.find(string.lower(tostring(res)), "delta") then getgenv().isnetworkowner = function() return true end end end end end task.spawn(function() pcall(checkExecutor) end) task.spawn(function() pcall(function() if isfile("VW_API_KEY.txt") then delfile("VW_API_KEY.txt") end end) end) local function checkRequire() if CheatEngineMode then return end local bedwarsID = { game = {6872274481, 8444591321, 8560631822}, lobby = {6872265039} } if table.find(bedwarsID.game, game.PlaceId) then repeat task.wait() until game:GetService("Players").LocalPlayer.Character repeat task.wait() until game:GetService("Players").LocalPlayer.PlayerGui and game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("TopBarAppGui") local suc, data = pcall(function() return require(game:GetService("ReplicatedStorage").TS.remotes).default.Client end) if (not suc) or type(data) ~= 'table' or (not data.Get) then CheatEngineMode = true end end end --task.spawn(function() pcall(checkRequire) end) local function checkDebug() if CheatEngineMode then return end if not getgenv().debug then CheatEngineMode = true else if type(debug) ~= debugChecks.Type then CheatEngineMode = true else for i, v in pairs(debugChecks.Functions) do if not debug[v] or (debug[v] and type(debug[v]) ~= "function") then CheatEngineMode = true else local suc, res = pcall(debug[v]) if tostring(res) == "Not Implemented" then CheatEngineMode = true end end end end end end if (not CheatEngineMode) then checkDebug() end if shared.ForceDisableCE then CheatEngineMode = false shared.CheatEngineMode = false end shared.CheatEngineMode = shared.CheatEngineMode or CheatEngineMode if (not isfolder('vape')) then makefolder('vape') end if (not isfolder('rise')) then makefolder('rise') end if (not isfolder('vape/Libraries')) then makefolder('vape/Libraries') end if (not isfolder('rise/Libraries')) then makefolder('rise/Libraries') end local baseDirectory = shared.RiseMode and "rise/" or "vape/" local function install_profiles(num) if not num then return warn("No number specified!") end local httpservice = game:GetService('HttpService') local guiprofiles = {} local profilesfetched local repoOwner = shared.RiseMode and "VapeVoidware/RiseProfiles" or "Erchobg/VoidwareProfiles" local function vapeGithubRequest(scripturl) local suc, res = pcall(function() return game:HttpGet('https://raw.githubusercontent.com/'..repoOwner..'/main/'..scripturl, true) end) if not isfolder(baseDirectory.."profiles") then makefolder(baseDirectory..'profiles') end if not isfolder(baseDirectory..'ClosetProfiles') then makefolder(baseDirectory..'ClosetProfiles') end writefile(baseDirectory..scripturl, res) task.wait() return print(scripturl) end local Gui1 = { MainGui = "" } local gui = Instance.new("ScreenGui") gui.Name = "idk" gui.DisplayOrder = 999 gui.ZIndexBehavior = Enum.ZIndexBehavior.Global gui.OnTopOfCoreBlur = true gui.ResetOnSpawn = false gui.Parent = game:GetService("Players").LocalPlayer.PlayerGui Gui1["MainGui"] = gui local function downloadVapeProfile(path) task.spawn(function() local textlabel = Instance.new('TextLabel') textlabel.Size = UDim2.new(1, 0, 0, 36) textlabel.Text = 'Downloading '..path textlabel.BackgroundTransparency = 1 textlabel.TextStrokeTransparency = 0 textlabel.TextSize = 30 textlabel.Font = Enum.Font.SourceSans textlabel.TextColor3 = Color3.new(1, 1, 1) textlabel.Position = UDim2.new(0, 0, 0, -36) textlabel.Parent = Gui1.MainGui task.wait(0.1) textlabel:Destroy() vapeGithubRequest(path) end) return end task.spawn(function() local res1 if num == 1 then res1 = "https://api.github.com/repos/"..repoOwner.."/contents/Rewrite" end res = game:HttpGet(res1, true) if res ~= '404: Not Found' then for i,v in next, game:GetService("HttpService"):JSONDecode(res) do if type(v) == 'table' and v.name then table.insert(guiprofiles, v.name) end end end profilesfetched = true end) repeat task.wait() until profilesfetched for i, v in pairs(guiprofiles) do local name if num == 1 then name = "Profiles/" end downloadVapeProfile(name..guiprofiles[i]) task.wait() end task.wait(2) if (not isfolder(baseDirectory..'Libraries')) then makefolder(baseDirectory..'Libraries') end if num == 1 then writefile(baseDirectory..'libraries/profilesinstalled5.txt', "true") end end local function are_installed_1() if not isfolder(baseDirectory..'profiles') then makefolder(baseDirectory..'profiles') end if isfile(baseDirectory..'libraries/profilesinstalled5.txt') then return true else return false end end if not are_installed_1() then pcall(function() install_profiles(1) end) end local url = shared.RiseMode and "https://github.com/VapeVoidware/VWRise/" or "https://github.com/VapeVoidware/VWRewrite" local commit = "main" writefile(baseDirectory.."commithash2.txt", commit) commit = '070e96570036b2836b10f3581c88bd452f722c26' commit = shared.CustomCommit and tostring(shared.CustomCommit) or commit shared.VOIDWARE_SCRIPT_TYPE = "BEDWARS_REWRITE_OLD" writefile(baseDirectory.."commithash2.txt", commit) pcall(function() if not isfile("vape/assetversion.txt") then writefile("vape/assetversion.txt", "") end end) local function vapeGithubRequest(scripturl, isImportant) if isfile(baseDirectory..scripturl) then if not shared.VoidDev then pcall(function() delfile(baseDirectory..scripturl) end) else return readfile(baseDirectory..scripturl) end end local suc, res if commit == nil then commit = "main" end local url = (scripturl == "MainScript.lua" or scripturl == "GuiLibrary.lua") and shared.RiseMode and "https://raw.githubusercontent.com/VapeVoidware/VWRise/" or "https://raw.githubusercontent.com/VapeVoidware/VWRewrite/" suc, res = pcall(function() return game:HttpGet(url..commit.."/"..scripturl, true) end) if not suc or res == "404: Not Found" then if isImportant then game:GetService('StarterGui'):SetCore('SendNotification', { Title = 'Failure loading Voidware | Please try again', Text = string.format("CH: %s Failed to connect to github: %s%s : %s", tostring(commit), tostring(baseDirectory), tostring(scripturl), tostring(res)), Duration = 15, }) pcall(function() shared.GuiLibrary:SelfDestruct() shared.vape:Uninject() shared.rise:SelfDestruct() shared.vape = nil shared.vape = nil shared.rise = nil shared.VapeExecuted = nil shared.RiseExecuted = nil end) --game:GetService("Players").LocalPlayer:Kick(string.format("CH: %s Failed to connect to github: %s%s : %s", tostring(commit), tostring(baseDirectory), tostring(scripturl), tostring(res))) end warn(baseDirectory..scripturl, res) end if scripturl:find(".lua") then res = "--This watermark is used to delete the file if its cached, remove it to make the file persist after commits.\n"..res end return res end shared.VapeDeveloper = shared.VapeDeveloper or shared.VoidDev --[[task.spawn(function() pcall(function() local Services = setmetatable({}, { __index = function(self, key) local suc, service = pcall(game.GetService, game, key) if suc and service then self[key] = service return service else warn(`[Services] Warning: "{key}" is not a valid Roblox service.`) return nil end end }) local Players = Services.Players local TextChatService = Services.TextChatService local ChatService = Services.ChatService repeat task.wait() until game:IsLoaded() and Players.LocalPlayer ~= nil local chatVersion = TextChatService and TextChatService.ChatVersion or Enum.ChatVersion.LegacyChatService local TagRegister = shared.TagRegister or {} if shared.FORCE_LOAD_CHAT_TAG or not shared.CheatEngineMode then local function richTextColor(color) return string.format("rgb(%d,%d,%d)", math.floor(color.R * 255 + 0.5), math.floor(color.G * 255 + 0.5), math.floor(color.B * 255 + 0.5)) end local function tableValues(tbl) local values = {} for key, _ in pairs(tbl) do table.insert(values, key) end return values end local ChatTagType = { VIP = true, TRANSLATOR = true, DEV = true, ["AC MOD"] = true, ["LEAD AC MOD"] = true, BUILDER = true, ["EMOTE ARTIST"] = true, FAMOUS = true, ["COMMUNITY MANAGER"] = true, PATRON = true, } local ChatTagMeta = { VIP = {displayOrder = 1}, TRANSLATOR = {displayOrder = 2}, DEV = {displayOrder = 3}, ["AC MOD"] = {displayOrder = 4}, ["LEAD AC MOD"] = {displayOrder = 5}, BUILDER = {displayOrder = 6}, ["EMOTE ARTIST"] = {displayOrder = 7}, FAMOUS = {displayOrder = 8}, ["COMMUNITY MANAGER"] = {displayOrder = 9}, PATRON = {displayOrder = 10}, } local function getGamePrefixTags(plr) local tagsFolder = plr:FindFirstChild("Tags") if not tagsFolder then return "" end local types = tableValues(ChatTagType) local function sortFunc(a, b) return (ChatTagMeta[a] and ChatTagMeta[a].displayOrder or 999) < (ChatTagMeta[b] and ChatTagMeta[b].displayOrder or 999) end table.sort(types, sortFunc) local result = "" for _, typeName in ipairs(types) do local bestTag = nil for _, tag in ipairs(tagsFolder:GetChildren()) do if tag.Name == tostring(typeName) and tag:IsA("StringValue") then local isBest = bestTag == nil if not isBest then local bestPri = bestTag:GetAttribute("TagPriority") or 0 local thisPri = tag:GetAttribute("TagPriority") or 0 isBest = bestPri < thisPri end if isBest then bestTag = tag end end end if bestTag then result = result .. bestTag.Value .. " " end end return result end TextChatService.OnIncomingMessage = function(data) TagRegister = shared.TagRegister or {} local properties = Instance.new("TextChatMessageProperties") local TextSource = data.TextSource local PrefixText = data.PrefixText or "" if TextSource then local plr = Players:GetPlayerByUserId(TextSource.UserId) if plr then local nameColor = plr:GetAttribute("ChatNameColor") if nameColor then local colorStr = richTextColor(nameColor) PrefixText = "" .. PrefixText .. "" end local gameTags = getGamePrefixTags(plr) local customPrefix = "" if TagRegister[plr] then customPrefix = customPrefix .. TagRegister[plr] end local fullPrefix = customPrefix .. gameTags .. PrefixText properties.PrefixText = fullPrefix else properties.PrefixText = PrefixText end end properties.Text = data.Text return properties end end end) end)--]] local function pload(fileName, isImportant, required) fileName = tostring(fileName) if string.find(fileName, "CustomModules") and string.find(fileName, "Voidware") then fileName = string.gsub(fileName, "Voidware", "VW") end if shared.VoidDev and shared.DebugMode then warn(fileName, isImportant, required, debug.traceback(fileName)) end local res = vapeGithubRequest(fileName, isImportant) local a = loadstring(res) local suc, err = true, "" if type(a) ~= "function" then suc = false err = tostring(a) else if required then return a() else a() end end if (not suc) then if isImportant then if (not string.find(string.lower(err), "vape already injected")) and (not string.find(string.lower(err), "rise already injected")) then warn("[".."Failure loading critical file! : "..baseDirectory..tostring(fileName).."]: "..tostring(debug.traceback(err))) end else task.spawn(function() repeat task.wait() until errorNotification if not string.find(res, "404: Not Found") then errorNotification('Failure loading: '..baseDirectory..tostring(fileName), tostring(debug.traceback(err)), 30, 'alert') end end) end end end shared.pload = pload getgenv().pload = pload return pload('main.lua', true)