What do you want to achieve? I want to loop these two tweens but I don’t know how.
What is the issue? It only seems to play one tween and not the other.
What solutions have you tried so far? I tried doing If statements but I can’t figure it out.
local button = script.Parent
local screen = script.Parent.Parent.Parent
local Player = game.Players.LocalPlayer
local StartingPosition = game.Workspace.StartingPosition
local SpawnLocations = {game.Workspace.StartingPosition, game.Workspace.StartingPosition1, game.Workspace.StartingPosition2, game.Workspace. StartingPosition3, game.Workspace.StartingPosition4}
local randomSpawn = SpawnLocations[math.random(1,#SpawnLocations)]
local background1 = button.Parent.Background
local background2 = button.Parent.Background2
local textlabel = button.Parent.TextLabel
local screenon = true
local Position = textlabel.Position
textlabel:TweenSizeAndPosition(
UDim2.new(0.319,0,0.217,0),
UDim2.new(0.343,0,0.236,0),
"In",
"Quad",
1,
false,
nil)
textlabel:TweenSizeAndPosition(
UDim2.new(0.388,0,0.269,0),
UDim2.new(0.302,0,0.206,0),
"Out",
"Quad",
1,
false,
nil)