How to change character size smootly? [R6]

Hey! I want to change character size smoothly. I use Character:ScaleTo() for that. Whats the best way to make it smooth? Maybe I should use other system and not CharacterScaleTo()?

Here`s the script that I use:

  for i = 1, 10 do --scales the character from 0.1 to 1
				task.wait(0.01)
		        Character:ScaleTo(i / 10) 
			end

However, it is not smooth at all. Let me know if you have an idea how to make it smooth. Thank you!

1 Like

In case you didn’t know, there are a few number values in the humanoid that you can change. Note that this only occurs when the character is parented to the workspace.

What you should do is just simply tween those values, and Roblox will automatically scale the humanoid to the desired ratio.

2 Likes

Thank you for your reply! However, it only works with R15, but i want to do it with R6.

Have you tried changing task.wait(0.01) to task. wait()?

1 Like

Yes, i tried. This system that i wrote wont work smoothly at all. I may be wrong, but i dont think it will.

What is it exactly that you mean by not smoothly?

1 Like

vid that shows how it works
robloxapp-20241028-2323447.wmv (2.2 MB)

I’m on mobile right now so I can’t find a way to load the video. Could you describe it for me please? like does it happen every other frame or are the increments too fast?

1 Like

The character/camera (or both) shakes when i do that and it happens that fast character happens to get stuck in the baseplate and it just doesnt look smooth.

Hmm, changing sizes or positions don’t tend to be smooth by doing it on the server. What I would do is create a remote event that when fired, changes the sizes and other things on the client. note that these changes do replicate because of network ownership.

1 Like

That worked for me. Thank you!

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