So i have a RankTag script i had someone made for my game. When i try this rank tag script when the game is saved local on my computer it works just fine. When i publish it to roblox, the billboardGUI does not show up, I am 100% sure that the script tries to do something. How can i fix it?
Script:
groupid = (my group id) Playerid = (my player id)
game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char)
local RankI = script.RankInfo:Clone()
RankI.Parent = plr.Character:WaitForChild('Head')
RankI.Adornee = RankI.Parent
local JRank = RankI.UserName.Rank.Division
local LRank = RankI.UserNameBlack.Rank.Division
RankI.Enabled = true
plr.Character:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
local Custom = {
[playerid] = {" "}
}
for l,k in next, Custom do
if plr.UserId == l then
RankI.UserNameBlack.Text = k[1]
RankI.UserName.Text = k[1]
wait(2)
RankI.UserName.Rank.Text = k[1]
RankI.UserName.Rank.Text = k[1]
else
RankI.UserNameBlack.Text = plr.Name
RankI.UserName.Text = plr.Name
end
end
if plr:IsInGroup(groupid) then
RankI.UserName.Rank.Text = "• "..plr:GetRoleInGroup(groupid).." •"
RankI.UserNameBlack.Rank.Text = "• "..plr:GetRoleInGroup(groupid).." •"
else
RankI.UserName.Rank.Text = "• CLASS-D •"
RankI.UserNameBlack.Rank.Text = "• CLASS-D •"
end
local Divisions = {
[0] = {Color3.fromRGB(83, 0, 0)},
}
for i,v in next, Divisions do if plr:IsInGroup(i) then print("Is in Division "..i) JRank.Visible = true JRank.Text = plr:GetRoleInGroup(i) LRank.Text = plr:GetRoleInGroup(i) JRank.TextColor3 = v[1] else JRank.Visible = true JRank.Text = "" LRank.Text = "" end end
end)
end)

1 comment
Did you try making sure the correct side is set in the billboard properties?