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

How do i make it where everyone except me can see something?

Problem

How can I make something appear for everyone except me. I want to do this for a overhead gui displaying the players Rank,Level and Health. The overhead gui works fine I just want the player to only be able to look at others gui and no mine.

Attempt

1: I tried to have the billboard gui appear in the server. And then delete it self in the client and because of FE only the player would be able to see that his billboard gui was being destroyed. Although this wasn't the case. Even with this all the clients and the server know that it was destroyed and couldn't see the billboard.

This is my script There are plenty more other scripts that concern with this but the don't matter with this problem.

Server Script

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function()
		Player.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
	local char = Player.Character or Player.CharacterAdded:Wait()
	local Bill = game.ReplicatedStorage["Overhead Bills"].PlayerBill:Clone()
	Bill.Parent = char.Head
	local MaxHealth = char.Humanoid.MaxHealth
    local Health = char.Humanoid.Health
	Bill.Frame.HealthNum.Text = Health.."/"..MaxHealth
	Bill.Frame.PlayerName.Text = Player.Name
	if Player:WaitForChild("Stats").Rank.Value == 1  then
	Bill.Frame.PlayerRank.Text = "Rank D"
end
if Player:WaitForChild("Stats").Rank.Value == 2  then
	Bill.Frame.PlayerRank.Text = "Rank C"
end 
if Player:WaitForChild("Stats").Rank.Value == 3  then
	Bill.Frame.PlayerRank.Text = "Rank B"
end
if Player:WaitForChild("Stats").Rank.Value == 4  then
	Bill.Frame.PlayerRank.Text = "Rank A"
end    
if Player:WaitForChild("Stats").Rank.Value == 5  then
	Bill.Frame.PlayerRank.Text = "Rank S"
end
char.Humanoid:getPropertyChangedSignal("Health"):Connect(function()
	wait()
 
    local MaxHealth = char.Humanoid.MaxHealth
    local Health = char.Humanoid.Health
	
	local math = ( Health / MaxHealth )
	
	Bill.Frame.HealthNum.Text = Health.."/"..MaxHealth
	Bill.Frame.HealthLocater.Healthbar:TweenSize(UDim2.new(math,0,1,0),"Out","Quad",.25)
	 local healthColor = Color3.fromRGB(255,0,0):Lerp(Color3.fromRGB(170,0,255),char.Humanoid.Health/char.Humanoid.MaxHealth)
	Bill.Frame.HealthLocater.Healthbar.BackgroundColor3 = healthColor
	game.ReplicatedStorage["Overhead Bills"].RemoteEvent:FireClient(Player)
	end)
	end)
	end)

Local Script

local Player = game.Players.LocalPlayer
local char  = Player.Character or Player.CharacterAdded:Wait()

game.ReplicatedStorage["Overhead Bills"].RemoteEvent.OnClientEvent:Connect(function()
	char.Head:WaitForChild("PlayerBill"):Destroy()
end)

If anyone can help me with this it would be very much appreaciated

Regards, Bl_ueHistory

1 comment

0

C o N f U s E

1 answer

✓ Accepted answer

Bilboard GUI has a property called PlayerToHideFrom. Just use it.

Bill.PlayerToHideFrom = Player

1 comment

0

Omg tysm I thought no one was going to help me but you did. And it was so simple!

This discussion is preserved as it was. New answers, comments, and votes are closed.