So, I am making a lanyard card which is Touch to Equip and basically the Local Players Username, Profile Picture and their Group Rank is supposed to be visible on a Surface Gui and I just started learning Roblox LUA so I’m still a bit rough, I did the Surface Gui using a Local Script and well it worked but only for me, I want the Surface GUI to be visible to other Players as well.
I have gone through many similar tutorials on YouTube about it but none of them work as the card is a Touch to Equip, So making it into a tool wont work and if you come up with a solution it should all be in one Model in workspace because the lanyard is going to be Imported into another which I don’t have access to game as accessories…
I did try that but I got stuck at the part where you define the term “player” which is used to get the Players User ID, Picture and Rank in the first place
Okay I confused me even a little more but heres the scripts I used
Getting the Players User Icon
local player = game.Players.LocalPlayer
local Image = script.Parent
local userId = player.UserId
local thumbType = Enum.ThumbnailType.AvatarBust
local thumbSize = Enum.ThumbnailSize.Size420x420
local content = game.Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
Image.Image = content
And Getting the Players Group Rank
local player = game.Players.LocalPlayer
local Text = script.Parent.Text
Text = tostring(player:GetRoleInGroup(7906994))