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

How to make a billboard GUI show for other players but not for me?

I'm making a billboard GUI that contains the player's name, level, and health. I want it so that others can see it, but I can't.

-- ServerScript
local overheadGUI = game.ServerStorage.Overhead

game.Players.PlayerAdded:Connect(function(player)
	
	local char = player.Character or player.CharacterAdded:Wait()
	local hum = char:WaitForChild("Humanoid")
	
	local head = char:WaitForChild("Head")
	local clone = overheadGUI:Clone()
	clone.Parent = head
	
	clone.Player.Text = player.Name
	clone.Level.Text = "Level "..player.Database.Level.Value
	
	hum.MaxHealth = player.Database.HP.Value
	clone.Frame.TextLabel.Text = math.floor(hum.Health).."/"..math.floor(hum.MaxHealth)
	
	hum:GetPropertyChangedSignal("Health"):Connect(function()
		local redZone = hum.MaxHealth / 4
		
		if hum.Health <= redZone then
			clone.Frame.Bar.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
		else
			clone.Frame.Bar.BackgroundColor3 = Color3.fromRGB(0, 209, 0)
		end
		
		clone.Frame.TextLabel.Text = math.floor(hum.Health).."/"..math.floor(hum.MaxHealth)
		clone.Frame.Bar.Size = UDim2.new((hum.Health/hum.MaxHealth), 0, 1, 0)
	end)	
end)

How it looks like in-game: https://gyazo.com/b3e5e6243c606b6ddf42c325a14cd413

1 answer

✓ Accepted answer

You can disable the GUI with a LocalScript.

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