Gameplay Paused error

I’m currently testing the GameplayPaused property and for some reason even though StreamingEnabled is enabled, I’m getting an error saying Unable to assign property GameplayPaused. Script write access is restricted. Here’s the code:

game.Players.PlayerAdded:Connect(function(players)

  wait(2);

  players.GameplayPaused = true;

end)

.GameplayPaused property can only be set in the localscript, and is then replicated to the server.

Your error is very explanatory; you can’t change the property.

You may read it, but you cannot write it.

1 Like