I was wondering how I could make a billboard GUI animated.
I want it to animate when a button is clicked, when it is clicked it animates the billboard gui to shrink. Then another billboard gui zooms in the same spot after one second has passed.
Tis why I gave you the API reference. I’ll give you a sample code
local GUI = -- your gui
local frame = -- the frame
local button = -- le button
local TweenService = game:GetService('TweenService')
local TI = TweenInfo.new (0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out) -- just and example
-- gave those variables as examples you'll define them as needed.
local Size = {Size = UDim2.new(--choose)} -- this will be the size that shrinks
local Size2 = {Size = UDim2.new(--choose)} -- since you want another gui to zoom in this will be zooming in
local example = TweenService:Create(--gui object, -- tweeninfo, the size) -- This is how you set up the tweening. As you progress you can customize all the object you want to tween to your liking.
guiObject.MouseButton1Down:Connect(function()
example:Play()
end)