Weird TweenSize Vector3 issue

Hey, I have a problem with tweening part sizes, it should be set right, Example:
size: x= 1, y=0.001, z = 1
but instead what i get is
size: x = 0.001, y = 0.001, z = 0.001
for some reason, and I playtested around and the issue causer is the tween line.

local tweenInfo = TweenInfo.new(
	0.1,
	Enum.EasingStyle.Sine,
	Enum.EasingDirection.In,
	0,
	false,
	0
)

			local calculatedSize = player.leaderstats.Mass.Value / 30
			calculatedSize *= 100
			calculatedSize = math.floor(calculatedSize)
			calculatedSize = calculatedSize / 100
			
			print(calculatedSize) -- Prints out 1.33
			
			local tween = tweenService:Create(Circle, tweenInfo, {Size = Vector3.new(calculatedSize, 0.001, calculatedSize)})
            tween:Play()	

So as i said it seems that the part tweens to size 0.001, 0.001, 0.001 but the x and z should be different

What does the part look like in which you’re tweening? Sphere parts unless it’s a mesh will always have a uniform shape and scale entirely by just changing one of the size coordinates.

Im using a cylinder asdqw3123 asd

Cylinders will maintain their shape, so regardless of X and Y being different, it’ll always be proportional. Something that could work is not using the built-in cylinder & importing your own mesh.

I tried it from the server side and local script and on the server its fine

So your problem in on client-side?

Yeah, the scripts “were” the same.

ahh feels bad man i got home and i lost the save from studio

Edit: found it in backups

Restarted studio and it turned out that my calculated mass was a vector for somereason, but i deleted it and it works now

2 Likes