Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you do the “gameplay paused” popup?

Asked by 2 years ago

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

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

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!

Ad

Answer this question