Hello everyone,I wanted to make an advanced menu system and i wanted to add a tween for the play button but it give a strange result.
robloxapp-20230928-0303478.wmv (372.5 KB)
As you see in this video it isn’t the result i wanted
here is a local script i added to it
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local PlayerGui = Players.LocalPlayer:WaitForChild("PlayerGui")
local ScreenGui = PlayerGui:WaitForChild("Menu")
local object = ScreenGui:WaitForChild("TextButton")
object.AnchorPoint = Vector2.new(0.5,0.5)
local targetSize = UDim2.new(0, 198,0,0.5)
local tweenInfo = TweenInfo.new(
1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
0
,false
)
local tween = TweenService:Create(object, tweenInfo, {Size = targetSize})
wait(2)
tween:Play()
What i want to do is to make at scale from both sides.