Gui TweenSize problem

So I’m trying to make a text label tween its Size when you hover your mouse over and go back to its original size, but it’s not tweening at all, can someone tell me how to fix it?

local button = script.Parent.TextLabel.Size

local ts = game:GetService(“TweenService”)
local function createIn() button:TweenSize(UDim2.new(1, 0, 1, 0), “Out”, “Quad”, .05, false) wait(.1) end
local function createOut() button:TweenSize(UDim2.new(0.9, 0, 0.8, 0), “Out”, “Quad”, .05, false) wait(.1) end
local mouseIn = false

button.MouseEnter:Connect(function()
if mouseIn == false then
mouseIn = true
createIn()
mouseIn = false
else
repeat wait() until mouseIn == false
createIn()
end
end)

button.MouseLeave:Connect(function()
if mouseIn == false then
mouseIn = true
createOut()
mouseIn = false
else
repeat wait() until mouseIn == false
createOut()
end
end)

Please put in proper format its very hard to see what the code is.

local button = script.Parent.TextLabel.Size

local ts = game:GetService(“TweenService”)
local function createIn() button:TweenSize(UDim2.new(1, 0, 1, 0), “Out”, “Quad”, .05, false) wait(.1) end
local function createOut() button:TweenSize(UDim2.new(0.9, 0, 0.8, 0), “Out”, “Quad”, .05, false) wait(.1) end
local mouseIn = false

button.MouseEnter:Connect(function()
if mouseIn == false then
mouseIn = true
createIn()
mouseIn = false
else
repeat wait() until mouseIn == false
createIn()
end
end)

button.MouseLeave:Connect(function()
if mouseIn == false then
mouseIn = true
createOut()
mouseIn = false
else
repeat wait() until mouseIn == false
createOut()
end
end)

This is what he has

Use three backticks ``` to start a code block and three backticks to end a code block

The problem is in the first row, you put .Size, just remove it, and remove the


else
repeat wait() until mouseIn == false
createOut()

And


else
repeat wait() until mouseIn == true
createIn()

That still didn’t fix it, also I put in that else repeat part so that if a player moves his mouse too fast the tween would bug out unless I make that part

repeat wait() until mouseIn == true
createIn()```