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

How do I make a gui pop up for me but not for others?

I've seen some games where only the creator had a Gui and others not. How do I do that?

2 comments

0

You clone it on a PlayerAdded event and check if you're the owner

0

Sorry I don't know how to do that I am new to lua

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.