-- [[ Rscripts Risk Notice ]]
-- This script is not verified by rscripts.net. Deal with caution.
--
-- Stay safe:
-- • Never log in on unofficial Roblox sites or lookalike domains.
-- • Real Roblox links use roblox.com (check the .com ending).
-- • Treat fake Roblox login / "claim reward" pages as phishing.
-- [[ End Rscripts Risk Notice ]]
--[[
made by miao
Remember: This script does not provide any information about vulnerabilities or other such features. Even if you want to use 'cheat'/'hack', please do it on a private server
记住:该脚本不提供任意关于漏洞等功能,哪怕你想要使用'cheat'/'hack'也请去私人服务器
]]
if game.PlaceId == 122675988530857 then
wait(15)
local P = 122675988530857
local RJ = true
if not getgc or not hookfunction then return end
local hs = game:GetService("HttpService")
local lp = game:GetService("Players").LocalPlayer
local function nt(t, s)
pcall(function()
game:GetService("StarterGui"):SetCore("SendNotification", {Title = t, Text = s, Duration = 6})
end)
end
local e
for i = 1, 360 do
for _, v in getgc(true) do
if type(v) == "table"
and rawget(v, "ClientEvents")
and rawget(v, "Library")
and rawget(v, "Settings")
and rawget(v, "Network") then
e = v
break
end
end
if e then break end
task.wait(.5)
end
if not e then return end
local cg = false
local function bs(a)
if type(a) ~= "string" then return false end
return a:find("Instance.new", 1, true)
or a:find("getgenv", 1, true)
or a:find("loadstring", 1, true)
end
local function bj(a)
if a == nil then return false end
if bs(a) then return true end
local o, d = pcall(hs.JSONDecode, hs, a)
return not o or typeof(d) ~= "table"
end
local function cl()
local h = false
local a = lp:GetAttribute("EmotePresets")
if bj(a) then lp:SetAttribute("EmotePresets", nil) h = true end
local m = lp:GetAttribute("MobileLayout")
if bj(m) then lp:SetAttribute("MobileLayout", nil) h = true end
local u = lp:GetAttribute("UserSettings")
if bj(u) then lp:SetAttribute("UserSettings", nil) h = true end
if h then cg = true end
return h
end
cl()
lp:GetAttributeChangedSignal("EmotePresets"):Connect(cl)
lp:GetAttributeChangedSignal("MobileLayout"):Connect(cl)
lp:GetAttributeChangedSignal("UserSettings"):Connect(cl)
task.spawn(function()
local t = os.clock() + 120
while os.clock() < t do cl() task.wait(.01) end
end)
local sz = false
local function sn(f)
if sz and not f then return end
if not (cg or f) then return end
sz = true
local a = lp:GetAttribute("EmotePresets")
local o, d = pcall(hs.JSONDecode, hs, a or "")
local se = (o and type(d) == "table" and #d == 4) and d or {"", "", "", ""}
pcall(e.Network.FireServer, e.Network, "SE", se)
local m = lp:GetAttribute("MobileLayout")
local om, dm = pcall(hs.JSONDecode, hs, m or "")
local sml = (om and type(dm) == "table") and m or "[]"
pcall(e.Network.FireServer, e.Network, "SML", sml)
if e.ClientOptions then
local o2, j = pcall(hs.JSONEncode, hs, e.ClientOptions)
if o2 then pcall(e.Network.FireServer, e.Network, "SS", j) end
end
end
task.spawn(function() task.wait(3) sn(false) end)
local function dh()
if not (e.ActiveDoors and e.ActiveDoors.DoorObjects) then return 0 end
local n = 0
for _, c in pairs(e.ActiveDoors.DoorObjects) do
local f = rawget(c, "new")
if type(f) == "function" and not (isfunctionhooked and isfunctionhooked(f)) then
local o
o = hookfunction(f, function(m, ...)
if typeof(m) == "Instance"
and m:IsA("Model")
and m.PrimaryPart == nil
and m:FindFirstChild("PhysicsDoor") == nil then
return nil
end
return o(m, ...)
end)
n += 1
end
end
return n
end
if dh() == 0 then
task.spawn(function()
local t = os.clock() + 180
while os.clock() < t do
task.wait(2)
if dh() > 0 then break end
end
end)
end
local q = {}
local function gt(fn)
table.insert(q, fn)
if getgenv().__ufhook then return end
getgenv().__ufhook = true
local o
o = hookfunction(e.FriendFunctions.CheckFriends, function(...)
if #q > 0 then
local j = q
q = {}
task.spawn(function()
for _, f in ipairs(j) do pcall(f) end
pcall(restorefunction, e.FriendFunctions.CheckFriends)
getgenv().__ufhook = nil
end)
end
return o(...)
end)
end
local function ld()
if lp:GetAttribute("InLoadout") ~= true then return false end
if lp:GetAttribute("IntroDone") == true then return false end
local sm = lp.PlayerGui:FindFirstChild("SecondaryMenu")
if sm and sm:FindFirstChild("Elements") and sm.Elements:FindFirstChild("PlayBtn") then
return false
end
local pm = lp.PlayerGui:FindFirstChild("PreloadMenu")
if pm and pm:FindFirstChild("Main") and pm.Main.Visible then
return false
end
return true
end
local rj = false
pcall(function()
local td = game:GetService("TeleportService"):GetLocalPlayerTeleportData()
if type(td) == "table" and td.__ufrejoin == true then rj = true end
end)
task.spawn(function()
local t = os.clock() + 30
while os.clock() < t do task.wait(1) end
if not ld() then return end
sn(true)
task.wait(2)
if RJ and not rj then
nt("done", "wait 5s")
task.wait(5)
local ok = pcall(function()
local o = Instance.new("TeleportOptions")
pcall(function() o:SetTeleportData({__ufrejoin = true}) end)
game:GetService("TeleportService"):Teleport(P, lp, nil, o)
end)
if not ok then nt("oh no", "Rejoin pls") end
else
nt("done", "now Rejoin")
end
end)
local function fi()
local sk = e.CoreUI
if sk == nil or sk.ActiveIcons == nil then return end
if sk.ActiveIcons.BackpackIcon == nil then
sk.ActiveIcons.BackpackIcon = e.IconController.new()
local u7 = sk.ActiveIcons.BackpackIcon:setImage(6494704075):setRight():setCaption("Backpack (Current/Max)")
local inv = lp.PlayerGui:WaitForChild("RobloxGui"):WaitForChild("Backpack"):WaitForChild("Inventory")
inv.Changed:Connect(function()
if inv.Visible == false then u7:deselect() return end
if inv.Visible == true then u7:select() end
end)
u7.toggled:Connect(function(s)
if s == true and inv.Visible == false then e.InternalEvents.ToggleBackpack:Fire() return end
if s == false and inv.Visible == true then e.InternalEvents.ToggleBackpack:Fire() end
end)
local rf = false
function sk.BackpackChanged(a, b)
if a then
local s = (b == nil or (b == (1/0) or b <= -1)) and "INF" or tostring(b)
local col = Color3.fromRGB(255, 255, 255)
if s ~= "INF" and (b ~= nil and typeof(b) == "number") then
local r = a / b
if r >= 1 then
col = Color3.fromRGB(255, 54, 28)
elseif r >= .8 then
col = Color3.fromRGB(255, 129, 3)
end
end
u7:setLabel(`{string.format("%s/%s", a, s)}`, "Deselected")
u7:setLabel(`{string.format("%s/%s", a, s)}`, "Selected")
end
end
function sk.SetIconEnabled(p)
if e.Settings.IntroMenuActive == true then
repeat task.wait() until e.Settings.IntroMenuActive == false
end
if p.Icon ~= nil and p.Icon == "Radio" then
if p.B == true then
rf = true
sk.ActiveIcons.RadioIcon:setEnabled(true)
return
end
rf = false
sk.ActiveIcons.RadioIcon:setEnabled(false)
end
end
function sk.Start()
sk.ActiveIcons.DropdownMenuIcon:setEnabled(true)
sk.ActiveIcons.DropdownMenuIcon:refresh()
u7:setEnabled(true)
lp.PlayerGui.PlayerList.Enabled = true
sk.ActiveIcons.PlayerListIcon:setEnabled(true)
if rf then sk.ActiveIcons.RadioIcon:setEnabled(true) end
end
function sk.Stop()
sk.ActiveIcons.DropdownMenuIcon:setEnabled(false)
u7:setEnabled(false)
sk.ActiveIcons.RadioIcon:setEnabled(false)
sk.ActiveIcons.PlayerListIcon:setEnabled(false)
sk.ToggleEmotesGui(false)
end
end
if sk.Stop == nil then function sk.Stop() end end
if sk.Start == nil then function sk.Start() end end
if sk.BackpackChanged == nil then function sk.BackpackChanged() end end
if sk.SetIconEnabled == nil then function sk.SetIconEnabled() end end
sk.ActiveIcons.RadioIcon:setOrder(1)
sk.ActiveIcons.DropdownMenuIcon:setOrder(3)
sk.ActiveIcons.BackpackIcon:setOrder(11)
sk.ActiveIcons.PlayerListIcon:setOrder(12)
sk.CameraEffects.OptionsBlur.Enabled = false
sk.CameraEffects.OptionsBlur.Size = 0
if lp:GetAttribute("InLoadout") == false and e.Settings.InLoadoutScreen ~= true then
pcall(function()
sk.ActiveIcons.DropdownMenuIcon:setEnabled(true)
sk.ActiveIcons.BackpackIcon:setEnabled(true)
sk.ActiveIcons.PlayerListIcon:setEnabled(true)
end)
else
sk.ActiveIcons.DropdownMenuIcon:setEnabled(false)
sk.ActiveIcons.BackpackIcon:setEnabled(false)
end
lp.CharacterAdded:Connect(function()
if sk.ActiveIcons.SpreeIcon then sk.ActiveIcons.SpreeIcon:setEnabled(false) end
if sk.CameraEffects.LowHealthColor == nil then
sk.CameraEffects.LowHealthColor = Instance.new("ColorCorrectionEffect", workspace.CurrentCamera)
end
sk.CameraEffects.LowHealthColor.Saturation = 0
end)
end
local fd = false
local function pg()
if e.Settings.IntroMenuActive ~= false then return end
if e.CoreUI == nil or type(e.CoreUI.LoadLoadoutUI) ~= "function" then return end
if lp:GetAttribute("InLoadout") == false then
local su = lp.PlayerGui:FindFirstChild("StatsUI", true)
if su and su.Visible then return end
end
local mn = lp.PlayerGui:FindFirstChild("PreloadMenu")
local ms = mn and mn:FindFirstChild("Main") and mn.Main.Visible
local pb = ms and mn.Main:FindFirstChild("PlayBtn") or nil
local hh = false
if pb and getconnections then
local o, c = pcall(getconnections, pb.Activated)
hh = o and type(c) == "table" and #c > 0
end
if (not hh) or lp:GetAttribute("InLoadout") == false then
if not fd and e.Settings.InLoadoutScreen ~= true then
fd = true
local lm = lp.PlayerGui:FindFirstChild("LoadoutMenu")
local sb = lm and lm:FindFirstChild("LeftSidePanel") and lm.LeftSidePanel:FindFirstChild("SpawnBtn")
if sb and getconnections then
local oc, cs = pcall(getconnections, sb.Activated)
if oc and cs and cs[1] and cs[1].Function then
for i = 1, 4 do
local ov, v = pcall(debug.getupvalue, cs[1].Function, i)
if not ov then break end
if v == true then pcall(debug.setupvalue, cs[1].Function, i, false) end
end
end
end
if lp:GetAttribute("InLoadout") == false then
pcall(e.CoreUI.LoadLoadoutUI, false)
else
pcall(e.CoreUI.LoadLoadoutUI, true)
end
end
if ms then mn:Destroy() end
end
end
gt(function()
if e.CoreUI == nil then
local sk
local t = os.clock() + 120
while sk == nil and os.clock() < t do
for _, v in getgc(true) do
if type(v) == "table"
and rawget(v, "Systems")
and rawget(v, "MainGuis")
and rawget(v, "CameraEffects")
and rawget(v, "GetGui")
and rawget(v, "Leaderstats")
and rawget(v.Systems, "Backpack")
and rawget(v.Systems, "ShopSystem") then
sk = v
break
end
end
if sk == nil then task.wait(1) end
end
if sk then
local cm = game.ReplicatedFirst.CoreClient.Core.Functions.Client.CoreUI
for _, c in ipairs(cm:GetChildren()) do
local n = c.Name
if n ~= "RadioSystem" and sk.Systems[n] == nil then
local o1, f = pcall(require, c)
if o1 then
local o2, r = pcall(f, e, sk)
if o2 then
if c:GetAttribute("Merge") == true then
for i, v in pairs(r) do sk[i] = v end
else
sk.Systems[n] = r
end
end
end
end
end
if sk.ToggleEmotesGui == nil then function sk.ToggleEmotesGui() end end
e.CoreUI = sk
local cs = e.PlayerObj and e.PlayerObj.ComponentSetup
if cs then
local ni, mu = nil, false
for i = 1, 16 do
local o, v = pcall(debug.getupvalue, cs, i)
if not o then break end
if v == nil then
if ni ~= nil then
mu = true
break
end
ni = i
end
end
if type(ni) == "number" and not mu then pcall(debug.setupvalue, cs, ni, sk) end
end
local g = game.ReplicatedFirst.CoreClient.Core.Functions["Gear Handling"].GenerateLocalToolObject
if e.GenerateLocalToolObject == nil then
local o1, f = pcall(require, g)
if o1 then
local o2, r = pcall(f, e)
if o2 then e.GenerateLocalToolObject = r end
end
end
local te = game.ReplicatedFirst.CoreClient.Core.Engines.TransfurEngineClient
if e.TransfurEngineClient == nil then
local o1, f = pcall(require, te)
if o1 then
local o2, r = pcall(f, e)
if o2 then e.TransfurEngineClient = r end
end
end
if e.MobileUI then
local m = e.MobileUI
local i = m.init or m.__init or m._init or m.initialize or m.Initialize or m.Init
if type(i) == "function" then pcall(i) end
end
dh()
end
end
fi()
local t = os.clock() + 180
local dn = false
while os.clock() < t and not dn do
pg()
local su = lp.PlayerGui:FindFirstChild("StatsUI", true)
local ho = su and su.Visible
local il = e.Settings.InLoadoutScreen == true
local mn = lp.PlayerGui:FindFirstChild("PreloadMenu")
local ms = mn and mn:FindFirstChild("Main") and mn.Main.Visible
if ho then
dn = true
elseif il and lp:GetAttribute("InLoadout") == false and not ms then
dn = true
end
task.wait(1)
end
end)
end