Skiilguard
(Skiilguard)
1
Hi, I made script that shows username and group rank, but it doesnt work. May someone help?
Here is code.
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local groupID = groupid -- it goes here
local guiclone = script.BillboardGui:Clone()
guiclone.Parent = character.Head
local textlabel = script.BillboardGui.TextLabel
local grouprank = player:GetRoleInGroup(groupID)
textlabel.Text = player.Name .. " - " .. grouprank
end)
end)
What specifically does not work about it?
Skiilguard
(Skiilguard)
3
Nothing shows, just “label” which is basic text. No errors in console
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local groupID = groupid -- it goes here
local guiclone = script.BillboardGui:Clone()
guiclone.Parent = character.Head
local textlabel = guiclone.TextLabel
local grouprank = player:GetRoleInGroup(groupID)
textlabel.Text = player.Name .. " - " .. grouprank
end)
end)
This may be the problem; you don’t set the text to the CLONED gui.
1 Like
system
(system)
Closed
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.