PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

FullscreenChanged

Fires if the user’s full screen mode is changed.
The event will only fire on desktop devices that can toggle full screen mode. The game will always be in full screen on mobile devices and consoles.

Parameters

Name Type Default Description

Code Samples


Full Screen Mode Detection

A LocalScript that demonstrates how you can detect whether a game is in full screen or not.

local GameSettings = UserSettings().GameSettings

local function checkFullScreenMode()
	local inFullscreen = GameSettings:InFullScreen()
	if inFullscreen then
		print("Full Screen mode enabled!")
	else
		print("Full Screen mode disabled!")
	end
end

checkFullScreenMode()
GameSettings.FullscreenChanged:Connect(checkFullScreenMode)