Invisible part shows in ViewportFrame?

I am making a 3d art building system and I would like to present the players art in a ViewportFrame.
The problem is I added a invisible part to the model to position it but It is visible althought its transparency is equal to 1.
image
As you can see there is a grey block (in the middle, its hard to see)
image
here is the properties of that block. Any ideas why this is happening?

honestly I dont know why its showing, but you could make the block size really big maybe that wont be visible

You could position the camera to the invisible part then destroy it. It would work if the player’s art isn’t parented to the invisible part.

Wierdly enough, I tried that and it still wont work even though its doesn’t exist.

The invisible part still shows up in the viewport frame?

the script:

        local frame = script.Temp:Clone()
		local camera = Instance.new("Camera")
		frame.UIStroke.Color = Color3.fromRGB(0,179,255)
		local clone = v:Clone()
		clone.Parent = frame.ViewportFrame
		local pos = clone.Centre.Position
		clone.Centre:Destroy()
		camera.CFrame = CFrame.new(pos + Vector3.new(0,clone.Height.Value,-5),pos)
		camera.Parent = frame.ViewportFrame
		
		frame.ViewportFrame.CurrentCamera = camera
		frame.LayoutOrder = i
		if i <= 10 then
			frame.Parent = script.Parent.Frame1
		else
			frame.Parent = script.Parent.Frame2
		end
		frames = i

Maybe u can try adding a WorldModel to your ViewportFrame.

Oh yo i didnt even know that existed

Didn’t work. Nothing changed

limit

Change the color of the part and see if it still shows grey or if it shows as the color (ex Red). My idea is that it is making the white pinstripe background transparent and showing the gray underneath. Just an idea, let me know how that goes

Wait, is the background thing in front of the invisible part ?

1 Like

There was other parts in the model that weren’t meant to be there and that’s why it was showing. Problem fixed.

1 Like