How would i put a button on only a specific player's screen?

hi, i want to make a button that only appears on my screen so that i can trigger events when im ingame. how would i do this?

You can make it so that whenever a new player joins the game, check their UserId, if it is yours then it is you joined the game and make a function to set up your buttons.

You can make this with some extremely simple code. Make a GUI and make it invisible. Then put I local script into the GUI and write the following code:

local player = game.Players.LocalPlayer

if player.Name == "YourUsernameHere" then
   script.Parent.Visible = true
end
1 Like