Help with textbutton and text resizing

Hello everyone, I have a problem that when I use tweensize on a textbutton everything works fine, but the text size does not change text scaled is not worth it!

local startsize = UDim2.new(0.4, 0,0.15, 0)
local hoversize = UDim2.new(0.45,0,0.2,0)
game.Workspace.Lobby.Design.Invite.InvitePart.SurfaceGui.TextButton.MouseButton1Down:Connect(function()
	
end)

game.Workspace.Lobby.Design.Invite.InvitePart.SurfaceGui.TextButton.MouseEnter:Connect(function()
	game.SoundService.SFXHover:Play()
	game.Workspace.Lobby.Design.Invite.InvitePart.SurfaceGui.TextButton:TweenSize(hoversize,Enum.EasingDirection.Out, Enum.EasingStyle.Sine,.25,true)
end)

game.Workspace.Lobby.Design.Invite.InvitePart.SurfaceGui.TextButton.MouseLeave:Connect(function()
	game.Workspace.Lobby.Design.Invite.InvitePart.SurfaceGui.TextButton:TweenSize(startsize,Enum.EasingDirection.Out, Enum.EasingStyle.Sine,.25,true)
end)

image

robloxapp-20230706-2130363.wmv (1.3 MB)

4 Likes

Use TextScaled
image

2 Likes

this doesnt help, I tried that

1 Like

Then change the text size so like from 86 to 100 when scaling up and the opposite when down
In the same tween

1 Like

It shows that size is too small

1 Like

is there by any chance a TextSizeConstraint inside the object?

1 Like

No there isn’t TextSizeConstraint

1 Like