How do I add a GUI on top of someone?

I want to add a GUI on top of people when they join that will be visible to everyone. When I try to put the BillBoardGUI that I have already made that is inside ServerStorage and put it inside of someone it doesn’t work and I dont even get an error for it sometimes.

This is what I’m trying right now

local Players = game:GetService("Players")

local boredomDisplay = game.ServerStorage.PlayerBoredomDisplay:Clone() -- Boredom is what I'm trying to display lol

local function giveDisplay(player)
	boredomDisplay.Parent = player -- I've also tried parenting the GUI to the player's head but it also doesn't work
end

Players.PlayerAdded:Connect(giveDisplay)

I don’t know if this script is completely wrong or needs to add more variables or something but I’m clueless about what to do

Considering this is a BillboardGui, it should be parented to a character (or the character’s head), you can utilize the Player.CharacterAdded connection to get the character & clone the billboard to them, however be careful with the current code you have: you will get one billboard gui for every player in the server with the way it is right now. Instead, remove the :Clone() in the variable declaration and clone it in the CharacterAdded function.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.