So, I want to tween a thing from -6 to a certain position but whenever i tween it it glitches back
local intro = script.Parent.background
local openintro = script.Parent.adb
local title = script.Parent.SenpaiDev
local description = script.Parent.AdminMenuLabel
local image = script.Parent.background.sep
local line = script.Parent.background.Line
local target = script.Parent.Target
local finished = false
-- tween service for inventory
openintro.MouseButton1Click:Connect(function()
wait(1)
intro:TweenPosition( -- moving background down
UDim2.new(0.297, 0, 0.146, 0 ), -- end position
"Out", -- Direction
"Elastic", -- Style
1, -- Time
false -- overide (not needed, feel free to switch)
)
wait(1)
title:TweenPosition( -- moving title down
UDim2.new(0.325, 0, 0.145, 0 ), -- end position
"Out", -- Direction
"Quad", -- Style
1, -- Time
false -- overide (not needed, feel free to switch)
)
wait(0.6)
description:TweenPosition( -- moving description down
UDim2.new(0.365, 0, 0.232, 0 ), -- end position
"Out", -- Direction
"Quad", -- Style
1, -- Time
false -- overide (not needed, feel free to switch)
)
wait(2)
title:TweenPosition( -- moving title to left side
UDim2.new(-0.6, 0, 0.145, 0 ), -- end position
"Out", -- Direction
"Bounce", -- Style
1, -- Time
false -- overide (not needed, feel free to switch)
)
wait(0.5)
description:TweenPosition( -- moving description to right
UDim2.new(6, 0, 0.145, 0 ), -- end position
"Out", -- Direction
"Bounce", -- Style
1, -- Time
false -- overide (not needed, feel free to switch)
)
image:TweenPosition( -- moving intro up
UDim2.new(0.297, 0, -6, 0 ), -- end position
"In", -- Direction
"Quad", -- Style
1, -- Time
false -- overide (not needed, feel free to switch)
)
intro:TweenSize(UDim2.new(0, 600,0, 400), "Out", "Bounce", 1.5)
wait(1)
target:TweenPosition( -- moving intro up
UDim2.new(0.297, 0, 183, 0 ), -- end position
"Out", -- Direction
"Linear", -- Style
2, -- Time
true -- overide (not needed, feel free to switch)
)
end)