GUI Tweening problem

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 =,0.5)

local targetSize =, 198,0,0.5)

local tweenInfo =
local tween = TweenService:Create(object, tweenInfo, {Size = targetSize})

What i want to do is to make at scale from both sides.

1 Like

You have your offset at the end set to a decimal value. It has to be a whole number.

So, you can do
local targetSize =, 198, 0, 26)

1 Like

Sorry for late reply,
I will check this out thanks alot

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.