I am making a press e to pick up script, whereby when one player touches the item, it will show the Billboard gui telling the player to press "e" to pick up. However, when someone is near it, the whole server will be able to see the billboard gui. How do I make it such that only the person who touches it will see the billboard gui?
COMMUNITY QUESTION
How do I make a Billboard Gui which only the player who activated it can see?
2 answers
You can put the billboard Gui inside of the players PlayerGui, and set it's Adornee to the part you want it on. Then only that player will be able to see the gui.
Place your gui inside Replicated Storage. Script is subject to errors I’m answering on my phone.
Script inside the object
script.Parent.Touched:connect(function(hit)
local p = game.Players:GetPlayerFromCharacter(hit.Parent)
local g = game.ReplicatedStorage.GUI:Clone() —Change GUI to what your gui is named.
if p.PlayerGui:FindFirstChild(“GUINameHere”) then
return end
else
g.Parent = p.PlayerGui
g.Adornee = script.Parent
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
By PlayerGui do you mean StarterGui?
Nope. If you put the GUI in the Players Gui, it will show locally