Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

ROBLOX Custom Chat help?

Asked by 10 years ago

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.

0
Look into userinputservice, it has an enum for "/" Lacryma 548 — 10y
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. User#11893 186 — 10y

1 answer

Log in to vote
1
Answered by
hiccup111 231 Moderation Voter
10 years ago

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 == "/" )

Ad

Answer this question