What do you want to achieve?
I am trying to achieve a system where a character can be scaled without being teleported back to the position where it was scaled.
What is the issue?
The issue is that everytime the one of the characters eat, they are scaled with :ScaleTo() but for some reason they get teleported back to where they were. I am assuming this has something to do with my local script that handles all the characters to move where the mouse is.
What solutions have you tried so far?
I’ve already tried a lot of things like using a loop to scale bit by bit thinking it would be better than changing size instantly or setting the HumanoidRootPart’s AssemblyLinearVelocity value and position value back to before the character was scaled.
I might just change the models to parts so i can scale it without having to use :ScaleTo()
Server Script that scales characters -
local rootPartVelocity = playerModel.HumanoidRootPart.AssemblyLinearVelocity
local rootPartPosition = playerModel.HumanoidRootPart.Position
playerModel.ScaleTo(playerModel, (playerValues.Mass.Value / 100))
playerModel.HumanoidRootPart.Position = rootPartPosition
playerModel.HumanoidRootPart.AssemblyLinearVelocity = rootPartVelocity
playerModel.HumanoidRootPart.AssemblyAngularVelocity = rootPartVelocity
And I use RenderStep to keep all the characters in the workspace moving towards where the mouse is.