My script, is supposed to make one brick move from one place to another smoothly

local RunService = game:GetService("RunService")

local Part = game.Workspace:WaitForChild("Part")
local End = game.Workspace:WaitForChild("End")

local PART_POS = Part.Position
local END_POS = End.Position
local DURATION = 5


RunService.RenderStepped:Connect(function()
	local deg = 180*(tick()% DURATION/DURATION
	Part.CFrame = CFrame.new(46, 61.5, -20) * CFrame.Angles(0,math.rad(deg),0) * CFrame.new(46, 61.5, 70)
end)

If you have any advice please comment.

2 comments

0

????????

0

A BodyVelocity gives a Part a constant velocity and ignores gravity