pasje1312
(pasje1312)
#1
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.
pasje1312
(pasje1312)
#3
I did but it still doesnt work
Qinrir
(Quin)
#4
NameEffectText:TweenSize(UDim2.fromOffset(400,100),"Out","Bounce",3)
GUI elements have a built in method to tween size and position and both simultaneously.
pasje1312
(pasje1312)
#5
can you pleaes add it into the script I have no idea where to add it and what to remove
Qinrir
(Quin)
#6
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