G2A Many GEOs
SHARE
TWEET

Untitled

a guest Mar 31st, 2020 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local silentname = 0
  2. local windowmade = 0
  3. local windowactive = 0
  4. local origName = ""
  5.  
  6. local function getOriginalName()
  7.  
  8.   origName = client.GetConVar("Name")
  9.  
  10. end
  11. getOriginalName()
  12. local function setName(name)
  13.   client.SetConVar("name", name);
  14. end
  15. local boldletters = {
  16.  
  17.  
  18.  
  19.   "𝗮","𝗯","𝗰","𝗱","𝗲","𝗳","𝗴","𝗵","𝗶","𝗷","𝗸","𝗹","𝗺","𝗻","𝗼","𝗽","𝗾","𝗿","𝘀","𝘁","𝘂","𝘃","𝘄","𝘅","𝘆","𝘇",
  20.   "𝗔","𝗕","𝗖","𝗗","𝗘","𝗙","𝗚","𝗛","𝗜","𝗝","𝗞","𝗟","𝗠","𝗡","𝗢","𝗣","𝗤","𝗥","𝗦","𝗧","𝗨","𝗩","𝗪","𝗫","𝗬","𝗭",
  21.   "𝟬","𝟭","𝟮","𝟯","𝟰","𝟱","𝟲","𝟳","𝟴","𝟵","'"," "
  22. }
  23.  
  24. local window = gui.Window(window, "Clantag Changer", 200, 200, 180, 172)
  25. local function refresh(x1,y1,x2,y2,active)
  26.   if windowmade == 0 then
  27.     local grp1 = gui.Groupbox(window, "Clantag", 0,10,175,130)
  28.     local clantag =  gui.Editbox( grp1, "Clantag","" )
  29.     local resetbutton = gui.Button(grp1, "Reset Clantag", function()
  30.  
  31.     setName(origName)
  32.     end)
  33.     local output = ""
  34.     local button = gui.Button(grp1, "Set Clantag", function()
  35.     local letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' "
  36.  
  37.     local input = clantag:GetValue()
  38.  
  39.     for i=1, #input do
  40.       local char = input:sub(i,i)
  41.       output = output .. boldletters[letters:find(char)]
  42.       setName(output .. " " .. origName)
  43.     end
  44.     output = ""
  45.     end)
  46.  
  47.     windowmade = 1
  48.   end
  49. end
  50.  
  51. local custom  = gui.Custom( window, "Options", 0, 0, 0, 0, refresh)
  52.  
  53. local function openwindow()
  54.   if gui.Reference("MENU"):IsActive() and windowactive == 0 then
  55.     window:SetActive(1)
  56.     windowactive = 1
  57.   elseif not gui.Reference("MENU"):IsActive() and windowactive == 1 then
  58.     window:SetActive(0)
  59.     windowactive = 0
  60.   end
  61. end
  62.  
  63. callbacks.Register("Draw", openwindow)
  64.  
  65. local function makenamesilent()
  66.   if windowmade == 1 then
  67.     local lp = entities.GetLocalPlayer()
  68.     if silentname == 0 and lp ~= nil then
  69.       setName("\n\xAD\xAD\xAD\xAD")
  70.       curtime = globals.CurTime()
  71.       silentname = 1
  72.     end
  73.     if silentname == 1 and globals.CurTime() >= curtime + 0.1 then
  74.       setName(origName)
  75.       silentname = 2
  76.     end
  77.  
  78.     if lp == nil then
  79.       silentname = 0
  80.     end
  81.   end
  82. end
  83.  
  84. callbacks.Register("Draw",makenamesilent)
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top