Hello!
For some reason, my tweenOne works fine, while my tweenTwo doesn’t. The MouseButton1Click Event works fine, I’ve printed “Click” before.
Script:
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear)
local goalOne = {Position = UDim2.new({0.272, 0},{0.215, 0})}
local goalTwo = {Position = UDim2.new({-1.272, 0},{-2, 0})}
local newsFrame = game.Players.LocalPlayer.PlayerGui.UpdateLog.Frame
local tweenOne = tweenService:Create(newsFrame, tweenInfo, goalOne)
local tweenTwo = tweenService:Create(newsFrame, tweenInfo, goalTwo)
tweenOne:Play()
newsFrame.TextButton.MouseButton1Click:Connect(function()
--Tween it back
tweenTwo:Play()
end)
If you want the whole script, tell me but I don’t think that it’s necessary.