So I have a tween wich is going to tween a time later I want it to tween again but its gone or something so can someone please help me I teleport it back to its old position but stil!?!
this is my script:
local tweenService = game:GetService("TweenService")
local gameMode = game:WaitForChild("ReplicatedStorage"):WaitForChild("GameModeValue")
script.Parent.Text = gameMode.Value
gameMode:GetPropertyChangedSignal("Value"):Connect(function()
script.Parent.Parent.Visible = true
script.Parent.Text = "Game Mode: "..gameMode.Value.."!"
local info = TweenInfo.new(
5,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false,
0
)
local Goals =
{
Position = UDim2.new(-0.5, 0,0.859, 0)
}
local gameModeTween = tweenService:Create(script.Parent.Parent, info, Goals)
gameModeTween:Play()
wait(6)
script.Parent.Parent.Visible = false
script.Parent.Parent.Position = UDim2.new(1, 0,0.859, 0)
end)