i’m not really the best at UI but i’m trying to recreate this basically but idk what features, etc to use.
atm i have it like this but i think i’m doing it wrong. i think there needs to be a UIListLayout or something. ty for ur help!
i’m not really the best at UI but i’m trying to recreate this basically but idk what features, etc to use.
atm i have it like this but i think i’m doing it wrong. i think there needs to be a UIListLayout or something. ty for ur help!
you can get the headshot/pfp with this, and use player.Name
or player.DisplayName
for the title. let me know if you want me to write the script, its only about 10 lines
(edit: if your just talking about the actual layout of the GUI, it looks fine to me)
local player = 'PLAYER INSTANCE HERE' -- game.Players.LocalPlayer if this is a LocalScript
local PlotTag = workspace:WaitForChild("PlotTag") -- PATH HERE
local BillboardGui = PlotTag:WaitForChild("BillboardGui")
local PlayerName = BillboardGui:WaitForChild("TextLabel")
local Headshot = BillboardGui:WaitForChild("ImageLabel")
PlayerName.Text = player.DisplayName -- Alternatively, use player.Name
Headshot.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. player.UserId .. "&width=64&height=64&format=png"
A better way to do this:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local image = ""
local success, errorMessage = pcall(function()
image = Players:GetUserThumbnailAsync(player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size60x60)
end)
Headshot.Image = image
Less chance to error and break the rest of the code, it’s also much easier to remember, customisable, etc.
@ScrollFrameRotation @HyperFireStudios @Axmos
hey guys thanks so much for your help, i have a rough idea for the code but i feel like i’m just eyeballing this. i just wanna make sure i’m doing the set up right for the billboard GUI.
You’re already doing it right, just use Scale and TextScaled on your Gui elements.