-- [[ 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 ]] --[[ GROW A UNIVERSE - ALL GIVER v2.0 ===================================== - All Pets (PetTools) - All Eggs (EggFolder) - Universe Seed x1000 (Buy remote) - Other Seeds - Rayfield UI - Bug fixes: * Auto Buy properly stops * Debounce on all buttons * Safe checks on Backpack / Character * No memory leaks * No notification spam * Clean shutdown on UI close by kaisan_lover ]] local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() --========================================================== -- SERVICES --========================================================== local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local LocalPlayer = Players.LocalPlayer --========================================================== -- REFERENCES --========================================================== local PetTools = ReplicatedStorage:FindFirstChild("PetTools") local EggFolder = ReplicatedStorage:FindFirstChild("EggFolder") local Events = ReplicatedStorage:FindFirstChild("Events") --========================================================== -- STATE --========================================================== local State = { UniverseSeedAmount = 1000, SeedBuyDelay = 0.05, AutoBuyEnabled = false, AutoBuyRunning = false, Closing = false, } --========================================================== -- DEBOUNCE (tugma ikki marta bosilmasin) --========================================================== local Debounce = {} local function IsBusy(key) return Debounce[key] == true end local function SetBusy(key, value) Debounce[key] = value end --========================================================== -- SAFE HELPERS --========================================================== local function GetBackpack() -- Character yoki Player bo'lishi mumkin local backpack = LocalPlayer:FindFirstChild("Backpack") if backpack then return backpack end local char = LocalPlayer.Character if char then local charBackpack = char:FindFirstChild("Backpack") if charBackpack then return charBackpack end end return nil end local function GetPets() local list = {} if not PetTools then return list end for _, pet in ipairs(PetTools:GetChildren()) do if pet:IsA("Tool") then table.insert(list, pet.Name) end end return list end local function GetEggs() local list = {} if not EggFolder then return list end for _, egg in ipairs(EggFolder:GetChildren()) do if egg:IsA("Tool") then table.insert(list, egg.Name) end end return list end --========================================================== -- PET GIVER --========================================================== local function GiveAllPets() if IsBusy("Pets") then return 0, "Already in progress" end SetBusy("Pets", true) if not PetTools then SetBusy("Pets", false) return 0, "PetTools not found" end local backpack = GetBackpack() if not backpack then SetBusy("Pets", false) return 0, "Backpack not found" end local count = 0 local failed = 0 for _, pet in ipairs(PetTools:GetChildren()) do if pet:IsA("Tool") then local ok = pcall(function() local cloned = pet:Clone() cloned.Parent = backpack end) if ok then count = count + 1 else failed = failed + 1 end task.wait(0.05) end end SetBusy("Pets", false) return count, "Pets: " .. count .. " given, " .. failed .. " failed" end --========================================================== -- EGG GIVER --========================================================== local function GiveAllEggs() if IsBusy("Eggs") then return 0, "Already in progress" end SetBusy("Eggs", true) if not EggFolder then SetBusy("Eggs", false) return 0, "EggFolder not found" end local backpack = GetBackpack() if not backpack then SetBusy("Eggs", false) return 0, "Backpack not found" end local count = 0 local failed = 0 for _, egg in ipairs(EggFolder:GetChildren()) do if egg:IsA("Tool") then local ok = pcall(function() local cloned = egg:Clone() cloned.Parent = backpack end) if ok then count = count + 1 else failed = failed + 1 end task.wait(0.05) end end SetBusy("Eggs", false) return count, "Eggs: " .. count .. " given, " .. failed .. " failed" end --========================================================== -- SEED GIVER (Buy remote) --========================================================== local function BuySeed(seedName, amount) if IsBusy("Seed_" .. seedName) then return 0, "Already in progress" end SetBusy("Seed_" .. seedName, true) if not Events then SetBusy("Seed_" .. seedName, false) return 0, "Events not found" end local Buy = Events:FindFirstChild("Buy") if not Buy then SetBusy("Seed_" .. seedName, false) return 0, "Buy remote not found" end amount = math.clamp(tonumber(amount) or 1, 1, 10000) local sent = 0 local failed = 0 for i = 1, amount do if State.Closing then break end local ok = pcall(function() Buy:FireServer(seedName, true) end) if ok then sent = sent + 1 else failed = failed + 1 end task.wait(State.SeedBuyDelay) end SetBusy("Seed_" .. seedName, false) return sent, seedName .. " sent: " .. sent .. ", failed: " .. failed end --========================================================== -- AUTO BUY (properly stops, no memory leak) --========================================================== local function StartAutoBuy() if State.AutoBuyRunning then return end State.AutoBuyRunning = true State.AutoBuyEnabled = true task.spawn(function() while State.AutoBuyRunning and not State.Closing do pcall(function() if Events then local Buy = Events:FindFirstChild("Buy") if Buy then Buy:FireServer("Universe Seed", true) end end end) task.wait(0.5) end State.AutoBuyRunning = false end) end local function StopAutoBuy() State.AutoBuyEnabled = false State.AutoBuyRunning = false end --========================================================== -- SAFE NOTIFY (spam yo'q) --========================================================== local LastNotify = {} local function SafeNotify(title, content, duration) local now = tick() local key = tostring(title) if LastNotify[key] and (now - LastNotify[key]) < 0.5 then return end LastNotify[key] = now pcall(function() Rayfield:Notify({ Title = title, Content = content, Duration = duration or 4, }) end) end --========================================================== -- RAYFIELD UI --========================================================== local Window = Rayfield:CreateWindow({ Name = "Grow a Universe - All Giver", LoadingTitle = "Loading...", LoadingSubtitle = "by kaisan_lover", ConfigurationSaving = { Enabled = false }, KeySystem = false, }) --==================== MAIN TAB ==================== local MainTab = Window:CreateTab("Main", 4483362458) MainTab:CreateSection("Give Everything") MainTab:CreateButton({ Name = "Get All Pets", Callback = function() if IsBusy("Pets") then SafeNotify("Wait", "Pets are being given...", 2) return end task.spawn(function() local count, msg = GiveAllPets() SafeNotify("Pets", msg, 4) end) end, }) MainTab:CreateButton({ Name = "Get All Eggs", Callback = function() if IsBusy("Eggs") then SafeNotify("Wait", "Eggs are being given...", 2) return end task.spawn(function() local count, msg = GiveAllEggs() SafeNotify("Eggs", msg, 4) end) end, }) MainTab:CreateButton({ Name = "Get Everything (Pets + Eggs)", Callback = function() if IsBusy("Pets") or IsBusy("Eggs") then SafeNotify("Wait", "Already in progress...", 2) return end task.spawn(function() local pc, pmsg = GiveAllPets() task.wait(0.3) local ec, emsg = GiveAllEggs() SafeNotify("Everything", pc .. " pets + " .. ec .. " eggs given.", 5) end) end, }) --==================== SEEDS TAB ==================== local SeedsTab = Window:CreateTab("Seeds", 4483362458) SeedsTab:CreateSection("Universe Seed") SeedsTab:CreateSlider({ Name = "Universe Seed Amount", Range = {1, 5000}, Increment = 1, Suffix = " pcs", CurrentValue = 1000, Flag = "SeedAmount", Callback = function(v) State.UniverseSeedAmount = v end, }) SeedsTab:CreateButton({ Name = "Send Universe Seed", Callback = function() if IsBusy("Seed_Universe Seed") then SafeNotify("Wait", "Already sending...", 2) return end task.spawn(function() local sent, msg = BuySeed("Universe Seed", State.UniverseSeedAmount) SafeNotify("Universe Seed", msg, 4) end) end, }) SeedsTab:CreateSection("Other Seeds") SeedsTab:CreateButton({ Name = "Common Seed x100", Callback = function() task.spawn(function() local sent, msg = BuySeed("Common Seed", 100) SafeNotify("Common Seed", msg, 3) end) end, }) SeedsTab:CreateButton({ Name = "Rare Seed x100", Callback = function() task.spawn(function() local sent, msg = BuySeed("Rare Seed", 100) SafeNotify("Rare Seed", msg, 3) end) end, }) SeedsTab:CreateButton({ Name = "Legendary Seed x100", Callback = function() task.spawn(function() local sent, msg = BuySeed("Legendary Seed", 100) SafeNotify("Legendary Seed", msg, 3) end) end, }) SeedsTab:CreateButton({ Name = "Mythical Seed x100", Callback = function() task.spawn(function() local sent, msg = BuySeed("Mythical Seed", 100) SafeNotify("Mythical Seed", msg, 3) end) end, }) SeedsTab:CreateButton({ Name = "Bloodlit Seed x100", Callback = function() task.spawn(function() local sent, msg = BuySeed("Bloodlit Seed", 100) SafeNotify("Bloodlit Seed", msg, 3) end) end, }) SeedsTab:CreateSection("Auto Buy") SeedsTab:CreateToggle({ Name = "Auto Buy Universe Seed (every 0.5s)", CurrentValue = false, Flag = "AutoBuy", Callback = function(v) if v then StartAutoBuy() SafeNotify("Auto Buy", "Enabled.", 3) else StopAutoBuy() SafeNotify("Auto Buy", "Disabled.", 3) end end, }) --==================== SETTINGS TAB ==================== local SettingsTab = Window:CreateTab("Settings", 4483362458) SettingsTab:CreateSlider({ Name = "Seed Send Delay", Range = {1, 100}, Increment = 1, Suffix = " x 0.01s", CurrentValue = 5, Flag = "SeedDelay", Callback = function(v) State.SeedBuyDelay = v / 100 end, }) SettingsTab:CreateSection("Info") SettingsTab:CreateParagraph({ Title = "Grow a Universe - All Giver", Content = "Pets and Eggs are cloned from PetTools and EggFolder. Seeds are sent via Buy remote.", }) SettingsTab:CreateButton({ Name = "Close UI", Callback = function() State.Closing = true StopAutoBuy() task.wait(0.1) Rayfield:Destroy() end, }) --========================================================== -- STARTUP NOTIFICATION --========================================================== SafeNotify("Grow a Universe", "All Giver loaded. by kaisan_lover", 6) --========================================================== -- CLEANUP ON SCRIPT UNLOAD --========================================================== game:BindToClose(function() State.Closing = true StopAutoBuy() end) print("[Grow a Universe - All Giver v2.0] Loaded. by kaisan_lover")