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

Help withTextBox ?

Asked by
KAAK82 16
10 years ago
function onClicked()

local player=script.Parent.Parent.Parent.Parent
local character=player.Character
local humanoid=character:findFirstChild("Humanoid")
local textBox=script.Parent.TextBox

local value=tostring(textBox.Text)
if value~=nil then
-- Code
end
end
script.Parent.ImageButton.MouseButton1Down:connect(onClicked)

would this be Compatible with both Letters and Numbers?

0
I don't quite understand what you are asking VariadicFunction 335 — 10y

1 answer

Log in to vote
0
Answered by
Tesouro 407 Moderation Voter
10 years ago

I think anything in a textbox text is string, tostring() not needed.

0
k, thnx KAAK82 16 — 10y
0
also, I guess both numbers and letters wwill work? KAAK82 16 — 10y
0
yeah Tesouro 407 — 10y
0
:D KAAK82 16 — 10y
Ad

Answer this question