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

Why wont this GUI for a certain person only work?

I just it to give it a certain person

repeat wait() 
until game.Players.LocalPlayer 

Player = game.Players.LocalPlayer 
Gui = game.StarterGui.ServerSystem.Button

if Player.Name == "Player" then 
Gui.Visible = true
else 
Gui.Visible = false
end

1 answer

Rather than modifying StarterGui, you should instead modify the player's PlayerGui.

Instead of this:

Gui = game.StarterGui.ServerSystem.Button

You should do this:

Gui = player.PlayerGui.ServerSystem.Button

This access the LocalPlayer's PlayerGui and its contents.

I hope this helps. Good luck!

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