A screengui that covers everything including ui elements

you might need to use roblox’s API and the services relating to StarterGUI at this point on

i might need to make what your saying ill try to find a srcipt for it

shadow do u wanna collab or add me just for fun or maybe not, but also the OP

1 Like

Watch Roblox VR 2024.04.28 - 15.29.17.06 | Streamable watch this i got the teleportgui thing to work but i need to make it on leaveevent and make teleportgui show up somehow

1 Like

whats the script for context and what exactly ur trying to achieve deep into more diagnosis so we can finish this long post

i already told you a blackout screen that covers everything its possible but i believe i can do it somehow

alright ill send u a script that even covers the Core gui if possible if u want but dont use it for roblox restrictions

i wont my game will be private and for testing purposes only

the script is created i will test it now it will take long for desired effect

local StarterGui = game:GetService("StarterGui")
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local fullScreenGui = Instance.new("ScreenGui")
fullScreenGui.Parent = playerGui
fullScreenGui.Name = "AdvancedFullScreenOverlay"
fullScreenGui.DisplayOrder = 2147483647
fullScreenGui.IgnoreGuiInset = true
fullScreenGui.ResetOnSpawn = false

local coverFrame = Instance.new("Frame")
coverFrame.Parent = fullScreenGui
coverFrame.Name = "CoverFrame"
coverFrame.Size = UDim2.new(1, 0, 1, 0)
coverFrame.Position = UDim2.new(0, 0, 0, 0)
coverFrame.BackgroundColor3 = Color3.new(0, 0, 0)
coverFrame.BackgroundTransparency = 0.4
coverFrame.BorderSizePixel = 0
coverFrame.ZIndex = 15

local function adjustForCoreGui()
	if UserInputService:IsClient() then -- Check if the script is running on the client
		local topBarOffset = UserInputService:GetPlatform() == Enum.Platform.Windows and 36 or 0
		coverFrame.Size = UDim2.new(1, 0, 1, topBarOffset)
		coverFrame.Position = UDim2.new(0, 0, 0, -topBarOffset)
	else
		warn("adjustForCoreGui can only be called on the client.")
	end
end

local function setCoreGuiVisibility(isVisible)
	local coreGuis = {
		Enum.CoreGuiType.All,
		Enum.CoreGuiType.Backpack,
		Enum.CoreGuiType.Chat,
		Enum.CoreGuiType.EmotesMenu,
		Enum.CoreGuiType.Health,
		Enum.CoreGuiType.PlayerList,
		Enum.CoreGuiType.Backpack
	}
	for _, guiType in ipairs(coreGuis) do
		StarterGui:SetCoreGuiEnabled(guiType, isVisible)
	end
end

local function toggleOverlay()
	if fullScreenGui.Enabled then
		fullScreenGui.Enabled = false
		setCoreGuiVisibility(true)
	else
		fullScreenGui.Enabled = true
		setCoreGuiVisibility(false)
		adjustForCoreGui()
	end
end

UserInputService.InputBegan:Connect(function(input, gameProcessed)
	if gameProcessed then return end
	if input.KeyCode == Enum.KeyCode.K then
		toggleOverlay()
	end
end)

RunService.RenderStepped:Connect(function()
	adjustForCoreGui()
end)
1 Like

also again i put this in my screengui?

1 Like

yes local script and script object test both too

1 Like

it doesnt do as supposed to maybe try to parent it to coregui and make the blackout more black instead of transparent

its okay dont waste your time on me afterall im a noob at this lua

roblox restricts the ability to parent scripts directly into the coregui apprantly so.

try this instead…

create a screengui object in the startergui folder
inside the screengui add a frame or an image label
set its size to cover the entire screen (UDim2.new (1,0,1,0
set background color 3 to color 3 new (0,0,0) or image color 3 if ur using the image color 3
set background transparency to 0 for full opacity
place a local script inside the screen gui or the blackout element (frame/imagelabel) to control effect

1 Like

game.Players.LocalPlayer.PlayerGui.ScreenGui.Parent = game.CoreGui try this maybe?

1 Like

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "BlackoutScreenGui"


local frame = Instance.new("Frame")
frame.Size = UDim2.new(1, 0, 1, 0) 
frame.BackgroundColor3 = Color3.new(0, 0, 0) 
frame.BackgroundTransparency = 0 
frame.Parent = screenGui


local localScript = Instance.new("LocalScript")
localScript.Parent = frame 


screenGui.Parent = game:GetService("CoreGui") -- possible parent

Dude, what do you not understand, this is not possible in roblox with your current permissions. Close the topic, there is no point in continuing. This is only possible with exploits.

That was a game paused Gui at the end of that video, by Roblox. That didn’t come from any script the player made. Not being able to cover or remove the Roblox menu is by design.
The closest you can get to what you’re asking is just a black Frame in a ScreenGui and this …

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All,false)

its possible i just dont know how and he didnt use exploits