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

How does ExtentsOffset work?

Asked by
iNicklas 215 Moderation Voter
8 years ago
local gui = Instance.new("BillboardGui",workspace)
    gui.Name = "LEVELUP"
    gui.ExtentsOffset.Position = Vector3.new(0,8,0) -- IT won't work.

And yes i checked the wiki, and it just said it was using Vectors

xyz

1 answer

Log in to vote
1
Answered by 8 years ago

"A Vector3 (x,y,z) defined in studs that will offset the gui from the extents of the 3D object it is rendering from" - Roblox wiki, billboard gui properties

The reason it isn't doing anything is because you first need a part for the GUI to render from. Additionally, "ExtentOffset.Position" should be "ExtentsOffset"

local part = Instance.new("Part",workspace)
part.Anchored = true
part.CFrame = CFrame.new(0,5,0)
local gui = Instance.new("BillboardGui",part)
gui.Adornee = part
gui.ExtentSOffset = Vector3.new(5,0,0)
Ad

Answer this question