Only other player can see the BillboardGui

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I want to the BillboardGui is only others player can see it.

  1. What is the issue? Include screenshots / videos if possible!

Like this:
player1 (myself)

player2

player3

This involves local script. You should know local scripts before you make this topic.

1 Like

just do this

wait(3)
local GUI = -- Identify the GUI
if Gui.Parent.Parent.Name == script.Parent.Parent.Name then
GUI.Enabled = false
end

make this a local script in StarterGui
hold on im testing this

But that will not work, instead no one can see the GUI. You need to use an if statement to check if the player has the ability to use that GUI.

@ItzMeZeus_IGotHacked Please don’t discourage the OP. I wouldn’t assume that.


You can achieve this in multiple ways. You can go about it by using a whitelist, tables or simply disabling the GUI by getting the player’s name or UserId.

Here’s a very basic way:

local player = game.Players.LocalPlayer
local gui = destination to billboard gui -- Wherever your gui is located
if player.Name = "55167233gf" then 
gui.Enabled = false 

However, an exploiter can easily see this, so you can alternatively do it on the server.

game.Players.PlayerAdded:Connect(function(player)
if player.Name = "55167233gf" then 
game.Players:WaitForChild(player).PlayerGui.Gui.Enabled = false

Alternatively by using a for loop.

for i,v in pairs(game:GetService("Players"):GetPlayers() do
if v.Name = 55167233gf or v.UserId = 'insert your UserId here'
v:WaitForChild("PlayerGui").Gui.Enabled = false
1 Like

This should do it
Server Script in ServerScriptService with your BillBoardGUI as the child of the script

local GUI = script["Your GUI name here"]

game.Players.PlayerAdded:Connect(function(plr)
	wait(3)
	GUI:Clone().Parent = plr.Character.Head
end)

Local Script in StarterGui

wait(5) -- Let the character load in and the BillBoardGui get it's parent changed
local GUI = script.Parent.Parent.Character.Head.BillboardGui
if GUI.Parent.Parent.Name == script.Parent.Parent.Name then
	GUI.Enabled = false
end

The way i tested it was by using the Test thing in studio and doing a local server with 2 players

1 Like

Thank you for reminding me to put it in a server script, however I’m just telling him that it won’t work.

Thanks for enlightening me. I will be more careful.

1 Like