How do I disable clipboard in certain textboxes?

I was wondering how you disable clipboard from being copied and pasted at each textbox. I’m making an application center for each application just to prevent copy and paste. How do I do it?

There’s no way to disable a machine’s clipboard on textboxes, just create a system to detect exactly similar responses.

The only way I can imagine this being implemented is checking keystrokes, see when they press “v” if the last keystroke was cntrl, that way you know they pasted.

At the end of the day, this is fundamentally flawed for your use case. People can just copy the text and write it by hand, so doing @wevetments suggestions is best.

This is not the only way a person can access their clipboard however.

2 Likes

You cannot prevent direct copy+pasting into textboxes. What you can do that’s just as good is keep an array of previous text entries, and make sure the player isn’t repeatedly passing the same message.

so use string.find() with a table of previous entries to achieve this, nice and simple.

also what wevemetments said

Hm. How do I do it on local script for textbox?

You answered your own question. That being said, as Scripting Support is not a place to ask for code, there are three things you should look up on the Developer Hub as pointers for how to accomplish this.

  1. TextBox documentation
  2. The string library
  3. String patterns

To be quite honest though, overall, I wouldn’t recommend doing this. Considering your application center seems to be one of those manual-type centers, you can leave it up to your readers to check for this. Human error does exist though.

I find that once you start receiving a high volume of applications, this won’t become scalable anymore (it already isn’t - if you’re using Trello, even more so). Blocking copy-paste doesn’t prevent what you think it will and if you’re looking to prevent same answers, people can just change it up slightly AND you’ll have to search every single application in the database to confirm no answers are the same. Not worth it.

Oh, ok. i’ll try my best to do it.