Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How does one detect the text typed by a user in a textbox?

Asked by
unmiss 337 Moderation Voter
9 years ago

I've seen it done. I want this text to appear on a surface GUI (textlabel) placed somewhere else, but this textbox will be a screenGUI given to a specific rank in a group only.

Anyways, all I need to know is how to fetch the text typed by the user in the textbox. I hope this doesn't get moderated.

Thanks!

0
Could you post what you have so far? ITSolarWinds 25 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

Use a local script

Mouse = game.Players.LocalPlayer:GetMouse()

Mouse.KeyDown:connect(function(key)
lowerkey = string.lower(key)
if lowerkey == "k" then
--code here
end
end)
0
I specifically said a textbox unmiss 337 — 9y
Ad

Answer this question