--[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6a2f898e4c32826c8aa87411"))() end) end) --[[rscripts:analytics:end]] local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local LP = game:GetService("Players").LocalPlayer local RS = game:GetService("ReplicatedStorage") local VirtualUser = game:GetService("VirtualUser") LP.Idled:Connect(function() VirtualUser:Button2Down(Vector2.new(0, 0), workspace.CurrentCamera.CFrame) task.wait(1) VirtualUser:Button2Up(Vector2.new(0, 0), workspace.CurrentCamera.CFrame) end) local Window = Rayfield:CreateWindow({ Name = "Anime RNG - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Anime RNG", FileName = "Config" }, KeySystem = false, }) _G.__ANIMERNG_GEN = (_G.__ANIMERNG_GEN or 0) + 1 local MY_GEN = _G.__ANIMERNG_GEN local function alive() return _G.__ANIMERNG_GEN == MY_GEN end local Packets = require(RS.Remotes.Packets) local function fire(name, ...) local p = Packets[name] if not p then return end pcall(function(...) p:Fire(...) end, ...) end local ABBREV = { "", "K", "M", "B", "T", "Qa", "Qi", "Sx", "Sp", "Oc", "No", "Dc" } local function abbrev(n) n = tonumber(n) or 0 local sign = n < 0 and "-" or "" n = math.abs(n) if n < 1000 then if n == math.floor(n) then return sign .. tostring(math.floor(n)) end return sign .. (string.format("%.2f", n):gsub("%.?0+$", "")) end local i = 1 while n >= 1000 and i < #ABBREV do n = n / 1000; i = i + 1 end return sign .. (string.format("%.2f", n):gsub("%.?0+$", "")) .. ABBREV[i] end local StateController = require(LP.PlayerScripts.Controllers.StateController) local function findProfileUpvalue() if type(getupvalues) ~= "function" then return nil end local ok, ups = pcall(getupvalues, StateController.OnStart) if not ok then return nil end for _, uv in pairs(ups) do if type(uv) == "table" and uv.Units and uv.Equipped and uv.Settings then return uv end end return nil end local LIVE = findProfileUpvalue() pcall(function() StateController.ProfileUpdated:Connect(function(profile) if type(profile) == "table" then LIVE = profile end end) end) if not LIVE then task.spawn(function() for _ = 1, 40 do if not alive() then return end LIVE = findProfileUpvalue() if LIVE then return end task.wait(0.25) end end) end local function prof() return LIVE end local Bridge = Instance.new("BindableEvent") local nextBridgeId, bridgeJobs = 0, {} Bridge.Event:Connect(function(id) local fn = bridgeJobs[id]; bridgeJobs[id] = nil if fn then fn() end end) local function deferred(fn) return function(...) local args = table.pack(...) nextBridgeId = nextBridgeId + 1 local id = nextBridgeId bridgeJobs[id] = function() fn(table.unpack(args, 1, args.n)) end Bridge:Fire(id) end end local profileWatchers = {} local function onProfile(fn) profileWatchers[#profileWatchers + 1] = fn end local UI_REFRESH = 0.5 local profileDirty = true pcall(function() StateController.ProfileUpdated:Connect(function() profileDirty = true end) end) local runWatchers = deferred(function() for _, fn in ipairs(profileWatchers) do pcall(fn) end end) task.spawn(function() while alive() do if profileDirty then profileDirty = false runWatchers() end task.wait(UI_REFRESH) end end) local RebirthUtils = require(RS.Config.Data).RebirthUtils local SkillTree = require(RS.Config.Data.SkillTree) local ZonesApi = require(RS.Config.Data.Zones) -- API: GetAll(), Get(n) local CodesData = require(RS.Config.Data.Codes) local AutoRoll = { enabled = false, interval = 0.4 } task.spawn(function() while alive() do if AutoRoll.enabled then fire("RollRequest") task.wait(AutoRoll.interval) else task.wait(0.5) -- idle backoff: don't wake at the tight roll rate when off end end end) local AutoEquipBest = { enabled = false } local lastEquipBest = 0 onProfile(function() if not AutoEquipBest.enabled then return end local now = os.clock() if now - lastEquipBest < 1 then return end lastEquipBest = now fire("RequestEquipBest") end) local function ownedUnits() local list = {} local units = prof() and prof().Units or {} for id, count in pairs(units) do list[#list + 1] = { id = id, count = count } end table.sort(list, function(a, b) if a.count ~= b.count then return a.count > b.count end return a.id < b.id end) return list end local function rebirthCost() return RebirthUtils.GetCost((prof() and prof().Rebirths) or 0) end local function canRebirth() local d = prof(); if not d then return false end return RebirthUtils.CanAfford(d.Rebirths or 0, d.VoidShards or 0) end local function tryRebirth() if not canRebirth() then return false end fire("RequestRebirth") return true end local AutoRebirth = { enabled = false, cooldown = 60 } task.spawn(function() while alive() do if AutoRebirth.enabled then pcall(tryRebirth) end task.wait(AutoRebirth.cooldown) end end) local function zonePosition(n) local map = workspace:FindFirstChild("Map") local zf = map and map:FindFirstChild("Zones") local z = zf and zf:FindFirstChild(tostring(n)) if not z then return nil end local ok, piv = pcall(function() return z:GetPivot().Position end) if ok and piv.Magnitude > 0 then return piv end local bp = z:FindFirstChildWhichIsA("BasePart") return bp and bp.Position end local function teleportToZone(n) local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") local pos = zonePosition(n) if pos and hrp then hrp.CFrame = CFrame.new(pos + Vector3.new(0, 5, 0)) * CFrame.Angles(0, math.pi, 0) else fire("RequestTeleport", n) -- server TP for zones without client geometry end end local AutoProgress = { enabled = false, interval = 5 } local function nextZone() local d = prof(); if not d then return nil end local n = (d.MaxZone or 1) + 1 return n, ZonesApi.Get(n) end task.spawn(function() while alive() do if AutoProgress.enabled then local d = prof() if d then local n, nz = nextZone() if nz and (d.Money or 0) >= (nz.Price or math.huge) then fire("RequestPurchaseZone") task.wait(0.6) pcall(teleportToZone, (prof() and prof().MaxZone) or n) end end end task.wait(AutoProgress.interval) end end) local function skillOwned(id) local owned = prof() and prof().OwnedNodes or {} return table.find(owned, id) ~= nil end local function parentReachable(parent) if parent == nil then return true end local pn = SkillTree[parent] if type(pn) ~= "table" or not pn.Cost then return true end -- structural root return skillOwned(parent) end local function skillBalance(node) local d = prof() or {} if node.Currency == "Rolls" then return d.Rolls or 0 end return d.Money or 0 end local function purchasableSkills() local out = {} for id, node in pairs(SkillTree) do if type(node) == "table" and node.Cost and not skillOwned(id) and parentReachable(node.ParentNodeId) then out[#out + 1] = { id = id, node = node, cost = node.Cost } end end table.sort(out, function(a, b) return a.cost < b.cost end) return out end local function tryBuyCheapestSkill() for _, n in ipairs(purchasableSkills()) do if skillBalance(n.node) >= n.cost then fire("RequestPurchaseNode", n.id) return n end end return nil end local AutoUpgrade = { enabled = false, interval = 2 } task.spawn(function() while alive() do if AutoUpgrade.enabled then pcall(tryBuyCheapestSkill) end task.wait(AutoUpgrade.interval) end end) local AutoCollect = { enabled = false, interval = 1.5 } local collecting = false local function collectLootOnce() if collecting then return end collecting = true local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") local vis = workspace:FindFirstChild("Visuals") if not (hrp and vis) then collecting = false; return end local drops = {} for _, m in ipairs(vis:GetChildren()) do if m:IsA("Model") and (m.Name:match("^Item_") or m.Name:match("^Accessory_")) then drops[#drops + 1] = m end end if #drops == 0 then collecting = false; return end local save = hrp.CFrame for _, m in ipairs(drops) do if not alive() then break end if m.Parent then local ok, pos = pcall(function() return m:GetPivot().Position end) if ok then hrp.CFrame = CFrame.new(pos) task.wait(0.15) end end end if hrp.Parent then hrp.CFrame = save end collecting = false end task.spawn(function() while alive() do if AutoCollect.enabled then pcall(collectLootOnce) end task.wait(AutoCollect.interval) end end) local function redeemAllCodes() local d = prof(); if not d then return 0, 0 end local redeemed, total = 0, 0 for code in pairs(CodesData.Codes) do total = total + 1 local ok = CodesData.IsRedeemable(code, d) if ok then fire("RedeemCode", code) redeemed = redeemed + 1 task.wait(0.35) -- space out sends on the shared batched remote end end return redeemed, total end local AutoQuests = { enabled = false, interval = 30 } task.spawn(function() while alive() do if AutoQuests.enabled then fire("RequestClaimAllQuests") end task.wait(AutoQuests.interval) end end) local RollTab = Window:CreateTab("Rolling") RollTab:CreateSection("Status") local MoneyLabel = RollTab:CreateLabel("Money: —") local RollsLabel = RollTab:CreateLabel("Rolls: —") local ShardLabel = RollTab:CreateLabel("Void Shards: —") local function refreshRollStatus() local d = prof(); if not d then return end pcall(function() MoneyLabel:Set(("Money: %s"):format(abbrev(d.Money or 0))) end) pcall(function() RollsLabel:Set(("Rolls: %s (best %s)"):format(abbrev(d.Rolls or 0), abbrev(d.BestRolls or 0))) end) pcall(function() ShardLabel:Set(("Void Shards: %s"):format(abbrev(d.VoidShards or 0))) end) end refreshRollStatus(); onProfile(refreshRollStatus) RollTab:CreateSection("Auto-roll") RollTab:CreateToggle({ Name = "Auto-roll (hidden / fast)", CurrentValue = false, Flag = "AnimeRNG_AutoRoll", Callback = function(v) AutoRoll.enabled = v -- (AutoRoll, HiddenRoll) — hide reveal anim while looping. fire("RequestSetRollSettings", v and true or false, v and true or false) end, }) RollTab:CreateSlider({ Name = "Roll interval (s)", Range = { 0.1, 5 }, Increment = 0.1, Suffix = "s", CurrentValue = AutoRoll.interval, Flag = "AnimeRNG_RollInterval", Callback = function(v) AutoRoll.interval = v end, }) RollTab:CreateButton({ Name = "Roll once", Callback = function() fire("RollRequest") end }) RollTab:CreateSection("Traits") local TraitsData = require(RS.Config.Data.Traits) local traitTarget = nil -- unit to reroll on local stopTrait = nil -- desired trait name to stop at local AutoTrait = { enabled = false, interval = 0.35 } local function unitOptions() local o = {} for _, u in ipairs(ownedUnits()) do o[#o + 1] = ("%s (%s)"):format(u.id, abbrev(u.count)) end return o end local function parseUnit(label) label = type(label) == "table" and label[1] or label if not label then return nil end -- count is abbreviated (may contain letters/dots), so match any "(...)" return tostring(label):match("^(.-) %(.-%)$") or label end -- Trait dropdown options, rarest-first (lowest Chance on top). local function traitOptions() local list = {} for name, d in pairs(TraitsData) do if name ~= "LootBag" and type(d) == "table" and d.Chance then list[#list + 1] = { name = name, chance = d.Chance } end end table.sort(list, function(a, b) return a.chance < b.chance end) local labels = {} for _, e in ipairs(list) do labels[#labels + 1] = ("%s (%.4f%%)"):format(e.name, e.chance * 100) end return labels end local function parseTrait(label) label = type(label) == "table" and label[1] or label if not label then return nil end return tostring(label):match("^(.-) %(") or label end local TraitDropdown TraitDropdown = RollTab:CreateDropdown({ Name = "Reroll trait on unit", Options = unitOptions(), CurrentOption = {}, Flag = "AnimeRNG_TraitTarget", Callback = function(opt) local u = parseUnit(opt); if u then traitTarget = u end end, }) RollTab:CreateDropdown({ Name = "Stop at trait", Options = traitOptions(), CurrentOption = {}, Flag = "AnimeRNG_StopTrait", Callback = function(opt) local t = parseTrait(opt); if t then stopTrait = t end end, }) local lastTrait, resultSeq = nil, 0 pcall(function() Packets.RollTraitResult.OnClientEvent:Connect(function(name) if type(name) == "table" then name = name[1] or name.Name end lastTrait = name resultSeq = resultSeq + 1 end) end) local TraitStatus = RollTab:CreateLabel("Trait: idle") RollTab:CreateButton({ Name = "Roll trait once (on selected)", Callback = function() if traitTarget then fire("RollTrait", traitTarget) end end, }) RollTab:CreateToggle({ Name = "Auto-reroll until target trait", CurrentValue = false, Flag = "AnimeRNG_AutoTrait", Callback = function(v) AutoTrait.enabled = v end, }) RollTab:CreateSlider({ Name = "Trait reroll interval (s)", Range = { 0.2, 3 }, Increment = 0.05, Suffix = "s", CurrentValue = AutoTrait.interval, Flag = "AnimeRNG_TraitInterval", Callback = function(v) AutoTrait.interval = v end, }) task.spawn(function() while alive() do if not (AutoTrait.enabled and traitTarget and stopTrait) then task.wait(0.4) else local d = prof() local crystals = (d and d.VoidCrystals) or 0 local cur = d and d.UnitTraits and d.UnitTraits[traitTarget] if cur == stopTrait then AutoTrait.enabled = false pcall(function() TraitStatus:Set(("Trait: HIT %s on %s"):format(stopTrait, traitTarget)) end) elseif crystals < 1 then AutoTrait.enabled = false pcall(function() TraitStatus:Set("Trait: out of rerolls (need VoidCrystals)") end) else local before = resultSeq fire("RollTrait", traitTarget) local waited = 0 while resultSeq == before and waited < 2 and alive() do task.wait(0.05); waited = waited + 0.05 end if resultSeq ~= before and lastTrait then if lastTrait == stopTrait then AutoTrait.enabled = false pcall(function() TraitStatus:Set(("Trait: HIT %s!"):format(stopTrait)) end) else pcall(function() TraitStatus:Set(("Trait: %s (want %s) | ~%d left"):format( tostring(lastTrait), stopTrait, math.max(0, crystals - 1))) end) end end task.wait(AutoTrait.interval) end end end end) local UnitsTab = Window:CreateTab("Units") UnitsTab:CreateSection("Equip") UnitsTab:CreateToggle({ Name = "Auto-equip best (after each roll)", CurrentValue = false, Flag = "AnimeRNG_AutoEquipBest", Callback = function(v) AutoEquipBest.enabled = v if v then fire("RequestEquipBest") end end, }) UnitsTab:CreateButton({ Name = "Equip best now", Callback = function() fire("RequestEquipBest") end }) -- Keep the trait dropdown in sync as new units are rolled. onProfile(function() pcall(function() TraitDropdown:Refresh(unitOptions(), false) end) end) local ProgTab = Window:CreateTab("Progression") ProgTab:CreateSection("Auto-progress") local ProgressLabel = ProgTab:CreateLabel("Zone: —") local function refreshProgress() local d = prof(); if not d then return end local n, nz = nextZone() pcall(function() ProgressLabel:Set(("Zone %s/%d | next: %s ($%s, have $%s)"):format( tostring(d.MaxZone or 1), #ZonesApi.GetAll(), nz and nz.Name or "MAX", nz and abbrev(nz.Price) or "—", abbrev(d.Money or 0))) end) end refreshProgress(); onProfile(refreshProgress) ProgTab:CreateToggle({ Name = "Auto-progress (buy next zone + farm it)", CurrentValue = false, Flag = "AnimeRNG_AutoProgress", Callback = function(v) AutoProgress.enabled = v if v then pcall(teleportToZone, (prof() and prof().MaxZone) or 1) end end, }) ProgTab:CreateSlider({ Name = "Progress check interval (s)", Range = { 2, 30 }, Increment = 1, Suffix = "s", CurrentValue = AutoProgress.interval, Flag = "AnimeRNG_ProgressInterval", Callback = function(v) AutoProgress.interval = v end, }) ProgTab:CreateSection("Teleport") local teleportTarget = 1 local function zoneTpOptions() local o = {} for i, z in ipairs(ZonesApi.GetAll()) do o[#o + 1] = ("%d - %s"):format(i, z.Name) end return o end ProgTab:CreateDropdown({ Name = "Zone", Options = zoneTpOptions(), CurrentOption = { "1 - " .. (ZonesApi.GetAll()[1] and ZonesApi.GetAll()[1].Name or "?") }, Flag = "AnimeRNG_TpZone", Callback = function(opt) local label = type(opt) == "table" and opt[1] or opt local n = label and tonumber(tostring(label):match("^(%d+)")) if n then teleportTarget = n end end, }) ProgTab:CreateButton({ Name = "Teleport now", Callback = function() pcall(teleportToZone, teleportTarget) end }) ProgTab:CreateSection("Rebirth") local RebirthLabel = ProgTab:CreateLabel("Rebirth: —") local function refreshRebirth() local d = prof(); if not d then return end pcall(function() RebirthLabel:Set(("Rebirths: %d | cost %s shards (have %s)%s"):format( d.Rebirths or 0, abbrev(math.floor(rebirthCost())), abbrev(d.VoidShards or 0), canRebirth() and " ✓" or "")) end) end refreshRebirth(); onProfile(refreshRebirth) ProgTab:CreateToggle({ Name = "Auto-rebirth (when affordable)", CurrentValue = false, Flag = "AnimeRNG_AutoRebirth", Callback = function(v) AutoRebirth.enabled = v end, }) ProgTab:CreateSlider({ Name = "Rebirth check interval (s)", Range = { 15, 300 }, Increment = 5, Suffix = "s", CurrentValue = AutoRebirth.cooldown, Flag = "AnimeRNG_RebirthCooldown", Callback = function(v) AutoRebirth.cooldown = v end, }) ProgTab:CreateButton({ Name = "Rebirth now", Callback = function() if tryRebirth() then Rayfield:Notify({ Title = "Rebirth", Content = "Done" }) else Rayfield:Notify({ Title = "Rebirth", Content = ("Need %s shards"):format(abbrev(math.floor(rebirthCost() - ((prof() and prof().VoidShards) or 0)))) }) end end, }) ProgTab:CreateSection("Skill tree") local UpgradeLabel = ProgTab:CreateLabel("Skills: —") local function refreshUpgrade() local owned = (prof() and prof().OwnedNodes and #prof().OwnedNodes) or 0 local buyable = purchasableSkills() local affordable = 0 for _, n in ipairs(buyable) do if skillBalance(n.node) >= n.cost then affordable = affordable + 1 end end pcall(function() UpgradeLabel:Set(("Skills owned: %d | unlockable: %d (affordable %d)"):format(owned, #buyable, affordable)) end) end refreshUpgrade(); onProfile(refreshUpgrade) ProgTab:CreateToggle({ Name = "Auto-upgrade (buy cheapest skill)", CurrentValue = false, Flag = "AnimeRNG_AutoUpgrade", Callback = function(v) AutoUpgrade.enabled = v; if v then pcall(tryBuyCheapestSkill) end end, }) ProgTab:CreateSlider({ Name = "Upgrade interval (s)", Range = { 0.5, 10 }, Increment = 0.5, Suffix = "s", CurrentValue = AutoUpgrade.interval, Flag = "AnimeRNG_UpgradeInterval", Callback = function(v) AutoUpgrade.interval = v end, }) ProgTab:CreateButton({ Name = "Buy cheapest skill now", Callback = function() local n = tryBuyCheapestSkill(); if n then Rayfield:Notify({ Title = "Skill", Content = n.id }) end end, }) local LootTab = Window:CreateTab("Loot") LootTab:CreateSection("Auto-collect") LootTab:CreateToggle({ Name = "Auto-collect loot (CFrame vacuum)", CurrentValue = false, Flag = "AnimeRNG_AutoCollect", Callback = function(v) AutoCollect.enabled = v; if v then pcall(collectLootOnce) end end, }) LootTab:CreateSlider({ Name = "Collect interval (s)", Range = { 0.5, 10 }, Increment = 0.5, Suffix = "s", CurrentValue = AutoCollect.interval, Flag = "AnimeRNG_CollectInterval", Callback = function(v) AutoCollect.interval = v end, }) LootTab:CreateButton({ Name = "Collect now", Callback = function() pcall(collectLootOnce) end }) local OthersTab = Window:CreateTab("Others") OthersTab:CreateSection("Codes") local CodeLabel = OthersTab:CreateLabel("Codes: tap to redeem all") OthersTab:CreateButton({ Name = "Redeem all codes", Callback = function() local n, total = redeemAllCodes() pcall(function() CodeLabel:Set(("Redeemed %d new of %d codes"):format(n, total)) end) Rayfield:Notify({ Title = "Codes", Content = ("Redeemed %d new code(s)"):format(n) }) end, }) OthersTab:CreateSection("Quests") OthersTab:CreateToggle({ Name = "Auto-claim all quests", CurrentValue = false, Flag = "AnimeRNG_AutoQuests", Callback = function(v) AutoQuests.enabled = v end, }) OthersTab:CreateButton({ Name = "Claim all quests now", Callback = function() fire("RequestClaimAllQuests") end }) OthersTab:CreateSection("Offline earnings") OthersTab:CreateButton({ Name = "Request offline earnings", Callback = function() fire("RequestOfflineEarnings") end }) OthersTab:CreateButton({ Name = "Claim offline earnings", Callback = function() fire("RequestClaimOfflineEarnings") end }) local PerfTab = Window:CreateTab("Performance") local Lighting = game:GetService("Lighting") local LowFps = { enabled = false } local savedEnabled = {} -- [effectInstance] = original .Enabled local savedFidelity = {} -- [meshPart] = original .RenderFidelity local savedLight = {} -- snapshot of touched Lighting props / post effects local lowAddedConn = nil local EFFECT_CLASS = { ParticleEmitter = true, Trail = true, Beam = true, Smoke = true, Fire = true, Sparkles = true, Explosion = true, } -- Apply low settings to one instance (effects -> disabled, meshes -> low poly). local function applyLow(inst) local cls = inst.ClassName if EFFECT_CLASS[cls] then if savedEnabled[inst] == nil then savedEnabled[inst] = inst.Enabled end pcall(function() inst.Enabled = false end) elseif inst:IsA("MeshPart") then if savedFidelity[inst] == nil then savedFidelity[inst] = inst.RenderFidelity end pcall(function() inst.RenderFidelity = Enum.RenderFidelity.Performance end) end end local function enableLowFps() -- Lighting: drop shadows, ambient bounce, and all post effects. savedLight = { post = {} } savedLight.GlobalShadows = Lighting.GlobalShadows savedLight.EnvDiffuse = Lighting.EnvironmentDiffuseScale savedLight.EnvSpecular = Lighting.EnvironmentSpecularScale pcall(function() Lighting.GlobalShadows = false Lighting.EnvironmentDiffuseScale = 0 Lighting.EnvironmentSpecularScale = 0 end) for _, e in ipairs(Lighting:GetChildren()) do if e:IsA("PostEffect") then savedLight.post[e] = e.Enabled pcall(function() e.Enabled = false end) end end -- Global render quality (the single biggest win) + terrain detail. pcall(function() settings().Rendering.QualityLevel = Enum.QualityLevel.Level01 end) pcall(function() sethiddenproperty(settings().Rendering, "QualityLevel", 1) end) pcall(function() local t = workspace:FindFirstChildOfClass("Terrain") if t then savedLight.WaterWaveSize = t.WaterWaveSize; savedLight.WaterReflectance = t.WaterReflectance t.WaterWaveSize = 0; t.WaterReflectance = 0; t.WaterWaveSpeed = 0 end end) -- Sweep the world once, then keep new effects suppressed while mode is on. for _, inst in ipairs(workspace:GetDescendants()) do applyLow(inst) end lowAddedConn = workspace.DescendantAdded:Connect(function(inst) if LowFps.enabled then applyLow(inst) end end) end local function disableLowFps() if lowAddedConn then lowAddedConn:Disconnect(); lowAddedConn = nil end for inst, orig in pairs(savedEnabled) do if inst and inst.Parent then pcall(function() inst.Enabled = orig end) end end for inst, orig in pairs(savedFidelity) do if inst and inst.Parent then pcall(function() inst.RenderFidelity = orig end) end end savedEnabled, savedFidelity = {}, {} pcall(function() if savedLight.GlobalShadows ~= nil then Lighting.GlobalShadows = savedLight.GlobalShadows end if savedLight.EnvDiffuse ~= nil then Lighting.EnvironmentDiffuseScale = savedLight.EnvDiffuse end if savedLight.EnvSpecular ~= nil then Lighting.EnvironmentSpecularScale = savedLight.EnvSpecular end end) for e, en in pairs(savedLight.post or {}) do if e and e.Parent then pcall(function() e.Enabled = en end) end end pcall(function() local t = workspace:FindFirstChildOfClass("Terrain") if t and savedLight.WaterWaveSize ~= nil then t.WaterWaveSize = savedLight.WaterWaveSize; t.WaterReflectance = savedLight.WaterReflectance end end) pcall(function() settings().Rendering.QualityLevel = Enum.QualityLevel.Automatic end) savedLight = {} end PerfTab:CreateSection("Graphics") local PerfLabel = PerfTab:CreateLabel("Low FPS mode: off") PerfTab:CreateToggle({ Name = "Low FPS mode (kill particles / shadows / low poly)", CurrentValue = false, Flag = "AnimeRNG_LowFps", Callback = function(v) LowFps.enabled = v pcall(function() PerfLabel:Set("Low FPS mode: " .. (v and "applying…" or "restoring…")) end) task.spawn(function() if v then enableLowFps() else disableLowFps() end pcall(function() PerfLabel:Set("Low FPS mode: " .. (v and "ON" or "off")) end) end) end, })