My tween service keeps glitching

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)

image

1 Like

Mind posting a video showing the GUI glitch?

Here you go Screen capture - 6cc7e99ef86f38a1d06329a9b20593a6 - Gyazo
Wait thats not a good capture
Edit: I can see it on my screen but it wont replicate, but to describe it appears in its spot then disappears right after

GUI does not replicate, it’s just that each client has the same localscript and therefore will do the same actions. So is the opening animation working fine but then the closing animation glitching on other clients? Was it supposed to “replicate” onto other clients? I don’t quite understand the problem so I might be asking too much questions.

Lol my bad choice of words, Im trying to say that It glitches so fast that for some reason I cant record it

Ok and now I don’t understand what you mean by “glitching”, is it that the animation is too fast and the GUI is just disappearing?

So the thing that is supposed to tween in, tweens in really fast and then for some reason disappears.

Which one? It most likely has something to do with the starting and ending position in the tweening function.

The “Target” One is the one tweening

ScreenShot_20210307154542
Pretty sure that’s the problem right there, it’s not a decimal

1 Like

Can I give you a smooch, your a god in disguise