-- Rayfield Library Setup local Rayfield = loadstring(game:HttpGet('https://sirius.menu'))() local Window = Rayfield:CreateWindow({ Name = "Survive Overnight in a Mega Store | Dynamic Menu", LoadingTitle = "Initializing Modular Keybind Systems...", LoadingSubtitle = "by AI Assistant", ConfigurationSaving = { Enabled = true, FolderName = "MegaStoreModMenu", FileName = "Config" }, KeySystem = false }) -- Global State Manager local States = { -- Combat KillAura = false, AuraRadius = 15, Aimbot = false, -- Movement Speed = 16, Fly = false, FlySpeed = 50, InfStamina = false, BHop = false, -- Automation AutoEat = false, SelectedFood = "Apple", AutoCollect = false, CollectAmmo = false, CollectCurrency = false, AutoSafeZone = false, SafeZoneActive = false, SavedPosition = nil, -- ESP GuardESP = false, ItemESP = false } -- Pointers to UI Toggle Elements for programmatic updates via Keybinds local UIToggles = {} -- Shared Utilities local LocalPlayer = game.Players.LocalPlayer local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local Humanoid = Character:WaitForChild("Humanoid") local Root = Character:WaitForChild("HumanoidRootPart") LocalPlayer.CharacterAdded:Connect(function(char) Character = char Humanoid = char:WaitForChild("Humanoid") Root = char:WaitForChild("HumanoidRootPart") end) -- Visual Anchor for Kill Aura (Red Circle) local AuraCircle = Instance.new("SelectionSphere") AuraCircle.Color3 = Color3.fromRGB(255, 0, 0) AuraCircle.Transparency = 0.5 AuraCircle.Visible = false AuraCircle.Parent = workspace -- Target Fetching for Guards/NPCs local function getNPCs() local npcs = {} local folder = workspace:FindFirstChild("NPCs") or workspace:FindFirstChild("Guards") or workspace for _, obj in pairs(folder:GetChildren()) do if obj:IsA("Model") and obj:FindFirstChild("Humanoid") and obj ~= Character then table.insert(npcs, obj) end end return npcs end -- ============================================================================= -- TABS DEFINITION -- ============================================================================= local CombatTab = Window:CreateTab("Combat", "crossed-swords") local MovementTab = Window:CreateTab("Movement", "run") local AutomationTab = Window:CreateTab("Automation", "cpu") local ESPTab = Window:CreateTab("Visuals / ESP", "eye") local MiscTab = Window:CreateTab("Misc", "package") -- ============================================================================= -- COMBAT TAB (Features + Inline Mapping) -- ============================================================================= UIToggles.KillAura = CombatTab:CreateToggle({ Name = "Kill Aura", CurrentValue = false, Callback = function(Value) States.KillAura = Value AuraCircle.Visible = Value end, }) CombatTab:CreateKeybind({ Name = "↳ Bind Key for Kill Aura", CurrentKeybind = "None", HoldToInteract = false, Callback = function(Keybind) UIToggles.KillAura:Set(not States.KillAura) end, }) CombatTab:CreateSlider({ Name = "Kill Aura Radius (Studs)", Min = 5, Max = 35, Increment = 1, CurrentValue = 15, Callback = function(Value) States.AuraRadius = Value end, }) UIToggles.Aimbot = CombatTab:CreateToggle({ Name = "NPC Aimbot", CurrentValue = false, Callback = function(Value) States.Aimbot = Value end, }) CombatTab:CreateKeybind({ Name = "↳ Bind Key for NPC Aimbot", CurrentKeybind = "None", HoldToInteract = false, Callback = function(Keybind) UIToggles.Aimbot:Set(not States.Aimbot) end, }) -- Combat Execution Engine task.spawn(function() while task.wait() do if Root and States.KillAura then AuraCircle.CFrame = Root.CFrame AuraCircle.Size = Vector3.new(States.AuraRadius * 2, States.AuraRadius * 2, States.AuraRadius * 2) for _, npc in pairs(getNPCs()) do local npcRoot = npc:FindFirstChild("HumanoidRootPart") if npcRoot and (npcRoot.Position - Root.Position).Magnitude <= States.AuraRadius then local tool = Character:FindFirstChildOfClass("Tool") if tool then tool:Activate() end local combatRemote = game:GetService("ReplicatedStorage"):FindFirstChild("Hit") or game:GetService("ReplicatedStorage"):FindFirstChild("Attack") if combatRemote and combatRemote:IsA("RemoteEvent") then combatRemote:FireServer(npc) end end end end if States.Aimbot and Root then local closestNPC = nil local shortestDist = math.huge for _, npc in pairs(getNPCs()) do local npcRoot = npc:FindFirstChild("HumanoidRootPart") if npcRoot then local dist = (npcRoot.Position - Root.Position).Magnitude if dist < shortestDist and dist < 100 then closestNPC = npcRoot shortestDist = dist end end end if closestNPC then workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position, closestNPC.Position) end end end end) -- ============================================================================= -- MOVEMENT TAB (Features + Inline Mapping) -- ============================================================================= MovementTab:CreateSlider({ Name = "Walkspeed Changer", Min = 16, Max = 150, Increment = 1, CurrentValue = 16, Callback = function(Value) States.Speed = Value end, }) UIToggles.Fly = MovementTab:CreateToggle({ Name = "Fly Engine", CurrentValue = false, Callback = function(Value) States.Fly = Value end, }) -- Dynamic Mapping Element for Fly (Can be bound to 'Y' directly inside the GUI) MovementTab:CreateKeybind({ Name = "↳ Bind Key for Fly Engine", CurrentKeybind = "Y", HoldToInteract = false, Callback = function(Keybind) UIToggles.Fly:Set(not States.Fly) Rayfield:Notify({ Title = "Mapping Action", Content = "Flight status flipped via Bound Key: " .. tostring(Keybind), Duration = 1.5, Type = "Notification" }) end, }) MovementTab:CreateSlider({ Name = "Fly Speed Modifier", Min = 10, Max = 200, Increment = 5, CurrentValue = 50, Callback = function(Value) States.FlySpeed = Value end, }) UIToggles.InfStamina = MovementTab:CreateToggle({ Name = "Infinite Stamina", CurrentValue = false, Callback = function(Value) States.InfStamina = Value end, }) MovementTab:CreateKeybind({ Name = "↳ Bind Key for Inf Stamina", CurrentKeybind = "None", HoldToInteract = false, Callback = function(Keybind) UIToggles.InfStamina:Set(not States.InfStamina) end, }) UIToggles.BHop = MovementTab:CreateToggle({ Name = "Bunny Hop", CurrentValue = false, Callback = function(Value) States.BHop = Value end, }) MovementTab:CreateKeybind({ Name = "↳ Bind Key for Bunny Hop", CurrentKeybind = "None", HoldToInteract = false, Callback = function(Keybind) UIToggles.BHop:Set(not States.BHop) end, }) -- Movement Execution Engine task.spawn(function() while task.wait() do if Humanoid and not States.Fly then Humanoid.WalkSpeed = States.Speed end if States.BHop and Humanoid and Humanoid.FloorMaterial ~= Enum.FloorMaterial.Air then Humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end if States.InfStamina then local stamina = LocalPlayer:FindFirstChild("Stamina") or Character:FindFirstChild("Stamina") if stamina and stamina:IsA("ValueBase") then stamina.Value = 100 end end end end) -- Flight Physic Engine Loop task.spawn(function() local bv, bg while task.wait() do if States.Fly and Root then if not bv then bv = Instance.new("BodyVelocity", Root) bv.MaxForce = Vector3.new(1e5, 1e5, 1e5) bg = Instance.new("BodyGyro", Root) bg.MaxTorque = Vector3.new(1e5, 1e5, 1e5) end bg.CFrame = workspace.CurrentCamera.CFrame local dir = Vector3.new() local UIS = game:GetService("UserInputService") if UIS:IsKeyDown(Enum.KeyCode.W) then dir = dir + workspace.CurrentCamera.CFrame.LookVector end if UIS:IsKeyDown(Enum.KeyCode.S) then dir = dir - workspace.CurrentCamera.CFrame.LookVector end if UIS:IsKeyDown(Enum.KeyCode.A) then dir = dir - workspace.CurrentCamera.CFrame.RightVector end if UIS:IsKeyDown(Enum.KeyCode.D) then dir = dir + workspace.CurrentCamera.CFrame.RightVector end bv.Velocity = dir * States.FlySpeed else if bv then bv:Destroy() bv = nil end if bg then bg:Destroy() bg = nil end end end end) -- ============================================================================= -- AUTOMATION TAB (Features + Inline Mapping) -- ============================================================================= UIToggles.AutoEat = AutomationTab:CreateToggle({ Name = "Auto Eat Food (<20 Hunger)", CurrentValue = false, Callback = function(Value) States.AutoEat = Value end, }) AutomationTab:CreateKeybind({ Name = "↳ Bind Key for Auto Eat", CurrentKeybind = "None", HoldToInteract = false, Callback = function(Keybind) UIToggles.AutoEat:Set(not States.AutoEat) end, }) AutomationTab:CreateDropdown({ Name = "Select Target Food Source", Options = {"Apple", "Canned Beans", "Soda", "Bread", "Pizza"}, CurrentOption = {"Apple"}, MultipleOptions = false, Callback = function(Option) States.SelectedFood = Option[1] or Option end, }) UIToggles.AutoCollect = AutomationTab:CreateToggle({ Name = "Auto Collect Items", CurrentValue = false, Callback = function(Value) States.AutoCollect = Value end, }) AutomationTab:CreateKeybind({ Name = "↳ Bind Key for Auto Collect", CurrentKeybind = "None", HoldToInteract = false, Callback = function(Keybind) UIToggles.AutoCollect:Set(not States.AutoCollect) end, }) AutomationTab:CreateToggle({ Name = "Collect Ammunition Type", CurrentValue = false, Callback = function(Value) States.CollectAmmo = Value end, }) AutomationTab:CreateToggle({ Name = "Collect Store Currency / Cash", CurrentValue = false, Callback = function(Value) States.CollectCurrency = Value end, }) AutomationTab:CreateDropdown({ Name = "Instant Grab / Return Prop Picker", Options = {"Chair", "Box", "Shelf", "Pallet", "Ladder"}, CurrentOption = {"Box"}, MultipleOptions = false, Callback = function(Option) local propName = Option[1] or Option local targetProp = workspace:FindFirstChild(propName, true) if targetProp and Root then local originalPos = Root.CFrame Root.CFrame = targetProp:GetPivot() task.wait(0.3) local interaction = targetProp:FindFirstChildOfClass("ProximityPrompt") if interaction then fireproximityprompt(interaction) end Root.CFrame = originalPos end end, }) UIToggles.AutoSafeZone = AutomationTab:CreateToggle({ Name = "Auto Safe Zone (<30 HP)", CurrentValue = false, Callback = function(Value) States.AutoSafeZone = Value end, }) AutomationTab:CreateKeybind({ Name = "↳ Bind Key for Safe Zone", CurrentKeybind = "None", HoldToInteract = false, Callback = function(Keybind) UIToggles.AutoSafeZone:Set(not States.AutoSafeZone) end, }) -- Automation Execution Engine task.spawn(function() while task.wait(0.5) do if States.AutoSafeZone and Humanoid then if Humanoid.Health <= 30 and not States.SafeZoneActive then States.SavedPosition = Root.CFrame States.SafeZoneActive = true Root.CFrame = Root.CFrame + Vector3.new(0, 500, 0) Humanoid.PlatformStand = true elseif Humanoid.Health > 50 and States.SafeZoneActive and States.SavedPosition then Root.CFrame = States.SavedPosition States.SafeZoneActive = false Humanoid.PlatformStand = false end end local hungerVal = LocalPlayer:FindFirstChild("Hunger") or LocalPlayer:FindFirstChild("Data") and LocalPlayer.Data:FindFirstChild("Hunger") if States.AutoEat and hungerVal and hungerVal.Value < 20 then local foodItem = workspace:FindFirstChild(States.SelectedFood, true) if foodItem and Root then local oldPos = Root.CFrame Root.CFrame = foodItem:GetPivot() task.wait(0.4) local interaction = foodItem:FindFirstChildOfClass("ProximityPrompt") if interaction then fireproximityprompt(interaction) end Root.CFrame = oldPos end end if States.AutoCollect and Root then for _, item in pairs(workspace:GetDescendants()) do local match = false if States.CollectAmmo and (item.Name:lower():find("ammo") or item.Name:lower():find("bullet")) then match = true end if States.CollectCurrency and (item.Name:lower():find("cash") or item.Name:lower():find("coin") or item.Name:lower():find("money")) then match = true end if match and item:IsA("BasePart") then local oldPos = Root.CFrame Root.CFrame = item.CFrame task.wait(0.2) Root.CFrame = oldPos break end end end end end) -- ============================================================================= -- VISUALS / ESP TAB -- ============================================================================= local function createESP(instance, color, name) if instance:FindFirstChild("MenuESP") then return end local highlight = Instance.new("Highlight") highlight.Name = "MenuESP" highlight.FillColor = color highlight.OutlineColor = Color3.fromRGB(255, 255, 255) highlight.FillTransparency = 0.5 highlight.Parent = instance local billboard = Instance.new("BillboardGui") billboard.Name = "ESPLabel" billboard.Size = UDim2.new(0, 100, 0, 30) billboard.AlwaysOnTop = true billboard.StudsOffset = Vector3.new(0, 3, 0) local label = Instance.new("TextLabel") label.Size = UDim2.new(1, 0, 1, 0) label.BackgroundTransparency = 1 label.Text = name label.TextColor3 = color label.Font = Enum.Font.SourceSansBold label.TextSize = 14 label.Parent = billboard billboard.Parent = instance end local function removeESP(instance) if instance:FindFirstChild("MenuESP") then instance.MenuESP:Destroy() end if instance:FindFirstChild("ESPLabel") then instance.ESPLabel:Destroy() end end ESPTab:CreateToggle({ Name = "Guard / NPC ESP", CurrentValue = false, Callback = function(Value) States.GuardESP = Value end, }) ESPTab:CreateToggle({ Name = "Item / Prop ESP", CurrentValue = false, Callback = function(Value) States.ItemESP = Value end, }) -- Visual Engine Loop task.spawn(function() while task.wait(1) do if States.GuardESP then for _, npc in pairs(getNPCs()) do createESP(npc, Color3.fromRGB(255, 0, 0), "GUARD") end else for _, npc in pairs(getNPCs()) do removeESP(npc) end end if States.ItemESP then for _, obj in pairs(workspace:GetChildren()) do if obj:IsA("Tool") or obj:FindFirstChild("ProximityPrompt") then createESP(obj, Color3.fromRGB(0, 255, 100), obj.Name) end end else for _, obj in pairs(workspace:GetDescendants()) do if obj:IsA("Tool") or obj:FindFirstChild("ProximityPrompt") then removeESP(obj) end end end end end) -- ============================================================================= -- MISC TAB -- ============================================================================= MiscTab:CreateSlider({ Name = "Field of View (FOV)", Min = 70, Max = 120, Increment = 1, CurrentValue = 70, Callback = function(Value) workspace.CurrentCamera.FieldOfView = Value end, }) MiscTab:CreateButton({ Name = "Full Brightness", Callback = function() game:GetService("Lighting").Brightness = 2 game:GetService("Lighting").ClockTime = 14 game:GetService("Lighting").FogEnd = 100000 game:GetService("Lighting").GlobalShadows = false end, }) Rayfield:LoadConfiguration()