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

How do I make a Billboard Gui which only the player who activated it can see?

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?

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.

2 comments

0

By PlayerGui do you mean StarterGui?

0

Nope. If you put the GUI in the Players Gui, it will show locally

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.