I've been trying to make this GUI tween from the center to the bottom. Is this the right position?

game.ChildAdded:connect(function(player)
	local image = script.Parent.ModGames
	image.Position = UDim2.new(0.5, -150,0.5, -150)
	image.Size = UDim2.new(0,250,0,250)
	image.Visible = true
	image:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Linear", 5, true)
	wait(1.5)
	image:TweenPosition(UDim2.new(5, 0, 0, 0), "Out", "Linear", 5, false) 
end)

2 comments

0

Why not test it and find out? Also I'm not sure what you're doing with 'game.ChildAdded'. That's doesn't make a lot of sense

0

The 'game.ChildAdded' part is because I have this in a LocalScript.