local V=script.Parent.LoadingFrame local S=game:GetService("\071\117\105\083\101\114\118\105\099\101")local W=game.Players.LocalPlayer S:SetGameplayPausedNotificationEnabled(false)local function A()if W.GameplayPaused then V.Visible=true else V.Visible=false end end;(W:GetPropertyChangedSignal("\071\097\109\101\112\108\097\121\080\097\117\115\101\100")):Connect(A)
-- 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)
