Button with Tween Transition

Hi, I would like to know if it is possible that when touching a Textbutton a Gui covers the screen and then returns to its original position with a Tween Effect, basically a transition, this has already been done with proximity prompt and Parts but I have never seen it in a textbutton

Yea, it’s possible, you just need to make the script works with the text button

And how could I do that? I mean, I know what you mean, but since I’m not that good at scripting, I could ruin everything.

This is the best practice I know.

TextButton
InputBegan
InputEnded
InputBegan and InputEnded both fire with the parameter InputObject

UserInputType | Roblox Creator Documentation

local TB = script.Parent
local down = {
	[Enum.UserInputType.MouseButton1] = false,
	[Enum.UserInputType.Touch] = false,
}
local start_stop = Instance.new("BindableEvent")
local function check_down()
	for i,v in pairs(down) do
		if v==true then
			return true
		end
	end
	return false
end
local function accept(inp)
	local found1 = down[inp.UserInputType]
	local found2 = down[inp.KeyCode]
	if found1 then
		return inp.UserInputType
	elseif found2 then
		return inp.KeyCode
	end
end
TB.InputBegan:Connect(function(input_object)
	local is_inputting = accept(input_object)
	if is_inputting then
		down[is_inputting] = true
		start_stop:Fire(true)
	end
end)
TB.InputEnded:Connect(function(input_object)
	local is_inputting = accept(input_object)
	if is_inputting then
		down[is_inputting] = false
		if check_down() == false then
			start_stop:Fire(false)
		end
	end
end)

-- animate button according to start_stop event

WOW but how about the tween effect?