Why does my part not move smoothly?

You can write your topic however you want, but you need to answer these questions:

  1. What do I want to achieve? I want to make a part move smoothly

  2. What is the issue? It will not move smoothly but instead just teleport to position.

  3. What solutions have you tried so far? I have tried checking on youtube but no luck.

Here is my script.

local Left  = game.Workspace.Move


wait(6)
Left.Position = Left.Position  + Vector3.new(49.352, 0.5, -49.067)

Your just adding position and not tweening/lerping it.

try using tween service for that

Use TweenService my good friend! This service allows tweens (Or in your instance, your position) to smoothly interpolate the properties!

local TweenService = game:GetService("TweenService")
local Part = workspace.Move

local EndPosition = {}
EndPosition.Position = Vector3.new(49.352, 0.5, 49.067)

local Duration = TweenInfo.new(3)

local Tween = TweenService:Create(Part, Duration, EndPosition)
Tween:Play()
2 Likes

How can i lerp it? I will definitely use it!

like this

   part.CFrame = Part.CFrame:Lerp(25,0,0),.01)

Thank you, It worked and will use in the future!