I’m trying to get the client to print the number inputted into the textbox
My issue is that it appears the script isn’t running when the textbox is updated
I’ve looked for solutions, I’ve even copied and pasted a script from another topic but it still doesn’t seem to work, any suggestions?
Here’s my script:
local generationSelection = game.StarterGui.ScreenGui.generationSelection
local textbox = generationSelection.textbox
local button = generationSelection.button
textbox:GetPropertyChangedSignal("Text"):Connect(function()
textbox.Text = textbox.Text:gsub("%D","")
print(textbox.Text)
end)
I’d also like to mention that I don’t want any characters other than numbers to pass through