Tween not changing the TextSize :D

In my local script my tween is not changing the text size, all other tweens work.

local PlayerGUI = game.Players.LocalPlayer.PlayerGui
local Stroke = PlayerGUI.OpenEggs.Frame:WaitForChild("Stroke")
local Btn = PlayerGUI.OpenEggs.Frame:WaitForChild("CloseBtn")
local TL = PlayerGUI.OpenEggs.Frame:WaitForChild("CloseBtn"):WaitForChild("TextLabel")

local TS = game:GetService("TweenService")

Btn.MouseButton1Down:Connect(function()
	TS:Create(Btn, TweenInfo.new(.2, Enum.EasingStyle.Exponential), {Size = UDim2.fromScale(.083,.132)}):Play()
	TS:Create(TL, TweenInfo.new(.2, Enum.EasingStyle.Exponential), {Size = UDim2.fromScale(.083,.132)}, {TextSize = 30}):Play()
end)

Btn.MouseButton1Up:Connect(function() 
	TS:Create(Btn, TweenInfo.new(.2, Enum.EasingStyle.Exponential), {Size = UDim2.fromScale(0.102,0.16)}):Play()
	TS:Create(TL, TweenInfo.new(.2, Enum.EasingStyle.Exponential), {Size = UDim2.fromScale(0.102,0.16)}, {TextSize = 42}):Play()
end)

On the tweens where they change the TextSize the Udim2 works, just not the TextSize.

(Also I got no errors, and text is not scaled)

Define your target values within a single dictionary:

{Size = UDim2.fromScale(0.102, 0.16), TextSize = 42}
2 Likes

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