So basically I'm trying to get the GUI to move to a certain position and STOP there, the gui just flies out of the screen and never returns... what am I doing wrong???? (My tween knowledge is nonexistent so I would really love an answer that explains the problem to me in detail)
local twen = game:GetService("TweenService")
local ui = script.Parent
local tweeninfo = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false
)
local uiprop = {
Size = UDim2.new({0.044, 0},{0.081, 0});
Position = UDim2.new({0.07, 0},{0.366, 0});
}
local creation = twen:Create(ui,tweeninfo,uiprop)
if ui.Visible == true then
creation:Play()
end

3 comments
Trying it out rn! If it works I'll accept the answer, thanks for the help!
Cant seem to get this to work oof...
Are you 300% sure? I tried this myself and it seems to work wonders.