Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Overhead GUI isn't working properly?

Asked by 6 years ago

I copied word for word from this one video. https://www.youtube.com/watch?v=TfeWj3zGAkM

First attempt:

01local BillboardGui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
02 
03game.Players.PlayerAdded:Connect(function(player)
04 
05    player.CharacterAdded:Connect(function(character)     
06 
07        local clonedgui = BillboardGui:Clone()
08        clonedgui.TextLabel.Text = "Vee"
09        clonedgui.TextLabel.TextColor3 = Color3.fromRGB(0,170,255)
10        clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
11 
12      end)
13 
14 end)

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:

01local BillboardGui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
02 
03game.Players.PlayerAdded:Connect(function(player)
04 
05    player.CharacterAdded:Connect(function(character)
06 
07                if player.Name == "VeeMiland" then
08             local clonedgui = BillboardGui:Clone()
09             clonedgui.TextLabel.Text = "Player"
10             clonedgui.TextLabel.TextColor3 = Color3.fromRGB(36,154,136)
11            clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
12        end
13 
14    end)
15 
16end)

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

0
Scripting Helpers is a site for getting help on YOUR code, an AlvinBlox video won't get you anywhere on this site. User#19524 175 — 6y

1 answer

Log in to vote
0
Answered by
Plieax 66
6 years ago
Edited 6 years ago

I will make the script more simple and also fix it so here we go..

01local BillboardGui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
02 
03game.Players.PlayerAdded:Connect(function(player)
04 
05    player.CharacterAdded:Connect(function(character)
06             local clonedgui = BillboardGui:Clone()
07        clonedgui.Parent = character.Head
08 
09if player.Name == "VeeMiland" then
10 
11clonedgui.TextLabel.Text = "Admin"  -- Put what happens if the players name is VeeMiland --
12 
13 
14else  -- Change this to elseif if you want another if statement here, you will want to make the highest ranks at the bottom of the script so that the last name the game changes it to will be the highest rank --
15 
View all 22 lines...
0
It didn't work. sadly, I put it in. When i published it seem to have put the gui ove head above everyones head but when i looked on my friends screen it wasnt there above his head. I'm quite confused. VeeMiland 0 — 6y
Ad

Answer this question