#Is there any way to make a billboard gui appear in front of an actual screengui object?
1 messages · Page 1 of 1 (latest)
Max out the Zindex + make the billboardgui AlwaysOnTop = true
hope that helps
BillboardGuis dont have a ZIndex property
the text label
and changing the ZIndex of the textlabel doesnt do anything
did u turn on always on top?
yep
r u using a color effect or a frame on the screen?
cant you just copy the billboard into the viewportframe?
doesnt look like it, no
Well this might be suboptimal but you could get the screenPosition relativ to the position of the Billboard gui and create a new Textlabel on that screenPosition.
This Post is the root of my Idea: https://devforum.roblox.com/t/how-to-get-objects-position-on-screen-or-convert-vector3-to-vector2/2196752/3
the player is meant to move around constantly while in the alternate world view so i dont think this would be suitable
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
how would i set the part's size to be relative to the size of the screen though
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