-- Function to move the part local function movePart(dt) part.CFrame = part.CFrame + Vector3.new(speed * dt, 0, 0) end

-- Services local RunService = game:GetService("RunService")

-- RunService.RenderStepped:Connect(movePart) -- For smooth movement RunService.Stepped:Connect(movePart) -- Works but less smooth

-- Movement variables local speed = 0.5

-- Objects local part = script.Parent -- Assuming the script is a child of the part