Jump to content

How to know if the player is typing something in a specified GUI


Recommended Posts

I wanna do it like;

function isPlayerTypingSomething(edit)

  if blah then

   isTyping = true

 else

   isTyping = false

 end

  return isTyping 

  end

end

 

To check if the localPlayer is typing something in the edit-box or not, if he stops typing it will set isTyping value into false, and if he's typing it will set isTyping value into true, I hope you get it.

Link to comment
12 hours ago, Leo Messi said:

I wanna do it like;

function isPlayerTypingSomething(edit)

  if blah then

   isTyping = true

 else

   isTyping = false

 end

  return isTyping 

  end

end

 

To check if the localPlayer is typing something in the edit-box or not, if he stops typing it will set isTyping value into false, and if he's typing it will set isTyping value into true, I hope you get it.

Suggestion for this script.

This is a long hassle, here's an easier method.

function isPlayerTyping (player) -- change this
  return blah -- this is the function that checks if he's typing. function returns true/false, result will be the same
end

Much faster C:

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...