Overhead GUI isn't working properly?
I copied word for word from this one video.
https://www.youtube.com/watch?v=TfeWj3zGAkM
First attempt:
01 | local BillboardGui = game:GetService( "ServerStorage" ):WaitForChild( "BillboardGui" ) |
03 | game.Players.PlayerAdded:Connect( function (player) |
05 | player.CharacterAdded:Connect( function (character) |
07 | local clonedgui = BillboardGui:Clone() |
08 | clonedgui.TextLabel.Text = "Vee" |
09 | clonedgui.TextLabel.TextColor 3 = Color 3. fromRGB( 0 , 170 , 255 ) |
10 | clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head |
it was fine it worked. But i wanted to have it for a specific person, so i tried to follow the video again.
Second attempt:
01 | local BillboardGui = game:GetService( "ServerStorage" ):WaitForChild( "BillboardGui" ) |
03 | game.Players.PlayerAdded:Connect( function (player) |
05 | player.CharacterAdded:Connect( function (character) |
07 | if player.Name = = "VeeMiland" then |
08 | local clonedgui = BillboardGui:Clone() |
09 | clonedgui.TextLabel.Text = "Player" |
10 | clonedgui.TextLabel.TextColor 3 = Color 3. fromRGB( 36 , 154 , 136 ) |
11 | clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head |
this time it worked i thought but i was wrong. So i testing it typing "Orange" instead of my username " VeeMiland". It stayed above my avatars name. even though I changed the username. I want it for a specific person. it worked for him why not for me. I followed it exactly like the video. Please help it keeps saying: 23:27:24.077 - ContentProvider:PreloadAsync() failed for rbxassetid://99666917