How do I disable greater-than key?

I’m trying to disable the greater-than key (>) with a localscript,

I’ve tried using ContextActionService, but it doesn’t seem to be working.

local ContextActionService = game:GetService("ContextActionService")

ContextActionService:BindActionAtPriority("DisableGreaterThan", function()
	return Enum.ContextActionResult.Sink
end, false, Enum.ContextActionPriority.High.Value, Enum.KeyCode.GreaterThan)

Any help is appreciated!

Would you be able to fill me in, on what the > key even does? To my knowledge, it does nothing unless someone scripts a reason for it.

If I remember correctly, after the “return” line of code runs, the code afterwards doesn’t run. Try putting that code, after the end before the “return” code.

it enables/disables the emote menu, to be clear I DO NOT WANT TO DISABLE EMOTE MENU ENTIRELY

First, the key to open emote menu is Period, not GreaterThan.
Second, since the emote menu is running in a CoreScript, it always has input priority over regular script, meaning it’s impossible to overwrite the keys.

The solution would be to disable emote menu using SetCoreGuiEnabled so that it would unbind the key.

Then just use a different key for your game.

1 Like

im trying to remove the enable/disable ability of it, then im making it so when you press shift and b it opens emote menu
meaning disabling the entire thing doesnt work for me

Why do you need to bind different keys to open/close emotes menu?

im adding back alignment keys, but > to open/close emote menu makes it literally not even work

I don’t think that context is bound to that key, try getting all the contexts from the service and look for the right one. Trial and error.

could you give me the list so i can look through it ?

i changed it to period and now it is working. thanks