#Ignore keybind if chatting

1 messages · Page 1 of 1 (latest)

hoary ruin
#

Anyone know how you can do this? Whenever I chat my car starts moving because it activates the key binds instead of ignoring it. (like wasd)

FYI: I have no idea how to do scripting, so if you want to help please do it in a nutshell.

eager solsticeBOT
#

studio** You are now Level 6! **studio

hoary ruin
#

I need to hire someone for this?

sly pendant
#

Or hire ai it's free😜(not recommended)

hoary ruin
#

im just going to change it to ''how can i do it''

molten reef
#

no

#

its easy

hoary ruin
molten reef
#

second parameter in the uis function

hoary ruin
molten reef
#

it tells you if he in chat

#

just return wehn its true

hoary ruin
molten reef
#
local UIS = game:GetService("UserInputService")

UIS.InputBegan:Connect(function(key, gpe)
    if gpe == true then return end
    -- TODO: add logic
end)
shrewd storm
#

oh yeah UIS.

#

oops.

molten reef
#

yeah gpe is gameProcessedEvent

hoary ruin
shrewd storm
hoary ruin
molten reef
shrewd storm
hoary ruin
molten reef
#

you dont need to know exactly what gpe is, you just need to know that this will be true wehn the player is in chat as example

hoary ruin
molten reef
#

you got it now?woe

hoary ruin
molten reef
#

why

#

what do you not understand

hoary ruin
molten reef
#

how

#

did you script the car yourself?

hoary ruin
molten reef
hoary ruin
#

other than that idk

molten reef
#

okay but how are we supposed to help you wehn you dont even know how the car works

#

i assumed it was UIS

molten reef
hoary ruin
#

i dont know how its scripts work

native shale
native shale
shrewd storm
hoary ruin