--// UI Buatan local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local ScreenGui = Instance.new("ScreenGui") local Frame = Instance.new("Frame") local TextBox = Instance.new("TextBox") local Button = Instance.new("TextButton") local Result = Instance.new("TextLabel") local Avatar = Instance.new("ImageLabel") ScreenGui.Name = "ProfileChecker" ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") ScreenGui.ResetOnSpawn = false Frame.Size = UDim2.new(0, 300, 0, 200) Frame.Position = UDim2.new(0.5, -150, 0.5, -100) Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) Frame.BorderSizePixel = 0 Frame.Active = true Frame.Draggable = true Frame.Parent = ScreenGui TextBox.PlaceholderText = "--give the usn" TextBox.Size = UDim2.new(0, 280, 0, 30) TextBox.Position = UDim2.new(0, 10, 0, 10) TextBox.Text = "" TextBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50) TextBox.TextColor3 = Color3.fromRGB(255, 255, 255) TextBox.Parent = Frame Button.Text = "Check Profile" Button.Size = UDim2.new(0, 280, 0, 30) Button.Position = UDim2.new(0, 10, 0, 50) Button.BackgroundColor3 = Color3.fromRGB(50, 50, 200) Button.TextColor3 = Color3.fromRGB(255, 255, 255) Button.Parent = Frame Result.Text = "" Result.Size = UDim2.new(0, 280, 0, 30) Result.Position = UDim2.new(0, 10, 0, 90) Result.TextColor3 = Color3.fromRGB(255, 255, 255) Result.BackgroundTransparency = 1 Result.TextScaled = true Result.Parent = Frame Avatar.Size = UDim2.new(0, 80, 0, 80) Avatar.Position = UDim2.new(0, 10, 0, 130) Avatar.BackgroundTransparency = 1 Avatar.Image = "" Avatar.Visible = false Avatar.Parent = Frame --// Fungsi Check Button.MouseButton1Click:Connect(function() local inputName = TextBox.Text Avatar.Visible = false Avatar.Image = "" Result.Text = "" if inputName == "" then Result.Text = "user error please check the usn" return end local success, userId = pcall(function() return Players:GetUserIdFromNameAsync(inputName) end) if success and userId then Result.Text = "user checked" local thumbType = Enum.ThumbnailType.HeadShot local thumbSize = Enum.ThumbnailSize.Size100x100 local thumbSuccess, thumbImage = pcall(function() return Players:GetUserThumbnailAsync(userId, thumbType, thumbSize) end) if thumbSuccess then Avatar.Image = thumbImage Avatar.Visible = true else Avatar.Visible = false end else Result.Text = "user error please check the usn" end end)