Assistance with an Identification Card Tool Script

Hiiiii! I need some help with this script I made for an ID Card, please help!

local player = game.Players.LocalPlayer
local players = game.Players
local groupid = 8298204
local rankInGroup = player:GetRoleInGroup(groupid)

local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size100x100

script.Parent.Name.Text = player.Name
script.Parent.Rank.Text = rankInGroup
script.Parent.ImageLabel = players:GetUserThumbnailAsync(player.Userid, thumbType, thumbSize)

Any questions that need to be answered before you help me just ask!

I am kinda confused what do you mean by this? I need more into depth details on what you need help on

1 Like

The problem is none of the texts show up when I run the game and equip it. It just says the original ones, “Name” and “Rank” and it doesnt show the avatar image

First off I would use script.Parent.PlayerName.Text and change the name of “Name” to PlayerName since it thinks you’re getting the name of script.Parent

So for e.g.

--Parent is ScreenGui and the name is BobIsSus

print(script.Parent.Name.Text) --this will think you're getting the name BobIsSus and then error because there is no such thing as .Text to .Name

Also do script.Parent.ImageLabel.Image

1 Like

I think that script.Parent.ImageLabel.Image might be the problem, but i’m not sure if it would stop the script from working before all the lines above run. Because op claims that text doesn’t display either. But I could be wrong, I’m not entirely sure myself.

(regardless it’s still a problem and good job pointing it out)