local clickdetector = script.Parent:WaitForChild("ClickDetector")
clickdetector.MouseClick:Connect(function()
local TweenService = game:GetService("TweenService")
local part = workspace:WaitForChild("stop")
local part1 = workspace:WaitForChild("stop1")
local part2 = workspace:WaitForChild("stop2")
local TweenInfo = TweenInfo.new(50);
local goals = {};
goals.CFrame = part1.CFrame;
local Tween = TweenService:Create(part, TweenInfo, goals)
Tween:play()
end)
That will get the part from one brick to another, but I cant figure out how to make the brick come back and forth, and for that to happen an infinite number of times.

4 comments
Pay attention to the Duration of the tween.
Wouldn't it be better to just make the tween and continually call
Tween:Play();?Why do you think it would be better
Thx goulstem