TweenSize error

Hi,
I am using TweenSize to animate a HP bar on a character which spawns when enemy attack and despawns when no enemy is present, but I get some errors saying that Can only tween objects in the workspace. The thing is that the HP bar is tweening even when its erroring and the HP bar exists in workspace. I don’t understand why is erroring, because the Tween is starting after a while. I am doing all the checks, but I still get the errors. Any suggestions?

1 Like

Did u fix it Im getting the same

Try using Game:Getservice("TweenService"), as it’s much more flexible and works anywhere

Here’s the documetation of TweenService if needed