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

Help withTextBox ?

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?

1 comment

0

I don't quite understand what you are asking

1 answer

✓ Accepted answer

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

4 comments

0

k, thnx

0

also, I guess both numbers and letters wwill work?

0

yeah

0

:D

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