I've seen some games where only the creator had a Gui and others not. How do I do that?
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.
1 | local owner = "OWENRNAMEHERE" |
2 | local gui = game.ServerStorage.Gui |
3 |
4 | game.Players.PlayerAdded:connect( function (plr) |
5 | if plr.Name = = owner then |
6 | gui:Clone().Parent = plr.PlayerGui |
7 | end |
8 | end ) |
replace the "gui" variable with your gui location. And obviously the owner name string to your name.
Have a good one!