"RunService:Pause()" causing "The current identity (2) cannot Pause (lacking permission 1)" error in Studio

I had already created a script to pause the game (using the Pause key), but then I discovered the RunService:Pause() function.

I tried to test it (in Studio):

local RunService = game:GetService("RunService")
RunService:Pause()

But I get this error:

The current identity (2) cannot Pause (lacking permission 1)

What’s wrong?

You can’t use this in run-time scripts basically. It’s used for debugging and creating in studio environments and shouldn’t interfere with the base gameplay that would be published to the website.

Hope this helps,
-Tom :slight_smile:

This function is the equivalent of pressing Pause once the game is being tested in studio, as the wiki explains, this should only be used by a plugin or command bar, which makes total sense.

1 Like