Help Aliening Icons

,

I am trying to make some Icons for a nametag but different ranks only have certain nametags and i want them to be a certain space apart no matter what so i was wondering if there is a way to make this work?

I have tried nothing so far.

Code

local GroupId = 11587846
local nametagtemplate = game.ReplicatedStorage.nametag
game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		local rank = Player:GetRoleInGroup(GroupId)

		local Hd = Character.Head
		local NameTag = nametagtemplate:Clone()	
		NameTag.Parent = Hd
		NameTag.Adornee = Hd
		Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
		
		local username = Player.Name
		local dispname = Player.DisplayName
		
		NameTag.user.Text = username
		NameTag.disp.Text = "@" .. dispname
		NameTag.rank.Text = rank
		
		
		NameTag.dev.Visible = false
		NameTag.staff.Visible = false
		NameTag.owner.Visible = false
		
		
		local rankdid = Player:GetRankInGroup(GroupId)
		print(rankdid)
		if rankdid >= 252 then
			NameTag.staff.Visible = true
		end
		
		if rankdid == 253  then
			NameTag.staff.Visible = true
			NameTag.dev.Visible = true
		end
		
		if rankdid == 254  then
			NameTag.staff.Visible = true
			NameTag.dev.Visible = true
		end
		
		if rankdid == 255 then
			NameTag.owner.Visible = true
			NameTag.staff.Visible = false
			NameTag.dev.Visible = false
		end
	 
	
		
		if rankdid >= 253 then
			
		while true do
			math.randomseed(tick())
			local rColor = Color3.new(math.random(),math.random(),math.random())
			for i = 0 ,1, .05 do
				NameTag.user.TextColor3 = NameTag.user.TextColor3:Lerp(rColor,i)
				NameTag.disp.TextColor3 = NameTag.disp.TextColor3:Lerp(rColor,i)-- RGB
				NameTag.rank.TextColor3 = NameTag.rank.TextColor3:Lerp(rColor,i) -- RGB		
				wait()
				
			end
			wait(.01)
			end
		end
	end)
end)

Please let me know
Scripter/Dev Kieranl29_.

Hey there, maybe you could a frame and in the frame as a UIGridLayout or a UIListLayout to make it work, you could also manually do it if you would like to. You need to direct it correctly! (Basically make an overhead gui and then in a frame you do if x is x then x is true etc and configurate it like that, dm me for help) – this is to align icons.

Have a good day.

2 Likes

Do you have any photos of what it looks like in game in it’s current state?

1 Like

They are just all on top of each other.

https://i.gyazo.com/6ac9b74658c6f1ede45d3cd4a394afed.png

Oh, so you want them side by side?

Yes kind of like this game…

Image

This should work for you, then.
Keep us updated!

I do not fully understand how to do this though, could u help me on discord? (kieranl29#3675)

Hook me up at Paint#0759 and I will be glad to help!