Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

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

Asked by 10 years ago

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

Closed as Not Constructive by Shawnyg, BlueTaslem, and User#2

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

3 answers

Log in to vote
2
Answered by 10 years ago

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)
Ad
Log in to vote
0
Answered by 10 years ago

I have made this, however...

This is NOT a REQUEST site

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. areiydenfan00 115 — 10y
Log in to vote
-3
Answered by 10 years ago

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