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

How to make player specific gui?

Hi there, I was wondering if there is a way for me to script a player specific gui. So that the developers and owner have an other gui than the normal players. I am not very good at scripting myself so it would be nice if you could elaborate about how I need to script in Thank you in advance!

1 answer

✓ Accepted answer

You can make a player specific GUI. One way you can go about this is when a player joined, it checks the name of the player(or you could check the UserId). You can then set what player name it should look for, and if they join, then you can clone a gui and insert it into their PlayerGui.

6 comments

0

Could you give me a script example?

0

Im not going to outright give you the script, but I can help you if you give it a go

0

local players = {"Arceus150114", "yoloswaggyyoloswag"} local gui = game.ServerStorage.DevGui game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:connect(function(chr) for i = 1, #players do if players[i] == plr.Name then gui:Clone().Parent = plr:WaitForChild("StarterGui") end end end) end)

0

That's good, but you don't want to ever address the StarterGui. You want it cloned into the PlayerGui

0

Thank you so much!

0

No problem! :)

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