Need help to TweenSize a part!

Hey everyone!
I just made a simple script of a durability bar (Like a life bar) of an object.

I’m trying to reduce the size of the object by tweening the part but it doesn’t work.

Does anyone know how to fix that?

This is my script:

local TweenService = game:GetService("TweenService")
local maxDur = script.Parent.Parent.Parent:WaitForChild("MaxDurability").Value
local part = script.Parent.Parent.Parent
local dur = script.Parent.Parent.Parent:WaitForChild("Durability").Value/maxDur

local tweeningInformation =

while wait(.2) do
	local partProperties = {
		Size =*dur, 2.6*dur, 5*dur)
	local Tween = TweenService:Create(part,tweeningInformation, partProperties)

The durability bar works perfectly !

(Reset activity, 30 chars)
Does anyone has any idea to fix that? :confused:

  • Is there an error?
  • What is the outcome when you run that script?
  • Did you do a print debug?
  • Did you research?

Also another note, TweenSize only works on GUIs.

There is no errormessage into the output.
How can I put print debug with Tweening? :confused:
I tried to search informations about it but I don’t find anyone.

I use the tweenSize for my durability bar (like health bar) but this is working , I’m just trying to resize the part in terms of the durability.value.
Can I delete the table where I insert “Size” Value and put it in the Tween:Create?

Did the tween played? (30 char)

I found the problem!
Thx you for your help!
See ya !