TweenService - A great way to do things smoothly, change things smoothly. If you want to read more, Click Here!
Now I'll of course show you a few lines you can use but if it becomes helpful to you, please upvote! (I need that so bad...)
To tween, first of all you will need TweenService. A line of GetService command will be enough.
local TweenService = game:GetService("TweenService")
Then let's get our part that we want to resize.
local Resize = game.Workspace.ResizeMe
Let's say we want to change it's size to 1,1,1, for that we first assign an empty table and equal it's "Size" property to 1,1,1
local Goal = {}
Goal.Size = Vector3.new(1,1,1)
Goal.Color = Color3.new(0,1,0)
Now we create a TweenInfo. It goes as: Time, EasingStyle, EasingDirection, a few more parameters that you better check yourself. For now, I'll just assign the time.
local TwInfo = TweenInfo.new(2)
Now we create the tween with these parameters: Object, TweenInfo and Goal. Then we play it.
local Tween = TweenService:Create(Resize, TwInfo, Goal)
Tween:Play()
For more functions of TweenService, check the page. Click Here!
5 comments
You can use TweenService
Let's talk here so you can get alerted too.
I didn't understand what you mean actually, can you be more specific about it? If I am thinking right, you may not be anchored it. Anchor it if you didn't already. If it's something you shouldn't anchor(TweenService works best with anchored parts though,) you need to be more specific. Why you shouldn't anchor it? Why does weld breaks it? Etc.
You can also contact me via Discord for faster communication. @HalilAlper#0255
Im sorry i havent been on i wanted to come back to it because it was stressing me, i was setting the cframe to the anchor point instead of position, it works flawlessly my only issue is the tween lags on servers when cloned by a player, i cant find a fix for it so i might just forget about the part growing and shrinking thanks for replying and again, i apologize for the very late reply