#Is there any way to make a billboard gui appear in front of an actual screengui object?

1 messages · Page 1 of 1 (latest)

jolly depot
#

I want the "damage indicator" to appear in front of the huge ViewportFrame that covers the entire screen.

undone field
#

hope that helps

jolly depot
undone field
jolly depot
#

and changing the ZIndex of the textlabel doesnt do anything

undone field
jolly depot
undone field
#

r u using a color effect or a frame on the screen?

jolly depot
#

a frame

#

here's the properties for it

cunning wyvern
#

cant you just copy the billboard into the viewportframe?

jolly depot
livid dragon
jolly depot
cunning wyvern
#

another idea is to put a part infront of the camera and have a surfacegui on the side facing the camera with the viewportframe inside it then what you could do is all the guis with damage indicator have the always on top property checked

#

then you would get this effect

jolly depot
cunning wyvern
#

local RunService = game:GetService("RunService")

local part = workspace:WaitForChild("CamPart")

workspace:WaitForChild("Camera")
RunService.RenderStepped:Connect(function()
local camera = workspace.CurrentCamera
local aspectRatio = camera.ViewportSize.X / camera.ViewportSize.Y
local fov = math.rad(camera.FieldOfView)
local distance = 5
local Height = 2 * distance * math.tan(fov / 2)
local Width = Height * aspectRatio

part.Size = Vector3.new(Width, Height, part.Size.Z)
part.CFrame = camera.CFrame * CFrame.new(0, 0, -distance)

end)

#

you have to put the surface gui with the viewportframe inside player gui and adornee the part in workspace

also surfacegui face = back