I’m making a game and I need to add a “gameplay paused” popup that Roblox made. I can’t find any videos or anything saying how to do this. If you can, please help.
I would recommend checking out the RobloxDev page for this Player.GameplayPaused
Basically the Player object
which can be found in game:GetService("Players")
aka the Players
tab has an attribute called GameplayPaused
which is a bool value, meaning you can set it to true
or false
. This will pause the gameplay of the player if you put this in a Local Script:
local Players = game:GetService("Players") local player = Players.LocalPlayer player.GameplayPaused = true
This will also work in a normal Script but you need to retrieve the Player object differentially since LocalPlayer
can't be used in Scripts.
Hope this helped!