You can write your topic however you want, but you need to answer these questions:
What do you want to achieve?
A teleporting system that would function with a correct code. If player would type correct code in textbutton it would teleport him to a random game.
What is the issue? Include screenshots / videos if possible!
I do not know the issue yet, I have searched the script with the output.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Hi, if this script is on a script it won’t be work because of the LocalPlayer. If this script on a local script then you should change teleport line with
The first line says TextBox, but your button is a TextButton, probably that is causing your issue’s.
No, you need to identify the player in the second parameter of :Teleport()
Also, use " instead of ’ to identify strings.
If the script works, there should be a “Cannot teleport in studio” error in your output.