Hey is there a way to disable the player controls so they cant press things by mistake while chatting ?
I have multiple keybinds in my game and more to come so I don’t want players to press something by mistake while chatting to each other yknow?
Hey is there a way to disable the player controls so they cant press things by mistake while chatting ?
I have multiple keybinds in my game and more to come so I don’t want players to press something by mistake while chatting to each other yknow?
yes There is a way to do this!
Example:
local uis = (“UserInputService”)
uis.InputBegan:Connect(function(key,nottyping)
if key.KeyCode == Enum.KeyCode.E then
if nottyping then
print(“Pressed E And Not Typing!”)
end
end
end)
İ Hope this helps!
so this means ill need to do it for each keybind right ?
yes it should work! because “nottyping” means key pressed when player “Playing” Not “Chatting”
alright thank you, ill try using this now.