Is it possible to click on a TextButton via script?

Hi. I’m just wondering, but is it it possible to click on TextButton(s) via script?

1 Like

Just make a function which gets called when the textButton gets clicked and use the same function to replicate the button getting clicked by calling it whenever you need to “click” the button.

2 Likes

But can you click on a text button without any remotes by using a script?

1 Like

No such built in function exists, you’ll have to script your own function for that.

1 Like

i don’t really know what you mean by that but, if you want the player to detect whenever their user interface’s button being clicked, you can always use:

script.TextButton.MouseButton1Click:Connect(function()
– your function
end)