All the video's in youtube that I've watched are outdated and do not work anymore. The script that is not working:
local ServerStorage = game:GetService("ServerStorage")
local RankTag = ServerStorage.Ranktagtest
local connections = {}
local Players = game:GetService("Players")
local CloneTag = RankTag:Clone()
local NameTag = CloneTag.NameTag
local RankTag = CloneTag.RankTag
game.Players.PlayerAdded:Connect(function(player)
connections[player] = player.CharacterAdded:Connect(function(character)
CloneTag.Parent = character.Head
NameTag.Text = player.Name
if player:GetRankInGroup(0000) == 255 then
RankTag.Text = "Grand Inquisitor"
RankTag.TextColor3 = Color3.fromRGB(255,208,0)
elseif player:GetRankInGroup(0000) == 254 then
RankTag.Text = "Second Sister"
RankTag.TextColor3 = Color3.fromRGB(255,0,0)
elseif player:GetRankInGroup(0000) == 6 then
RankTag.Text = "Third Sister"
RankTag.TextColor3 = Color3.fromRGB(27,42,53)
elseif player:GetRankInGroup(0000) == 5 then
RankTag.Text = "Fourth Sister"
RankTag.TextColor3 = Color3.fromRGB(27,42,53)
elseif player:GetRankInGroup(0000) == 4 then
RankTag.Text = "Eighth Brother"
RankTag.TextColor3 = Color3.fromRGB(27,42,53)
elseif player:GetRankInGroup(0000) == 3 then
RankTag.Text = "Fifth Brother"
RankTag.TextColor3 = Color3.fromRGB(27,42,53)
elseif player:GetRankInGroup(0000) == 0 then
RankTag.Text = "Civilian"
character:WaitForChild("Humanoid").DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
end
end)
end)
Players.PlayerRemoving:Connect(function(player)
if connections[player] then
connections[player]:Disconnect()
connections[player] = nil
end
end)
I am a learning coder and it would be much appreciated if someone could help. Yes I know there is a missing groupId, this is because this group is private. Thank you!