minecrafter206

Roblox getclipboard (script-ware)

May 29th, 2021
2,660
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Made by https://forum.robloxscripts.com/member.php?action=profile&uid=8368
  2.  
  3. getgenv()["getclipboard"] = function()
  4.     local function step_1()
  5.         keypress(0x11)
  6.         keypress(0x56)
  7.     end
  8.     local function step_2()
  9.         keyrelease(0x11)
  10.         keyrelease(0x56)
  11.     end
  12.     --; Wait for user to be inside of Roblox.
  13.     repeat wait() until isrbxactive();
  14.     local textbox = Instance.new("TextBox")
  15.     --; The location does not matter in the most cases.
  16.     textbox.Parent = game:GetService("MemStorageService")
  17.     --; Focus on the textbox.
  18.     textbox:CaptureFocus()
  19.     step_1()
  20.     wait()
  21.     step_2()
  22.     return textbox.Text
  23. end
RAW Paste Data