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)