I've seen some games where only the creator had a Gui and others not. How do I do that?
✓ ANSWER ACCEPTED
How do I make a gui pop up for me but not for others?
1 answer
✓ Accepted answer
This is in fact very easy! All we need to do is add a player added event and check if the player is the owner!
Out this in a server script in worskapce or ServerScriptService.
local owner = "OWENRNAMEHERE"
local gui = game.ServerStorage.Gui
game.Players.PlayerAdded:connect(function(plr)
if plr.Name == owner then
gui:Clone().Parent = plr.PlayerGui
end
end)
replace the "gui" variable with your gui location. And obviously the owner name string to your name.
Have a good one!
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You clone it on a PlayerAdded event and check if you're the owner
Sorry I don't know how to do that I am new to lua