Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

ROBLOX Custom Chat help?

I know that when you disable chat as an enum your "/" button is somewhat useless for the button down. Is there a scripting way to fix that, or it a perminant thing. The buttonup is fine, the button down is messed up.

2 comments

0

Look into userinputservice, it has an enum for "/"

0

If you are still having trouble, just use KeyUp instead of KeyDown. This is a pretty old trick, but it still works just as well.

1 answer

✓ Accepted answer

I tested this in Studio (Edit > Solo Mode), using a local script to run this:

game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
	print(key,string.byte(key))
end)
game.Players.LocalPlayer:GetMouse().KeyUp:connect(function(key)
	print(key,string.byte(key))
end)

It seems to pick up the "/" char.

Try looking for the "/" as a string.byte. ( 47 == "/" )

This discussion is preserved as it was. New answers, comments, and votes are closed.