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

Scripts Activating When Chatting?

Asked by
Laxely 3
7 years ago

Hi, I'm using UserInputService to make a script that shoots things when you press a certain key. The script works 100% fine but anytime I'm typing something in chat the script activates anytime I press that certain key when chatting. Is there any way of making it so that the script doesn't activate when it's pressed during chatting?

Any help is greatly appreciated, thanks.

0
Seen it happen in other games, idk if there is a fix JSAcela 25 — 7y
0
damn rip Laxely 3 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

Hmm... I think there is an event when they enter chat so when that fires unbind it and rebind it when they leave. I can't think of any other way

0
I'll try what I can, I think I'll just end up using the mouse.KeyDown instead. It's pretty stupid how roblox wants us to use userinputservice but it has more problems than mouse.KeyDown Laxely 3 — 7y
0
mmkk.. but I really don't recommend using it User#15461 0 — 7y
Ad

Answer this question