BillBoardGui Tween

idk why I can’t tween a bill board gui can someone help me please!?!

this is my script part:

billboardGui.StudsOffset = Vector3.new(0,4,0)
					local playerName = hit.Parent.Name
					billboardGui.NameEffectText.Text = playerName.." Won!🎈"
					
					local info = TweenInfo.new(
						3,
						Enum.EasingStyle.Bounce,
						Enum.EasingDirection.Out,
						0,
						false,
						0
					)
					
					local Goals = 
						{
							Size = Vector2.new(400,100);
						}
					
					local PlayerEffectTween = tweenService:Create(NameEffectText, info, Goals)
					PlayerEffectTween:Play()

You can’t use Vector2 to change the size of the TextLabel. Instead, use UDim2.

I did but it still doesnt work

NameEffectText:TweenSize(UDim2.fromOffset(400,100),"Out","Bounce",3)

GUI elements have a built in method to tween size and position and both simultaneously.

can you pleaes add it into the script I have no idea where to add it and what to remove

image

billboardGui.StudsOffset = Vector3.new(0,4,0)
local playerName = hit.Parent.Name
billboardGui.NameEffectText.Text = playerName.." Won!🎈"
NameEffectText:TweenSize(UDim2.fromOffset(400,100),"Out","Bounce",3)
1 Like