Oh that isn’t zooming out … that’s a tween size effect. Let me do a few tests here.
This needs some love but it’s basically what you’re looking for.
Tween just needs to know where it’s going to end up and what is changing…
In this case it’s the size.
--LocalScript in StarterPlayerScripts
local player = game.Players.LocalPlayer
local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
local frame = Instance.new("Frame", gui)
frame.AnchorPoint = Vector2.new(0.5, 0.5)
frame.Position = UDim2.fromScale(0.5, 0.5)
frame.Size = UDim2.fromScale(0.01, 0.01)
frame.BackgroundColor3 = Color3.new(1, 1, 1)
frame.BorderSizePixel = 0
local ts = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
ts:Create(frame, tweenInfo, { Size = UDim2.fromScale(0.5, 0.5) }):Play()
I thought you were talking about a map popout at first.
So make your window in the UI how you want it to end up, that would be your settings for the tween. Starts from where it was and ends up where that window is at.