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

Can you help me with my TextBox Gui problem?

Asked by
red106 0
10 years ago

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

Log in to vote
-1
Answered by 10 years ago

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)
0
Sorry but I have a question should I put this script in my text box? red106 0 — 10y
0
One more thing it says --text box stuff up here--, do I put my skill script there? red106 0 — 10y
0
No, this was just a simple example. You have to set the variables for the textboxes and other things. I hope it helped. joemom33 10 — 10y
Ad

Answer this question