Is it possible to block core elements from being clicked in a game?

Hello,

I was wondering if it’s possible to actually block a player in a game. Like, the user cannot leave, except, yeah, clicking the X button on computer or just close the Roblox app on mobile. But, the core buttons, can be blocked?

So I have some examples to prove that:

Example 1

So as you can see here this script may or may not block the Roblox Menu, which leaves to the leave game button:

local UIS = game:GetService("UserInputService")

UIS.InputBegan:connect(function(input,gameProcessed)
	if input.KeyCode == Enum.KeyCode.Escape then
		--possible code
	end
end)
Example 2

The buttons have some BoolValues in them. After messing a bit with Roblox’s CoreGui, I managed to find them. Probably those can be edited through some scripts:
Buttons

Example 3

This doesn’t have an image or proof, but the thing can be done, as many creepy pastas contain, crashing the player’s game (spamming some parts, I don’t know how this is done, etc.)

Maybe this is against the TOS rules, but please note, if an example works, I will contact Roblox to solve the problem! Also, this may or may not be related to development, but I want to hear your opinions.

so u mean like lag? in which a player can do anything except see the not responding text?. Its possible thought you can make a gui which is not close able and freeze the player . but i dont think its worth it .Other great option is banning the user!.If banned you can see a reason for your ban and a "leave " button

Lag? Kind of, but what do you mean with ban action?

wait let me show you… Lol wwaaitttt let me find the game i was banned on!

lol.PNG

Yeah, but I mean cannot leaving the game.

hmm you cant do that tho you can disable reset

No way to do this on your current permission level, you can unbind a lot of actions but in the end it doesn’t matter

Maybe. I am sure that the Example 2 could work

No, because regardless of if you modify them, it will always backtrack to the original version

LOL that will not work you can press “'esc” and then press “L” which makes you leave the game!

Maybe. I was wondering to what some of ypur opinions are.

typo anyways i dont think it will NOT be a good idea it will make the your roblox game get a bunch of dislikes!

The only way I see of doing this is by spoofing your game to make the server believe it has a RobloxTrustedPlace PlaceId. This would give you higher permission BaseScripts 1, 3, 4, 5

No. I don’t mean to publish the game. I meant that if that works, I report the problem to Roblox.

It would only be a local problem and they wouldn’t exactly care

hmm…i think you can probably not do it as shortcuts can still make you leave the game. As i said before

Probably. But this will not happen because I realised that this is not possible. Probably.

This is a TOS grey area.

Generally it’s a combination of bad UX and unethical practises to crash a client. Just kick them and move on, once a client is kicked, they’ve lost all connection to the main servers

It’s possible to do, but this has only happened with exploiting incidents (like the one on Meepcity).
However, why you would want to do this is not clear. I’m pretty sure your game could get content deleted for doing this.

1 Like