local coreGui = game:GetService("CoreGui") local starterGui = game:GetService("StarterGui") local inputService = game:GetService("UserInputService") local hasLoaded = false local function notify(title, content) starterGui:SetCore("SendNotification", { ["Title"] = title, ["Text"] = content }) end local supportedPlaces = { 6839171747 -- This should support most floors and subfloors } if table.find(supportedPlaces, game.PlaceId) then notify("Hiding Spot Disabler", "Loading... (This script does not yet support all floors and subfloors)") local map = game:GetService("Workspace"):WaitForChild("CurrentRooms") local toggle = false local function create(class, parent, name) local newInstance = Instance.new(class, parent) if name then newInstance.Name = name end return newInstance end for _, asset in pairs(coreGui:GetChildren()) do if asset.Name == "HideToggle" and asset:isA("ScreenGui") then asset:Destroy() end end local newUI = create("ScreenGui", coreGui, "HideToggle") newUI.IgnoreGuiInset = false newUI.ResetOnSpawn = false local mainBtn = create("TextButton", newUI, "Toggle") mainBtn.Size = UDim2.fromScale(0.3, 0.085) mainBtn.Position = UDim2.fromScale(0.01, 0.01) mainBtn.BackgroundColor3 = Color3.fromRGB(150, 0, 0) local ratioConstraint = create("UIAspectRatioConstraint", mainBtn, "4:1 restraint") ratioConstraint.AspectRatio = 4 local corners = create("UICorner", mainBtn, "Corners") corners.CornerRadius = UDim.new(0.3, 0) local stroke = create("UIStroke", mainBtn, "Border") stroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border stroke.BorderStrokePosition = Enum.BorderStrokePosition.Inner stroke.StrokeSizingMode = Enum.StrokeSizingMode.ScaledSize stroke.Color = Color3.new(1, 0, 0) stroke.Thickness = 0.075 local label = create("TextLabel", mainBtn, "Label") label.BackgroundTransparency = 1 label.TextScaled = true label.Size = UDim2.fromScale(0.9, 0.9) label.Position = UDim2.fromScale(0.05, 0.05) label.TextColor3 = Color3.new(1, 0, 0) label.Font = Enum.Font.Oswald label.Text = "Disable Hiding" local stages = { ["active"] = { ["bgColor"] = Color3.fromRGB(0, 150, 0), ["strokeColor"] = Color3.new(0, 1, 0), ["textColor"] = Color3.new(0, 1, 0) }, ["inactive"] = { ["bgColor"] = Color3.fromRGB(150, 0, 0), ["strokeColor"] = Color3.new(1, 0, 0), ["textColor"] = Color3.new(1, 0, 0) } } mainBtn.MouseButton1Click:Connect(function() mainBtn.Interactable = false toggle = not toggle if toggle then mainBtn.BackgroundColor3 = stages.active.bgColor stroke.Color = stages.active.strokeColor label.TextColor3 = stages.active.textColor label.Text = "Enable Hiding" notify("Hiding Spot Disabler", "Disabled hiding spots.") else mainBtn.BackgroundColor3 = stages.inactive.bgColor stroke.Color = stages.inactive.strokeColor label.TextColor3 = stages.inactive.textColor label.Text = "Disable Hiding" notify("Hiding Spot Disabler", "Enabled hiding spots") end end) inputService.InputBegan:Connect(function(gameProcessed, key) if gameProcessed and key.KeyCode == Enum.KeyCode.H then mainBtn.Interactable = false toggle = not toggle if toggle then mainBtn.BackgroundColor3 = stages.active.bgColor stroke.Color = stages.active.strokeColor label.TextColor3 = stages.active.textColor label.Text = "Enable Hiding" else mainBtn.BackgroundColor3 = stages.inactive.bgColor stroke.Color = stages.inactive.strokeColor label.TextColor3 = stages.inactive.textColor label.Text = "Disable Hiding" end end end) targetNames = { "Bed", "Rooms_Locker", "Toolshed", "Wardrobe" } while task.wait(0.05) do for _, room in pairs(map:GetChildren()) do if room:FindFirstChild("Assets") then for _, asset in pairs(room.Assets:GetChildren()) do if table.find(targetNames, asset.Name) and asset:FindFirstChild("HidePrompt") then asset.HidePrompt.Enabled = not toggle elseif asset.Name == "Wardrobes" and room.Name == "50" then for _, closet in pairs(asset.Wardrobes:GetChildren()) do if closet.Name == "Wardrobe" and closet:FindFirstChild("HidePrompt") then closet.HidePrompt.Enabled = not toggle end end end end end end end if not hasLoaded then hasLoaded = true notify("Hiding Spot Disabler", "Successfully loaded. Use the on-screen button or 'H' key to toggle") end else notify("Hiding Spot Disabler", "This place is not currently supported by v1.06072026") end