TweenPosition moving to the top right corner of the screen?

I’m trying to make a button open a team selector, and to make it look nice I am using tweens. However, I encountered a small issue where the tween always moves to the top left corner instead of where I tell the UI to tween to.

The code:

script.Parent.MouseButton1Click:Connect(function()
	local menu = game.ReplicatedStorage.TeamMenu:Clone()
	menu.Parent = game.Players.LocalPlayer.PlayerGui
	menu.TeamSelect.LocalScript.Disabled = false
	
	menu.TeamSelect:TweenPosition(UDim2.new{0, 600, 0, 148})
end)
1 Like

You are using udim2 offset, so when your screen size changes it goes to somewhere that you dont want it to go there, convert them to scale and it should work this time (use AutoScale plugin then you will automatically get scale values, thank me later)

1 Like