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

Can you help me with my TextBox Gui problem?

I just wanted to know if there is a way to put a skill into a text box then let the players put the text box as a letter and when they press the letter they pick it activate the skill. If there is can you please help me.

1 answer

✓ Accepted answer

There is a way, we would do this by checking the text boxes text and if its the key set to the skill then the skill will run.

--text box stuff up here--
--we are going to assume the text boxes variable is t--
function Skill()
print'yay' 
end

if t.Text == "/" then
plr = game.Players.LocalPlayer
mouse = plr:GetMouse()
mouse.KeyDown:connect(function(a)
if a:lower() == t.Text then
Skill()
end
end)

3 comments

0

Sorry but I have a question should I put this script in my text box?

0

One more thing it says --text box stuff up here--, do I put my skill script there?

0

No, this was just a simple example. You have to set the variables for the textboxes and other things. I hope it helped.

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