Can it be Copy Text when I clicked button?

Is it possible to copy some text through Roblox Studio? (For example, a button that when clicked makes some text go to your keyboard).

I tried to copy textbox.Text but when I clicked textbox, textbox.Text is cleaning

I do not believe that there is a way to do that. What do you want it for? You could have a string value in the player and when they click Copy, you put the text into that string value. Then whenever they press a “paste” button you can copy the string value’s text.

I found how I can make, I tried then its working
gif:https://gyazo.com/b1293db4a520ae16e5222b25c3d15e33

while true do
    game.StarterGui.ScreenGui.Textl.Text = "abc"
    wait(0.25)
end

first click textbox then wait the text, then double click the text then Copy

I don’t understand what you’re trying to do, can you explain in more detail please?

If anyone would like to do this without using a while true do loop, you can make it like this:

TextBox.ClearTextOnFocused = false

and then whenever you click on it, the text will not dissappear and you can copy it.