Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you do the “gameplay paused” popup?

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.

1 answer

✓ Accepted answer

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!

This discussion is preserved as it was. New answers, comments, and votes are closed.