I am trying to create an overhead tag for players in a group, and it is not working.
local groupId = 3033912
game.Players.PlayerAdded(function(Player)
Player.CharacterAdded:Connect(function(Character)
local GuiClone = script.BillboardGUi:Clone()
GuiClone.Parent = Character.Head
local InformationLabel = GuiClone.InformationLabel
local PlayerRank = Player:GetRoleInGroup(GroupId)
InformationLabel.Text = Player.Name .. "-" .. PlayerRank
end)
end)
It runs an error saying there is something wrong with line 3 but I do not know what is wrong.
Edit: This is the error it is giving me ServerScriptService.Script:3: attempt to call a RBXScriptSignal value
Volieb
(Vinny)
July 14, 2021, 6:28pm
#2
On line 3 you forgot to use :Connect
1 Like
So I just added it and now its running this error BillboardGui is not a valid member of Script "ServerScriptService.Script
Volieb
(Vinny)
July 14, 2021, 6:35pm
#4
Do you have a BillboardGui inside your script called BillboardGui?
yea it’s right here local GuiClone = script.BillboardGui:Clone()
Volieb
(Vinny)
July 14, 2021, 6:37pm
#6
Can you show a screenshot of the script with the BillboardGui inside in the explorer ?
Can you send in here only the 3rd line of code (the one that errors)?
Volieb
(Vinny)
July 14, 2021, 6:39pm
#8
We already solved that issue, now he has another issue
@Volieb solved that problem but now I fixed it and its showing me this error BillboardGui is not a valid member of Script "ServerScriptService.Script
Volieb
(Vinny)
July 14, 2021, 6:40pm
#10
Can you confirm that there is a BillboardGui inside of the script
Volieb
(Vinny)
July 14, 2021, 6:41pm
#12
Ah, I see your issue. The BillboardGui is inside of ServerScriptService. It needs to be inside the script itself. Drag it into the script and then try the script again.
1 Like
I am getting a new error now that says this InformationLabel is not a valid member of BillboardGui "steveisoff.Head.BillboardGui
Volieb
(Vinny)
July 14, 2021, 6:45pm
#14
Looks like we are slowly fixing all the issues So that means we are making progress.
You need to rename the textlabel inside of the BillboardGui to InformationLabel
1 Like
Volieb
(Vinny)
July 14, 2021, 6:47pm
#15
Also, make sure to mark this topic as solved so that others know you found a solution.
So I fixed that and it gave me this error Argument 1 missing or nil I am assuming it may be because of I put the group ID before the rest of the code
Volieb
(Vinny)
July 14, 2021, 6:49pm
#17
It is because you used a capital G in groupId, but used a lowercase when you started the code. Make sure they both are exactly the same.
1 Like
Thank you now everything works perfectly fine with no errors
1 Like
Volieb
(Vinny)
July 14, 2021, 6:50pm
#19
Great! I’m glad that I was able to help. Like I said before, make sure to mark this topic as solved. Have a great day!
1 Like