-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautoexecsupport.lua
More file actions
25 lines (25 loc) · 1.3 KB
/
Copy pathautoexecsupport.lua
File metadata and controls
25 lines (25 loc) · 1.3 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
-- For Solara V3 and other Executors
-- Please name your autoexecute file after any of the possibleFiles names, and in .txt/.lua/.luau file extensions.
local currentScriptPath = debug.getinfo(1).source:sub(2)
local currentFileName = string.match(currentScriptPath, "([^/\\]+)$")
local currentDirectory = string.match(currentScriptPath, "(.*[\\/])")
local possibleFiles = {"iyautoload", "iy", "infinite yield", "infiniteyield", "infyield", "iyr", "infinite-yield"}
local function isInAutoExecFile(fileName)
for _, fileNameWithoutExt in ipairs(possibleFiles) do
if fileName:lower() == fileNameWithoutExt:lower() .. ".lua" or
fileName:lower() == fileNameWithoutExt:lower() .. ".luau" or
fileName:lower() == fileNameWithoutExt:lower() .. ".txt" then
return true
end
end
return false
end
local function isInAutoExecFolder(directory)
return string.find(directory:lower(), "autoexec") or string.find(directory:lower(), "autoexecute")
end
if isInAutoExecFile(currentFileName) and isInAutoExecFolder(currentDirectory) then
wait(3)
loadstring(game:HttpGet('https://raw.githubusercontent.com/753eml/iy_r-m/refs/heads/main/iyrm.lua', true))()
else
loadstring(game:HttpGet('https://raw.githubusercontent.com/753eml/iy_r-m/refs/heads/main/iyrm.lua', true))()
end