TextBot not changing ".Text" properties when i type a number in it

This is a support category for asking questions about how to get something done on the Roblox websites or how to do something on Roblox applications such as Roblox Studio.

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to get my server-script to change the properties of the TextBox while typing numbers in it

  2. What is the issue? Include screenshots / videos if possible!
    When i try typing numbers in the textbox it wouldn’t change the .Text propertys
    so my py code receives nothing when expected a number.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    yes.

if theres anything wrong with this code and the python one, let me know

lua:

local textBox = script.Parent
local textButton = script.Parent.TextButton 
local gameNumber = "" -- left it blank so when the getpropertychangesignal activates it will change this value and the .Text property which it did not.


textBox:GetPropertyChangedSignal("Text"):Connect(function()
	gameNumber = textBox.Text
	print("Game number: ", gameNumber)  
end)


textButton.MouseButton1Click:Connect(function()
	local response = game:GetService("HttpService"):GetAsync("http://localhost:81/open_url?game_number=" .. gameNumber)
	print("Response from server: ", response)  
end)

python (some part of my code):


@app.route('/open_url', methods=['GET'])
def open_url():
    try:
        game_number = request.args.get('game_number')
        print("Game number received: ", game_number)  # Add this line
        url = "www.roblox.com/games/{}".format(game_number)
        webbrowser.open(url, new=2)
        return jsonify({"success": f"Opened URL: {url}"})
    except Exception as e:
        return jsonify({"error": f"Failed to open URL: {e}"}), 500

I don’t understand what you mean by TextBox not changing:

textBox:GetPropertyChangedSignal("Text"):Connect(function()
	gameNumber = textBox.Text
	print("Game number: ", gameNumber)  

Here you are not changing the text in the TextBox, you’re just getting the text and putting it in a variable.

I want to get my server-script

Try running this with a local script using Remote Events to send Text changes to the server.

Im guessing he means nothing is printing