--[[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=6a4227607d7069f16b3c7d62"))() end) end) --[[rscripts:analytics:end]] local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Players = game:GetService("Players") local RS = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local VirtualUser = game:GetService("VirtualUser") local LP = Players.LocalPlayer local PLACE_MAIN = 116223724643557 local PLACE_DUNGEON = 140070560575882 local IS_DUNGEON = game.PlaceId == PLACE_DUNGEON -- Anti-idle (keeps the session alive so the farm never gets kicked). 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) -- Remotes -- local Remotes = RS:WaitForChild("Remotes") local R = { GainMagicPower = Remotes:WaitForChild("GainMagicPower"), Rebirth = Remotes:FindFirstChild("Rebirth"), RequestEquipBestWand= Remotes:FindFirstChild("RequestEquipBestWand"), EquipBestPets = Remotes:FindFirstChild("EquipBestPets"), OpenEgg = Remotes:FindFirstChild("OpenEgg"), ClaimFreeRewards = Remotes:FindFirstChild("ClaimFreeRewards"), DailyRewardsClaim = Remotes:FindFirstChild("DailyRewardsClaim"), ClaimFreeAutoClicker= Remotes:FindFirstChild("ClaimFreeAutoClicker"), DealMobDamage = Remotes:FindFirstChild("DealMobDamage"), } local WAND_BUTTONS = { {n = "Staff Button1", cost = 0, wand = "Twig Wand"}, {n = "Staff Button2", cost = 1, wand = "Thorn Wand"}, {n = "Staff Button3", cost = 3, wand = "Wooden Staff"}, {n = "Staff Button4", cost = 10, wand = "Moonlight Wand"}, {n = "Staff Button5", cost = 25, wand = "Crystal Branch Wand"}, {n = "Staff Button6", cost = 100, wand = "Magic Lantern Staff"}, {n = "Staff Button7", cost = 500, wand = "Mushroom Staff"}, {n = "Staff Button8", cost = 2000, wand = "Spirit Wand"}, {n = "Staff Button9", cost = 7500, wand = "Rune Staff"}, {n = "Staff Button10", cost = 25000, wand = "Ember Wand"}, {n = "Staff Button11", cost = 200000, wand = "Storm Scepter"}, {n = "Staff Button12", cost = 850000, wand = "Void Scepter"}, {n = "Staff Button13", cost = 1800000, wand = "Bone Staff"}, {n = "Staff Button14", cost = 5000000, wand = "Lava Staff"}, {n = "Staff Button15", cost = 25000000, wand = "Celestial Staff"}, {n = "Staff Button16", cost = 150000000, wand = "Frost Staff"}, {n = "Staff Button17", cost = 500000000, wand = "Astral Polearm"}, {n = "Staff Button18", cost = 1000000000, wand = "Ancient Wizard Staff"}, {n = "Staff Button19", cost = 5000000000, wand = "Demonic Staff"}, {n = "Staff Button20", cost = 40000000000, wand = "Angelic Halo Staff"}, {n = "Staff Button21", cost = 50000000000000, wand = "Dragon Wand"}, } local TP_PADS = { {n="TargetPractice1", mult=1, reb=0, owns=nil}, {n="TargetPractice2", mult=1, reb=0, owns=nil}, {n="TargetPractice3", mult=2, reb=1, owns=nil}, {n="TargetPractice4", mult=3, reb=0, owns="OwnsTP4"}, {n="TargetPractice5", mult=3, reb=3, owns=nil}, {n="TargetPractice6", mult=10, reb=5, owns=nil}, {n="TargetPractice7", mult=25, reb=0, owns="OwnsTP7"}, {n="TargetPractice8", mult=50, reb=15, owns=nil}, {n="TargetPractice9", mult=150, reb=0, owns="OwnsTP9"}, {n="TargetPractice10", mult=100, reb=45, owns=nil}, } -- Lunar Owl Boss in-zone attack anchor (user-supplied) local LUNAR_ANCHOR = Vector3.new(-1848, 7, -2115) -- Helpers -- local function notify(title, content, dur) Rayfield:Notify({ Title = title, Content = content, Duration = dur or 4 }) end local function getChar() return LP.Character end local function getHRP() local c = LP.Character return c and c:FindFirstChild("HumanoidRootPart") end local function attr(name) return LP:GetAttribute(name) end local State, Gen = {}, {} local function runLoop(key, interval, fn) State[key] = true Gen[key] = (Gen[key] or 0) + 1 local myGen = Gen[key] task.spawn(function() while State[key] and Gen[key] == myGen do pcall(fn) task.wait(interval) end end) end local function stopLoop(key) State[key] = false Gen[key] = (Gen[key] or 0) + 1 end local function holdAt(key, pos) runLoop(key, 0.2, function() local hrp = getHRP() if hrp then hrp.CFrame = CFrame.new(pos) hrp.Anchored = true end end) end local function releaseHold(key) stopLoop(key) local hrp = getHRP() if hrp then hrp.Anchored = false end end -- Window -- local Window = Rayfield:CreateWindow({ Name = "+1 Magic Evolution - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = IS_DUNGEON and "Dungeon mode" or "Main world mode", ConfigurationSaving = { Enabled = true, FolderName = "Magic Evolution", FileName = "Config" }, KeySystem = false, }) -- DUNGEON BUILD -- if IS_DUNGEON then local Tab = Window:CreateTab("Dungeon", 4483362458) local dungeonOrigin task.spawn(function() for _ = 1, 50 do local hrp = getHRP() if hrp then dungeonOrigin = hrp.Position; break end task.wait(0.2) end end) Tab:CreateSection("Survival") local safePos = nil Tab:CreateToggle({ Name = "TP to Safe Position", CurrentValue = false, Flag = "DgnSafe", Callback = function(on) if on then local hrp = getHRP() if not hrp then notify("Safe Position", "No character yet - try again."); return end safePos = hrp.Position - Vector3.new(0, 20, 0) holdAt("DgnSafe", safePos) notify("Safe Position", "Anchored 20 studs below the arena.") else releaseHold("DgnSafe") end end, }) Tab:CreateSection("Damage") local firesPerTick = 5 Tab:CreateSlider({ Name = "Fires per mob / tick", Range = {1, 5}, Increment = 1, Suffix = "x", CurrentValue = 5, Flag = "DgnFires", Callback = function(v) firesPerTick = math.floor(v) end, }) Tab:CreateToggle({ Name = "Fast Kill Mob", CurrentValue = false, Flag = "DgnAura", Callback = function(on) if on and not R.DealMobDamage then notify("Aura", "DealMobDamage missing."); return end if on then runLoop("DgnAura", 0.1, function() local mobs = workspace:FindFirstChild("DungeonMobs") if not mobs then return end local mp = math.max(1, math.floor(attr("MagicPower") or 1)) for _, m in ipairs(mobs:GetChildren()) do local h = m:FindFirstChildOfClass("Humanoid") if h and h.Health > 0 then for _ = 1, firesPerTick do if h.Health <= 0 or not m.Parent then break end R.DealMobDamage:FireServer(m, mp) end end end end) else stopLoop("DgnAura") end end, }) -- Pump the run-scoped MagicPower (raises the aura's damage cap). Tab:CreateToggle({ Name = "Auto Click", CurrentValue = false, Flag = "DgnClick", Callback = function(on) if on then runLoop("DgnClick", 0.1, function() R.GainMagicPower:FireServer() end) else stopLoop("DgnClick") end end, }) Tab:CreateSection("Misc") Tab:CreateButton({ Name = "Unstuck (TP to start)", Callback = function() releaseHold("DgnSafe") local hrp = getHRP() if hrp and dungeonOrigin then hrp.Anchored = false hrp.CFrame = CFrame.new(dungeonOrigin) notify("Unstuck", "Teleported back to entry (Safe Position off).") else notify("Unstuck", "No saved entry position yet.") end end, }) -- MAIN-PLACE BUILD -- else -- Currency local Cur = Window:CreateTab("Currency", 4483362458) Cur:CreateSection("Wins & Trophies") local MAX_STAGE = 31 local function winTouchPart() local stages = workspace:FindFirstChild("Stages"); if not stages then return nil end for i = MAX_STAGE, 1, -1 do local st = stages:FindFirstChild("Stage" .. i) local wb = st and st:FindFirstChild("WinButton") if wb then local tp = wb:FindFirstChild("TouchPart") if tp then return tp end -- Parts streamed out: stream them in around the model's pivot. local ok, piv = pcall(function() return wb:GetPivot().Position end) if ok and piv then pcall(function() LP:RequestStreamAroundAsync(piv) end) end return wb:FindFirstChild("TouchPart") end end return nil end Cur:CreateToggle({ Name = "Auto Win/Trophy Farm", CurrentValue = false, Flag = "WinFarm", Callback = function(on) if on then runLoop("WinFarm", 0.3, function() local hrp = getHRP(); if not hrp then return end local tp = winTouchPart(); if not tp then return end firetouchinterest(hrp, tp, 1) firetouchinterest(hrp, tp, 0) end) else stopLoop("WinFarm") end end, }) Cur:CreateSection("Magic Power") Cur:CreateToggle({ Name = "Auto Click", CurrentValue = false, Flag = "Click", Callback = function(on) if on then runLoop("Click", 0.1, function() R.GainMagicPower:FireServer() end) else stopLoop("Click") end end, }) Cur:CreateToggle({ Name = "Auto Practice Best Target", CurrentValue = false, Flag = "Pad", Callback = function(on) if on then runLoop("Pad", 10, function() local hrp = getHRP(); if not hrp then return end local reb = tonumber(attr("Rebirths")) or 0 local pads = workspace:FindFirstChild("TargetPractices"); if not pads then return end local best for _, p in ipairs(TP_PADS) do local ok = reb >= p.reb and (p.owns == nil or attr(p.owns) == true) if ok and (not best or p.mult > best.mult) then best = p end end if not best then return end local pad = pads:FindFirstChild(best.n) local touch = pad and (pad:FindFirstChild("Touch") or pad:FindFirstChild("HitPart")) if not touch then return end local target = touch.CFrame + Vector3.new(0, 3, 0) if (hrp.Position - target.Position).Magnitude > 6 then hrp.CFrame = target end end) else releaseHold("Pad") end end, }) -- Progression local Prog = Window:CreateTab("Progression", 4483362458) Prog:CreateSection("Rebirth") Prog:CreateToggle({ Name = "Auto Rebirth (when eligible)", CurrentValue = false, Flag = "Rebirth", Callback = function(on) if on and not R.Rebirth then notify("Rebirth", "Remote missing."); return end if on then runLoop("Rebirth", 3, function() R.Rebirth:FireServer() end) else stopLoop("Rebirth") end end, }) Prog:CreateSection("Wands") Prog:CreateToggle({ Name = "Auto Equip Best Wand", CurrentValue = false, Flag = "Wand", Callback = function(on) if on then runLoop("Wand", 5, function() local sb = workspace:FindFirstChild("StaffButtons"); if not sb then return end local trophies = tonumber(attr("Trophies")) or 0 local best for _, w in ipairs(WAND_BUTTONS) do if trophies >= w.cost and (not best or w.cost > best.cost) then best = w end end if not best then return end -- Already on the best wand -> nothing to do (no spam). if attr("EquippedWand") == best.wand then return end local hrp = getHRP() local b = sb:FindFirstChild(best.n) local tp = b and b:FindFirstChild("TouchPart") if hrp and tp then firetouchinterest(hrp, tp, 1) firetouchinterest(hrp, tp, 0) end if R.RequestEquipBestWand then R.RequestEquipBestWand:FireServer() end end) else stopLoop("Wand") end end, }) -- Lunar Boss (raid event) local Lunar = Window:CreateTab("Lunar Boss", 4483362458) Lunar:CreateSection("Event") local function lunarBoss() local lr = workspace:FindFirstChild("LunarRaid") return lr and lr:FindFirstChild("Lunar Owl Boss") end local function lunarActive() local b = lunarBoss() return b ~= nil and b:GetAttribute("LunarRaidActive") == true end local function startLunarFarm() holdAt("LunarHold", LUNAR_ANCHOR) runLoop("Lunar", 0.1, function() R.GainMagicPower:FireServer() end) end local function stopLunarFarm() stopLoop("Lunar") releaseHold("LunarHold") end Lunar:CreateToggle({ Name = "Auto Detect and Farm Lunar Boss", CurrentValue = false, Flag = "Lunar", Callback = function(on) if on then local wasActive = false runLoop("LunarWatch", 1, function() local now = lunarActive() if now and not wasActive then notify("Lunar Event STARTED", "Engaging boss farm.", 6) startLunarFarm() elseif (not now) and wasActive then notify("Lunar Event ended", "Disengaged.", 6) stopLunarFarm() end wasActive = now end) else stopLoop("LunarWatch") stopLunarFarm() end end, }) -- Rewards local Rew = Window:CreateTab("Rewards", 4483362458) Rew:CreateSection("Auto") Rew:CreateToggle({ Name = "Claim All Rewards", CurrentValue = false, Flag = "ClaimAll", Callback = function(on) if on then runLoop("ClaimAll", 15, function() if R.ClaimFreeRewards then R.ClaimFreeRewards:FireServer() end if R.DailyRewardsClaim then R.DailyRewardsClaim:FireServer() end if R.ClaimFreeAutoClicker then R.ClaimFreeAutoClicker:FireServer() end end) else stopLoop("ClaimAll") end end, }) end -- Settings (both places) -- local Set = Window:CreateTab("Settings", 4483362458) Set:CreateSection("Session") Set:CreateButton({ Name = "Unstuck", Callback = function() local hrp = getHRP() if hrp then hrp.Anchored = false end notify("Unstuck", "Character unstucked.") end, }) Set:CreateButton({ Name = "Rejoin Server", Callback = function() game:GetService("TeleportService"):Teleport(game.PlaceId, LP) end, })