Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I make a billboard GUI in a part disappear when the part disappears?

Title says it all.

I'm trying to make good-looking text above a button (part) using billboard GUI, but whenever you walk over the button (to buy something), the text just ends up staying there even after the button disappears. How can I fix it?

Thanks.

2 comments

0

Maybe you can try locating the Billboard Gui itself?

0

and try :Destroy() on it?

1 answer

✓ Accepted answer
local part=script.Parent
local gui=part:FindFirstChildOfClass"BillboardGui"

part:GetPropertyChangedSignal"Transparency":Connect(function()
	if part.Transparency==1 then
		gui.Enabled=false
	end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.