[SOLVED] How to get asset id of a group icon?

Hey! I’m having some troubled with my script I’m trying to make an overhead gui of the players group the put in. Everything works minus the group photo always being white. Any help? :’}

	if Clan then
		if Clan.Value ~= '' then
			if Player.Character then
				local GroupService = game:GetService("GroupService")
				local function getEmblemAsync(groupId)
					local groupInfo = GroupService:GetGroupInfoAsync(groupId)
					return groupInfo.EmblemUrl
				end

				local clone = game.ServerStorage.ClanLabel:Clone()
				task.wait(5)
				clone.Parent = Player.Character.Head
				clone.ClanPhoto.Image = getEmblemAsync(tonumber(Player.Clan.Value))
			end
		end
	end

Clans:
Clans are a value inside the player that datasave inbetween joins and leaves. It loads the overhead icon above when they join. The clan value is the group id.

I have not been able to find any valuable information about this subject that has helped me.

1 Like

Are ya sure the EmblemUrl returned is white or is the ImageLabel’s BackgroundTransparency set to 0, or is the ImageTransparency set to 1?
Besides that be sure to wrap ya GetGroupInfoAsync call in a Pcall

1 Like

I have just tested this in studio myself, the function is working fine. If you are getting no errors, are you sure it is even running the script?

Have you got the full script for us to look at?

1 Like

It’s part of my datastore but I’ll send it here.

EDIT: Figured out why, thank you for your efforts!

That was it! I had the wrong transparencies! Thank you so much :’) How silly of me to miss that.

1 Like