-- Uses this UI instead of Roblox's for when data is loading using ContentStreaming


local LoadingFrame = script.Parent.LoadingFrame
local GuiService = game:GetService("GuiService")
local player = game.Players.LocalPlayer

GuiService:SetGameplayPausedNotificationEnabled(false)

local function onPauseStateChanged()
	if player.GameplayPaused then
		LoadingFrame.Visible = true
	else
		LoadingFrame.Visible = false
	end
end

player:GetPropertyChangedSignal("GameplayPaused"):Connect(onPauseStateChanged)
