I need help with a tween

im trying to make a bar that goes up by every click you do

but i dont know how to do it,
and i want it to give you a rebirth like

game.Players.LocalPlayer.leaderstats.Rebirth

so yea i need help

local TweenService = game:GetService("TweenService")
local tweenPart = script.Parent
local gold = game.Players.LocalPlayer.leaderstats.Gold.Value
local neededGold = 1000

local info = TweenInfo.new(
	gold,
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.InOut,
	0,
	false,
	0
)

local Goals = {
	Size = UDim2.new(0,300,0,20),
}

local PartTween = TweenService:Create(tweenPart, info, Goals)
PartTween:Play()

Does the script not work or the bar just goes up once? I suggest making the bar at the end size when the tween ends.

no it just fills the bar in an instant