Model Tween take 3% script activity

Is there a more optimized way to tween a model size? because this one take up to 3% script activity for a single model… and I need to handle up to 15 tween at the same time (independently).

local Scale = Instance.new("NumberValue")
	
Scale.Value = 1
TweenService:Create(Scale, TweenInfos, {Value = 0.9}):Play()
		
repeat task.wait()
    Model:ScaleTo(Scale.Value)
until Model:GetScale() <= 0.905

Initially coming to mind is how about you try what we do for model tweens back then?
:GetPropertyChangedSignal(“Value”):Connect(function()
end)

should greatly help you!

1 Like

Thank you very much for the suggestion! It has reduced the activity down to 2.1% - 2.6%. Do you know anything else I can do to reduce it a bit more?

I don’t think it is possible because I image scale to is resource intensive, unless anyone else knows anything this is all I got :+1:

1 Like

Alright! No problem, it’s still slightly better than before, so thanks again for the help. I greatly appreciate it!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.