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

How to tween Text label position?

Asked by 3 years ago
Edited 3 years ago

Error: Players.eboy.PlayerGui.ScreenGui.Frame.TextLabel.LocalScript:17: Expected '(', '{' or <string> when parsing function call, got <eof>  -  Studio  -  LocalScript:17

Im pretty new to scripting:

local TweenService = game:GetService("TweenService")
local part = script.Parent
local Info = TweenInfo.new(
    5,
    Enum.EasingStyle.Sine,
    Enum.EasingDirection.Out,
    0,
    false,
    0
)
local Goals = 
    {
        Position = Vector3.new(4.48, 0,2.22, 0);
        Transparency = 0.4
    }
local tween = TweenService:Create(part, Info, Goals)
tween:Play

1 answer

Log in to vote
1
Answered by 3 years ago

line 13: Use UDim2 , Vector3 is for 3D objects.

0
Position = UDim.new(4.48, 0,2.22, 0) is maybe changed one. I guess you understand what is scale and why they will go bottom right side. TerranRecon 49 — 3y
Ad

Answer this question