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

How do I set a billboard GUI so that only the player with the GUI on them can see it?

Asked by 6 years ago

I have a stamina Billboard gui that I want only the person with the GUI to be able to see, so that others can't see their stamina GUI.

1 answer

Log in to vote
0
Answered by 6 years ago

The easiest way to do this is to set the BillboardGUI's parent to StarterGUI.

After you have done that, create a LocalScript and when it calls for the Billboard Gui, add this in:

local bgui = game.Players.LocalPlayer.PlayerGui.BillboardGui --Change "BillboardGui" to the name of your BillboardGui

bgui.Adornee = game.Workspace.Part --Change the path to your object.

If you need anymore help, I'll be glad to assist. :)

Ad

Answer this question