-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloader.lua
More file actions
76 lines (65 loc) · 2.42 KB
/
Copy pathloader.lua
File metadata and controls
76 lines (65 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
local BASE = "https://raw.githubusercontent.com/Companion/Scripts/refs/heads/main/"
local loader = "https://raw.githubusercontent.com/Companion/owenn/refs/heads/main/loader.lua"
local registry = {
place = {
[111835260646713] = "generic-blood-ragdoll-fighting.lua",
[103854444055060] = "silent-assassins.lua",
[7871169780] = "bLockerman's-Minesweeper.lua",
[5244411056] = "bloxy-bingo.lua",
[108843562394237] = "monkey-tag.lua",
[101272402522756] = "bbq-battles.lua",
[109509628648368] = "merge-vs-mobs.lua",
[73814003954154] = "pickaxe-tycoon.lua",
[93794424681636] = "my-baddie-restaurant.lua",
[90568084448279] = "one-tap.lua",
[93833944515093] = "between-colors.lua",
[93404836354142] = "phonk-clicker.lua",
[112490729816320] = "spin-a-soccer-card.lua",
[18667984660] = "FLEX-Fps.lua",
},
game = {
[9534705677] = "sniper-arena.lua",
[7200297228] = "loot-hero.lua",
[8786713187] = "oil-empire.lua",
[372226183] = "flee-the-facility.lua",
},
}
local file = registry.place[game.PlaceId] or registry.game[game.GameId]
if not file then return end
do
local payload = string.format("loadstring(game:HttpGet(%q))()", loader)
local q = queue_on_teleport
or (syn and syn.queue_on_teleport)
or (fluxus and fluxus.queue_on_teleport)
or (krnl and krnl.queue_on_teleport)
or (getgenv and getgenv().queue_on_teleport)
if type(q) == "function" then pcall(q, payload) end
end
local owenn = loadstring(game:HttpGet("https://raw.githubusercontent.com/Companion/owenn/refs/heads/main/owennui.lua"))()
local ui = owenn:window("Loader", 380, 220, {
keys = { "owennwtf" },
discord = "https://discord.gg/owen",
skipLoader = true,
})
ui.hide()
ui.toast(("Loading %s..."):format(file), 2, "bottom", "info")
local function fetch(url)
local body
local ok, err = pcall(function() body = game:HttpGet(url) end)
if not ok or type(body) ~= "string" then return nil, tostring(err or "request failed") end
if body:sub(1, 4) == "404:" then return nil, "404 (script not on GitHub)" end
return body
end
local body, err = fetch(BASE .. file)
if not body then
warn("[loader] fetch failed:", err)
ui.toast("Loader failed: " .. tostring(err), 4, "bottom", "error")
ui.destroy()
return
end
local runOk, runErr = pcall(function() loadstring(body)() end)
if not runOk then
warn("[loader] script error:", runErr)
ui.toast("Script error: " .. tostring(runErr):sub(1, 80), 5, "bottom", "error")
end
ui.destroy()