I’m trying to create a script inside of a gui, where it would get the group icon, and put it into an image gui.
Here is my script:
local groupService = game:GetService("GroupService")
function getGroupIcon(id)
return groupService:GetGroupInfoAsync(id).EmblemURL
end
script.Parent.Image = getGroupIcon(5237948)
Whenever I run it, it doesn’t work, and puts out:
17:19:02.597 Players.Catherine858.PlayerGui.AllianceGui.Frame.ScrollingFrame.Group 1.ImageLabel.LocalScript:7: invalid argument #3 (string expected, got nil) - Client - LocalScript:7
I can’t figure out how to resolve this issue.