TweenSize is not a valid member of BillboardGui

Hello dev’s, recently I’ve been working on this script and I ran into this error and I can’t find a solution to it. I am trying to TweenSize a BillboardGui but this error pops up:
eeeeeee
Also here is the script:

dummy:FindFirstChild("BillboardGui").Enabled = true
dummy:FindFirstChild("BillboardGui"):TweenSize(UDim2.new(6,0,6,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Elastic,1,false)
print("Player has been spotted.")
wait(10)
dummy:FindFirstChild("BillboardGui").Enabled = false

Thanks for the help!

you can’t use TweenSize on BillboardGui.

There is an image label inside the BillboardGui could I tween that instead?

BillboardGui:TweenSize() does not exist, you must use TweenService:Create()

dummy:FindFirstChild("BillboardGui").Enabled = true

local Info = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
game:GetService("TweenService"):Create(dummy:FindFirstChild("BillboardGui"), Info, {
	Size = UDim2.fromScale(6, 6)
}):Play()

print("Player has been spotted.")
task.wait(10)
dummy:FindFirstChild("BillboardGui").Enabled = false
2 Likes

yeah you can use TweenSize on Image.