I have my code billboard gui > textbutton etc and healthbar script but how do i make it where its above the head and stays there even when they respawn
You can use the CharacterAdded event to achieve this effect in a script in Workspace.
1 | game.Players.PlayerAdded:connect( function (player) --Defining the player |
2 | player.CharacterAdded:connect( function (character) --Defining the character, triggers when the character respawns |
3 | billboardgui.Parent = character.Head --Make sure to define what billboardgui is first! |
4 | end ) |
5 | end ) |
Of course, this is just an example script, feel free to change the code to meet your needs.