Hi guys, I am mebest2324. A relatively new scripter to the market and I was working on an brand new ranktag script.
It is pretty simple but so far, I made 2 texts. One for the rank the player has, and another one for the team the player is in.
Although it isnt working, and on a really weird level too. Basically, the billboard gui does get copied to the head, but doesnt change its text. Which is definitely not what I want to see.
This is my script and I really appreciate any help, as I got stuck on this for a few days.
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if player:GetRankInGroup(15267987)> 250 then
script.BillboardGui:Clone().Rank.Text = player:GetRoleInGroup(15267987)
script.BillboardGui:Clone().Division.Text = "Administration"
script.BillboardGui:Clone().Parent = character:FindFirstChild("Head")
player.Team = game.Teams.Administration
end
end)
end)
Thank you, and as always. Any help is appreciated!
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if player:GetRankInGroup(15267987)> 250 then
local BillboardGui = script.BillboardGui:Clone()
BillboardGui.Rank.Text = player:GetRoleInGroup(15267987)
BillboardGui.Division.Text = "Administration"
BillboardGui.Parent = character:FindFirstChild("Head")
player.Team = game.Teams.Administration
end
end)
end)
Edit: person above me did the same thing. Since your not defining it, the game thinks to clone another billboard gui each time you do that. To fix this, just define it with a variable so that the GUI can have all properties instead of just cloning each other