Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

BillboardGui not appearing?

Asked by
Probix 80
8 years ago

I'm using a billboardgui as a ingame menu, and I am trying to get it to adornee to the torso.

But...

local player = game.Players.LocalPlayer
local BBGui = Instance.new("BillboardGui", player.PlayerGui)
local frame = Instance.new("Frame", player.PlayerGui.BillboardGui)
local GGOBillboardGui = player.PlayerGui.BillboardGui

GGOBillboardGui.Adornee = player.Character.Torso


Even though it says that it is adornee to the torso, it just not appearing? Frame's visible is on.

Please help?

0
Are there any errors / output? Have you done debugging to make sure this script runs fully through? BlueTaslem 18071 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

Objects inserted through Advanced Objects have different default properties than objects created with Instance.new(). Even though inserting a Frame through Advanced Objects gives you one with a Size of 0,100, 0,100, creating a Frame with Instance.new() gives you one that's at Size 0,0, 0,0. You need to set the size to something other than 0 to get it to appear.

Ad

Answer this question