Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make player specific gui?

Asked by 4 years ago

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

Log in to vote
1
Answered by 4 years ago

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.

0
Could you give me a script example? Arceus150114 2 — 4y
0
Im not going to outright give you the script, but I can help you if you give it a go DarkDanny04 407 — 4y
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) Arceus150114 2 — 4y
0
That's good, but you don't want to ever address the StarterGui. You want it cloned into the PlayerGui DarkDanny04 407 — 4y
View all comments (2 more)
0
Thank you so much! Arceus150114 2 — 4y
0
No problem! :) DarkDanny04 407 — 4y
Ad

Answer this question