I put a billboard gui on an attachment, but it just keeps going into the part and idk why, i moved it away from it. Also i dont use always on top because it shows on top of the character too.
detect when the billboard gui touches the player then disable always on top.
You can always enable AlwaysOnTop
And then set the MaxDistance
to something small. This is a little messy though, and I would probably recommend just moving the part or your BillboardGUI
How do i do that? /././././././././././
Both of those properties are located inside the billboardgui
idk, put the gui inside a part detect if it touches a player?
Dude. You can’t just do that, there isn’t a BillboardGUI.Touched
event or anything like that. Judging from some other comments you’ve made, please just try to actually be helpful. It saves us devs quite a bit of time.
Anyways, about the question, enable AlwaysOnTop
but set this (MaxDistance) value to a very small number (change the value within properties):
This is a very hacky way to do it, as others have said, but it just might work.
I said to parent the BillboardGUI to a Part, thats what I think is the solution, I’m just not good at explaining things but I’m just trying to be helpful.
local BillboardGUI = script.Parent -- gui
local BillboardGUIPart = BillboardGUI.Parent.Parent
BillboardGUIPart.Touched:Connect(function(otherPart)
if game.Players:GetPlayerFromCharacter(otherPart.Parent) == nil then
BillboardGUI.AlwaysOnTop = true
else
BillboardGUI.AlwaysOnTop = false
end
end)
This wouldn’t work well without a low MaxDistance value; OP does not want the GUI to be seen through the character model.
The part is static, even if a character touches it the GUI will clip through the model
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.