Hello,
How do i make if i click a TextButton, the textbox resets the text.
Thank you to anyone.
Hello,
How do i make if i click a TextButton, the textbox resets the text.
Thank you to anyone.
TextButton.MouseButton1Click:Connect(function()
TextBox.Text = ""
end)
Please use Documentation - Roblox Creator Hub for such simple questions
Thats what i wrote but it didn’t work.
My textbox is updating because its a updating textbox
Please elaborate on “updating textbox”
And…? Does setting the TextBox Text to “” does not set it?
No.
djskadojsajdlksajdklsaljkdksald
Idk if this is the same but maybe try adding a space in between the quotation marks?
TextBox.Text = “ “
Yeah, i tried that and it works, but when i type text in the textbox again, then the max limit of letters is not 4 but 3.
And then when i try to reset the text again it doesn’t work anymore.
May I see the scripts for the TextBox, and the reset text button, if you created any.
local numbers = {
Zero = 0,
One = 1,
Two = 2,
Three = 3,
Four = 4,
Five = 5,
Six = 6,
Seven = 7,
Eight = 8,
Nine = 9
}local UI = script.Parent.Parent
local Input = script.Parentfor _, element in ipairs(UI:GetChildren()) do
if element:IsA(“TextButton”) then
element.Activated:Connect(function ()
Input.Text = Input.Text … numbers[element.Name]
end)
end
end