Hi,
I want to create a GUI with buttons represented by ViewportFrames showing my models (parts with texts). I placed this script inside a transparent button.
Almost everything works perfectly however I can not see SurfaceGui with TextLabel. I see only a part but the text in TextLabel is not visible. The output shows no errors and child SurfaceGui and TextLabel are available. If I place the part in the workspace it is displayed correctly. So I suppose it is a problem o ViewportFrame with inner SurfaceGui. Could you help me, please?
Script:
local viewportFrame = script.Parent.ViewportFrame
local part = game.ReplicatedStorage.Stickers.BigText:Clone()
part.SurfaceGui.TextLabel.Text = "abc"
part.Position = Vector3.new(0, 0, 0)
part.Orientation = Vector3.new(-5, 15, 0)
part.Parent = viewportFrame
local viewportCamera = Instance.new("Camera")
viewportFrame.CurrentCamera = viewportCamera
viewportCamera.Parent = viewportFrame
viewportCamera.CFrame = CFrame.new(Vector3.new(0, 0, 10), part.Position)
I wouldnt say impossible but yea impossible to render but to achieve what original poster says is you can use some maths to size and position a textlabel knowing it wont give that 3d effect but still close and if you want to make it quite accurate you can either use 3d text or make your own rendering system.