I've put a jump cooldown asset but when I type space in the chat my character jumps, what do I do?
COMMUNITY QUESTION
What to do if you jump when you type space in the chat? (chat and jump custom)
1 answer
i guess you are using userinputservice, so the function looks like this?
uis.InputBegan:Connect(function(player)
if yes, type this instead
uis.InputBegan:Connect(function(player, playerIsChatting) -- playerIsChatting is a bool value checking if player is typing into chat so it can be true or false.
under your if statement type this
if not playerIsChatting then -- if playerIsChatting is false then it can go, if true, then player is typing into chat and script wont go on
This discussion is preserved as it was. New answers, comments, and votes are closed.
