#Help with script what is wrong

1 messages · Page 1 of 1 (latest)

thorn schooner
#

local PS = game:GetService("Players")
local TS = game:GetService("TweenService")
local UIS = game:GetService("UserInputService")
local CoreEvent = game.ReplicatedStorage:WaitForChild("CoreEvent")
local Player = game.Players.LocalPlayer
local CoreGUI = Player.PlayerGui:WaitForChild("CoreGUI")

CoreGUI.InfoFrame.PlayerImageLabel.Image = PS:GetUserThumbnailAsync(Player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size48x48)

viral marsh
#

what do you think is wrong with it

exotic hemlock
#

i dont know, are there any errors?

fast roost
#

I think GetUserThumbnailAsync returns 2 value. The url and isReady so just check if isReady is true

thorn schooner
#

Ok

#

Thx

#

Don't mide the quality

#

Mind

#

So we're would I find is ready

#

Isready

fast roost
#

local url, isready = ps:GetUserthumbnail...

fast roost
# thorn schooner ?

local url, isready = pcall(function) return PS: GetUserthumbnailAsync end)

#

if isReady then
--use url
end

#

isReady is a boolean here btw

thorn schooner
#

Oh I'm so dumb I just realized

#

I have CoreGUI on there and my thing is CoreGui bruh my bad