Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I don't know how to store an input into a textbox into a variable help?

https://gyazo.com/110a91bea2048ba2f6c4c447a3574054

https://gyazo.com/68f03807f55b42441c972284cd0e8d24


local groupId = 123 

print(game.Players.Vecaxo:GetRankInGroup(groupId)) -- Outputs the name of the rank. 
   -- 255 is the number of the highest role set in group terms. It's the 
  --  owner basically. 
--   Guests are 0. 


if game.Players.Vecaxo:GetRoleInGroup(groupId)) < 255 then 
    print('vecaxo is not the owner of the group 123') 
end 

I'm trying to make it showed on the gui on the bricks. I want to store what is inputted into the textbox into a variable say if u put in a user id like idk 2435436, I want that to be stored in a variable.

how to store an input through a textbox into a variable is another question.

2 answers

It's actually pretty easy to read the text from a textbox!

All you have to do is read the Text property of the textbox. For example, if your TextBox was called "TextBox" in PlayerGui, you'd do this:

local groupId = game.Players.LocalPlayer.PlayerGui.TextBox.Text

Parent the GUI to the player's PlayerGui, then set its Adornee property to the desired block. Input can now be received.

This discussion is preserved as it was. New answers, comments, and votes are closed.