What I would do is detecting input by using the activated function, then i would make it communicate to the server by remotevents, client for fireserver, server for a onserverevent function and checks if a player has enough and gets the title if the player has enough, created by billboardguis.
(Alternatively you can just search from the toolbox of a title script or use DevHub for assistance)