This tutorial is going to run you through the basics of Overhead Gui's and what they can be used for. Lets start with what you can us them for.
Overhead Gui's are a great way to show the players username, If a player is Vip or you can use them to show you are the owner or if your an admin! They are great because they have so many properties including: Text, Color, Size And more! For this tutorial we will be showing the players name.
First things first you will want to insert a script into ServerScriptService. You can rename this script: OverHeadGui. Now we want to pre make the BillBoardGui. Inside workspace insert a part and then insert a billboard gui. Now Insert A TextLabel into the billboard gui. Now lets do the properties. Go into the billboardgui and change ExtentsOffSet to 0,2,0 Now Go into the TextLabel. Set the background transparency to 1, make the text nil and turn on TextScaled. You can also change the font if you wish. Make sure to turn off ResetOnSpawn in the billboard gui
Now put the billboardgui into the server script and delete the part. Now we are ready to code!
This script is going to clone the billboard gui and change the text to the players name and change the textcolor.
local OverheadGui = script:WaitForChild("BillboardGui") -- The name of the Billboard Gui
local Char = plr.Character or plr.CharacterAdded:Wait() -- Finds the character
local GuiClone = OverheadGui:Clone() -- Clones the billboard gui
GuiClone.Parent = Char:FindFirstChild("Head") -- Sets the gui's parent to the head
GuiClone.TextLabel.Text = plr.Name -- Sets the text to players name
GuiClone.TextLabel.TextColor3 = Color3.new(0, 255, 0) -- Changes the color
Thanks for taking the time to read my tutorial! Enjoy learning!