Viewportframe Decal Texture becomes all black

  1. What do you want to achieve? I want the Viewportframe to show the color of my decal.

  2. What is the issue? The Decal of the part that can be seen through the viewportframe is only black and no other colors.problem

  3. What solutions have you tried so far? I tried setting the viewportframe background to white but its still black.


local viewport = script.Parent.ViewportFrame
local plr = game.Players.LocalPlayer
local world = workspace.World

local camera ="Camera",workspace)
camera.CameraType = Enum.CameraType.Scriptable
camera.Name = "MiniCam"

local height = 100
viewport.CurrentCamera = camera
local thumbnail = game.Players:GetUserThumbnailAsync(plr.UserId,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size100x100)
workspace.yu["face face"].Texture = thumbnail
viewport.Icon["face face"].Texture = thumbnail

	local pos = plr.Character.HumanoidRootPart.Position
	camera.CFrame =,height,pos.Z),pos)
	viewport.Icon.CFrame = plr.Character.HumanoidRootPart.CFrame *,80,0)--500

What im actually making is a minimap. So I added a part 90 studs above from the player that has a decal that becomes the players Icon.(if this is not possible to be solved then please say any other ways to add pictures** startgui cframe

1 Like