Help with the kingdom rank tag

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Making my overhead script kingdom

  2. What is the issue? It makes everyone have the blue management position and red rank

  3. What solutions have you tried so far? There’s no solution for me

local template = game.ReplicatedStorage:FindFirstChild('TitleTemplate',  true)
local players = game.Players.LocalPlayer

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		local new = template.OverheadGui:Clone()
		
		local user = new.Username
		local rank = new.Title
		local position = new.Position
		
		if plr:IsInGroup(17259116) and plr:GetRankInGroup(17259116) >= 1 then
			if plr:GetRankInGroup(17259116) >= 254 then
				rank.Text = plr:GetRoleInGroup(17259116)
				rank.TextColor3 = Color3.fromRGB(255, 0, 0)
				position.Text = "⚜ Management ⚜"
				position.TextColor3 = Color3.fromRGB(0, 85, 255)
			elseif plr:GetRankInGroup(17259116) == 253 then	
				rank.Text = plr:GetRoleInGroup(17259116)
				rank.TextColor3 = Color3.fromRGB(255, 255, 0)
				position.Text = "⚜ Management ⚜"
			    position.TextColor3 = Color3.fromRGB(0, 85, 255)		
			elseif plr:GetRankInGroup(17259116) == 248 or 249 or 250 or 251 then
				rank.Text = plr:GetRoleInGroup(17259116)
				rank.TextColor3 = Color3.fromRGB(255, 255, 0)
				position.Text = "🏆 High Rank 🏆"
	            position.TextColor3 = Color3.fromRGB(255, 255, 0)
			elseif plr:GetRankInGroup(17259116) == 252 or 253 then
				rank.Text = plr:GetRoleInGroup(17259116)
				rank.TextColor3 = Color3.fromRGB(0, 0, 255)
				position.Text = "⚜ Management ⚜"
				position.TextColor3 = Color3.fromRGB(255, 255, 0)
			elseif plr:GetRankInGroup(17259116) == 2 or 3 or 241 then
				rank.Text = plr:GetRoleInGroup(17259116)
				rank.TextColor3 = Color3.fromRGB(255, 170, 127)
				position.Text = "Low Rank"
				position.TextColor3 = Color3.fromRGB(255, 255, 0)	
			elseif plr:GetRankInGroup(17259116) == 242 or 243 or 244 or 246 or 247 then
				rank.Text = plr:GetRoleInGroup(17259116)
				rank.TextColor3 = Color3.fromRGB(0, 0, 127)
				position.Text = "Mid Rank"
				position.TextColor3 = Color3.fromRGB(255, 255, 0)
			elseif plr:GetRankInGroup(17259116) == 1 then
				rank.Text = "Recruit"
				rank.TextColor3 = Color3.fromRGB(0, 0, 0)
				position.Text = ""			
			else
				position.Visible = false
				rank.TextColor3 = Color3.fromRGB(25, 106, 182)
			end	
		end
		
		user.Text = "@"..plr.Name
		
		wait(.25)
		new.Parent = char:FindFirstChild('HumanoidRootPart', true)
	end)
end)
1 Like