I have this script that clones a overhead gui in server script service. It goes like the following. I have a script in Server Script Service, and inside that a Bilboard Gui and inside that Gui a text button. Ever time I try and put the player it does not work.
game.Players.PlayerAdded:Connect(function(Player) Player.CharacterAdded:Connect(function(Character) local Gui = script.BillboardGui:Clone() Gui.Parent = Character.Head Gui.TextButton.Text = Player.Name <<<--- This for some reason give me an error. end) end) -- I wrote this script from memory and some words may be misspelled but that is not the issue.
I've looked at the script you've provided, and found no error there, even when testing it on studio myself. I've provided a game here that has the script fully working.
Hope this helps you with your problem.