Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I make a GUI restricted to only one player in a game?

Like have a GUI that will perform a certain task but make it only visible to the owner of the place.

3 answers

✓ Accepted answer

Put the script in the lighting and then have an event run for PlayerAdded and if the player's name is the specific one you want the GUI for, insert the GUI into their PlayerGui.

For instance:

function newPlayer(plr)
	if plr.Name == "TheGuy" then
		game.Lighting.Gui.Parent = plr.PlayerGui
	end
end

game.Players.PlayerAdded:connect(newPlayer)

I have made this, however...

This is NOT a REQUEST site

1 comment

0

I wasnt making a request. I am asking a question, I have made the GUI, and I currently have it to where only the owner's input on the button counts, but I am wondering if it was possible.

if you go to the roblox catalog clik than on models and screan than to player entred script

This discussion is preserved as it was. New answers, comments, and votes are closed.