I have a hammer tool that the player can use. The player’s character grows in size and I want to make it so that the hammer tool also grows in size with the player’s character.
The hammer tool is made of a bunch of baseparts that are welded together, it’s not a mesh.
I was able to scale them by adding an “OriginalSize” object inside each part and it did work but it messed up the weld’s offsets as the player changed in size.
Is there a way to maintain the offsets of those welds so that they don’t get messed up? Thanks.
If you know the rate in which a player of character scales up, you can use that and along side an offset to scale the weld offset up.
I.E -
You have a player with a normal size, and the hammer is welded to the hand, with a specific offset that maintained based on that normal size. Suddenly, you grow bigger, so the weld’s offset from the central weld would also get bigger so that it stays in your hand.
Depends on what method you are using to invoke whatever you’d like to achieve, henceforth I highly suggest you use TweenService to have a smooth resize which would help you prevent further lag. Instead of using regular loops I suggest you use RunService. It contains methods and events for time-management as well as for managing the context in which a game or script is running. You can use aspects like RenderStepped/Stepped to help with the smooth transitioning.
Keep in mind that as long as the incrementation/integer in which a Player’s tool is increasing by is to and or in respect of Player’s Character’s incrementation/integer so that it is proportionate and doesn’t look weird/out of frame.